Documentation ¶
Overview ¶
Package otgyang is a generated package which contains definitions of structs which represent a YANG schema. The generated schema can be compressed by a series of transformations (compression was true in this case).
This package was generated by /usr/local/google/home/robjs/go/pkg/mod/github.com/openconfig/ygot@v0.29.9/genutil/names.go using the following YANG input files:
- models-yang/models/interface/open-traffic-generator-port.yang
- models-yang/models/flow/open-traffic-generator-flow.yang
- models-yang/models/discovery/open-traffic-generator-discovery-interfaces.yang
- models-yang/models/discovery/open-traffic-generator-discovery.yang
Imported modules were sourced from:
- models-yang/...
Index ¶
- Variables
- func Schema() (*ytypes.Schema, error)
- func Unmarshal(data []byte, destStruct ygot.GoStruct, opts ...ytypes.UnmarshalOpt) error
- func UnzipSchema() (map[string]*yang.Entry, error)
- type Binary
- type Device
- func (t *Device) AppendFlow(v *Flow) error
- func (t *Device) AppendInterface(v *Interface) error
- func (t *Device) AppendPort(v *Port) error
- func (t *Device) GetFlow(Name string) *Flow
- func (t *Device) GetInterface(Name string) *Interface
- func (t *Device) GetOrCreateFlow(Name string) *Flow
- func (t *Device) GetOrCreateInterface(Name string) *Interface
- func (t *Device) GetOrCreatePort(Name string) *Port
- func (t *Device) GetPort(Name string) *Port
- func (*Device) IsYANGGoStruct()
- func (t *Device) NewFlow(Name string) (*Flow, error)
- func (t *Device) NewInterface(Name string) (*Interface, error)
- func (t *Device) NewPort(Name string) (*Port, error)
- func (t *Device) PopulateDefaults()
- func (t *Device) RenameFlow(oldK, newK string) error
- func (t *Device) RenameInterface(oldK, newK string) error
- func (t *Device) RenamePort(oldK, newK string) error
- func (t *Device) Validate(opts ...ygot.ValidationOption) error
- func (*Device) ΛBelongingModule() string
- func (t *Device) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Device) ΛValidate(opts ...ygot.ValidationOption) error
- type E_Port_Link
- type E_Tags_ValueType
- type Flow
- func (t *Flow) AppendTaggedMetric(v *Flow_TaggedMetric) error
- func (t *Flow) GetAverageLatency() uint64
- func (t *Flow) GetCounters() *Flow_Counters
- func (t *Flow) GetInFrameRate() Binary
- func (t *Flow) GetInRate() Binary
- func (t *Flow) GetLossPct() Binary
- func (t *Flow) GetMaximumLatency() uint64
- func (t *Flow) GetMinimumLatency() uint64
- func (t *Flow) GetName() string
- func (t *Flow) GetOrCreateCounters() *Flow_Counters
- func (t *Flow) GetOrCreateTaggedMetric(NameValuePairs string) *Flow_TaggedMetric
- func (t *Flow) GetOutFrameRate() Binary
- func (t *Flow) GetOutRate() Binary
- func (t *Flow) GetTaggedMetric(NameValuePairs string) *Flow_TaggedMetric
- func (t *Flow) GetTransmit() bool
- func (*Flow) IsYANGGoStruct()
- func (t *Flow) NewTaggedMetric(NameValuePairs string) (*Flow_TaggedMetric, error)
- func (t *Flow) PopulateDefaults()
- func (t *Flow) RenameTaggedMetric(oldK, newK string) error
- func (t *Flow) Validate(opts ...ygot.ValidationOption) error
- func (*Flow) ΛBelongingModule() string
- func (t *Flow) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Flow) ΛListKeyMap() (map[string]interface{}, error)
- func (t *Flow) ΛValidate(opts ...ygot.ValidationOption) error
- type Flow_Counters
- func (t *Flow_Counters) GetInOctets() uint64
- func (t *Flow_Counters) GetInPkts() uint64
- func (t *Flow_Counters) GetOutOctets() uint64
- func (t *Flow_Counters) GetOutPkts() uint64
- func (*Flow_Counters) IsYANGGoStruct()
- func (t *Flow_Counters) PopulateDefaults()
- func (t *Flow_Counters) Validate(opts ...ygot.ValidationOption) error
- func (*Flow_Counters) ΛBelongingModule() string
- func (t *Flow_Counters) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Flow_Counters) ΛValidate(opts ...ygot.ValidationOption) error
- type Flow_TaggedMetric
- func (t *Flow_TaggedMetric) GetCounters() *Flow_TaggedMetric_Counters
- func (t *Flow_TaggedMetric) GetNameValuePairs() string
- func (t *Flow_TaggedMetric) GetOrCreateCounters() *Flow_TaggedMetric_Counters
- func (*Flow_TaggedMetric) IsYANGGoStruct()
- func (t *Flow_TaggedMetric) PopulateDefaults()
- func (t *Flow_TaggedMetric) Validate(opts ...ygot.ValidationOption) error
- func (*Flow_TaggedMetric) ΛBelongingModule() string
- func (t *Flow_TaggedMetric) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Flow_TaggedMetric) ΛListKeyMap() (map[string]interface{}, error)
- func (t *Flow_TaggedMetric) ΛValidate(opts ...ygot.ValidationOption) error
- type Flow_TaggedMetric_Counters
- func (t *Flow_TaggedMetric_Counters) GetInOctets() uint64
- func (t *Flow_TaggedMetric_Counters) GetInPkts() uint64
- func (t *Flow_TaggedMetric_Counters) GetOutOctets() uint64
- func (t *Flow_TaggedMetric_Counters) GetOutPkts() uint64
- func (*Flow_TaggedMetric_Counters) IsYANGGoStruct()
- func (t *Flow_TaggedMetric_Counters) PopulateDefaults()
- func (t *Flow_TaggedMetric_Counters) Validate(opts ...ygot.ValidationOption) error
- func (*Flow_TaggedMetric_Counters) ΛBelongingModule() string
- func (t *Flow_TaggedMetric_Counters) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Flow_TaggedMetric_Counters) ΛValidate(opts ...ygot.ValidationOption) error
- type Flow_TaggedMetric_Tags
- func (t *Flow_TaggedMetric_Tags) GetOrCreateTagValue() *Flow_TaggedMetric_Tags_TagValue
- func (t *Flow_TaggedMetric_Tags) GetTagName() string
- func (t *Flow_TaggedMetric_Tags) GetTagValue() *Flow_TaggedMetric_Tags_TagValue
- func (*Flow_TaggedMetric_Tags) IsYANGGoStruct()
- func (t *Flow_TaggedMetric_Tags) PopulateDefaults()
- func (t *Flow_TaggedMetric_Tags) Validate(opts ...ygot.ValidationOption) error
- func (*Flow_TaggedMetric_Tags) ΛBelongingModule() string
- func (t *Flow_TaggedMetric_Tags) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Flow_TaggedMetric_Tags) ΛValidate(opts ...ygot.ValidationOption) error
- type Flow_TaggedMetric_Tags_TagValue
- func (t *Flow_TaggedMetric_Tags_TagValue) GetValueAsBool() bool
- func (t *Flow_TaggedMetric_Tags_TagValue) GetValueAsCounter64() uint64
- func (t *Flow_TaggedMetric_Tags_TagValue) GetValueAsFloat32() Binary
- func (t *Flow_TaggedMetric_Tags_TagValue) GetValueAsHex() string
- func (t *Flow_TaggedMetric_Tags_TagValue) GetValueAsIpv4() string
- func (t *Flow_TaggedMetric_Tags_TagValue) GetValueAsIpv6() string
- func (t *Flow_TaggedMetric_Tags_TagValue) GetValueAsMac() string
- func (t *Flow_TaggedMetric_Tags_TagValue) GetValueAsString() string
- func (t *Flow_TaggedMetric_Tags_TagValue) GetValueType() E_Tags_ValueType
- func (*Flow_TaggedMetric_Tags_TagValue) IsYANGGoStruct()
- func (t *Flow_TaggedMetric_Tags_TagValue) PopulateDefaults()
- func (t *Flow_TaggedMetric_Tags_TagValue) Validate(opts ...ygot.ValidationOption) error
- func (*Flow_TaggedMetric_Tags_TagValue) ΛBelongingModule() string
- func (t *Flow_TaggedMetric_Tags_TagValue) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Flow_TaggedMetric_Tags_TagValue) ΛValidate(opts ...ygot.ValidationOption) error
- type Interface
- func (t *Interface) AppendIpv4Neighbor(v *Interface_Ipv4Neighbor) error
- func (t *Interface) AppendIpv6Neighbor(v *Interface_Ipv6Neighbor) error
- func (t *Interface) GetIpv4Neighbor(Ipv4Address string) *Interface_Ipv4Neighbor
- func (t *Interface) GetIpv6Neighbor(Ipv6Address string) *Interface_Ipv6Neighbor
- func (t *Interface) GetName() string
- func (t *Interface) GetOrCreateIpv4Neighbor(Ipv4Address string) *Interface_Ipv4Neighbor
- func (t *Interface) GetOrCreateIpv6Neighbor(Ipv6Address string) *Interface_Ipv6Neighbor
- func (*Interface) IsYANGGoStruct()
- func (t *Interface) NewIpv4Neighbor(Ipv4Address string) (*Interface_Ipv4Neighbor, error)
- func (t *Interface) NewIpv6Neighbor(Ipv6Address string) (*Interface_Ipv6Neighbor, error)
- func (t *Interface) PopulateDefaults()
- func (t *Interface) RenameIpv4Neighbor(oldK, newK string) error
- func (t *Interface) RenameIpv6Neighbor(oldK, newK string) error
- func (t *Interface) Validate(opts ...ygot.ValidationOption) error
- func (*Interface) ΛBelongingModule() string
- func (t *Interface) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Interface) ΛListKeyMap() (map[string]interface{}, error)
- func (t *Interface) ΛValidate(opts ...ygot.ValidationOption) error
- type Interface_Ipv4Neighbor
- func (t *Interface_Ipv4Neighbor) GetIpv4Address() string
- func (t *Interface_Ipv4Neighbor) GetLinkLayerAddress() string
- func (*Interface_Ipv4Neighbor) IsYANGGoStruct()
- func (t *Interface_Ipv4Neighbor) PopulateDefaults()
- func (t *Interface_Ipv4Neighbor) Validate(opts ...ygot.ValidationOption) error
- func (*Interface_Ipv4Neighbor) ΛBelongingModule() string
- func (t *Interface_Ipv4Neighbor) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Interface_Ipv4Neighbor) ΛListKeyMap() (map[string]interface{}, error)
- func (t *Interface_Ipv4Neighbor) ΛValidate(opts ...ygot.ValidationOption) error
- type Interface_Ipv6Neighbor
- func (t *Interface_Ipv6Neighbor) GetIpv6Address() string
- func (t *Interface_Ipv6Neighbor) GetLinkLayerAddress() string
- func (*Interface_Ipv6Neighbor) IsYANGGoStruct()
- func (t *Interface_Ipv6Neighbor) PopulateDefaults()
- func (t *Interface_Ipv6Neighbor) Validate(opts ...ygot.ValidationOption) error
- func (*Interface_Ipv6Neighbor) ΛBelongingModule() string
- func (t *Interface_Ipv6Neighbor) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Interface_Ipv6Neighbor) ΛListKeyMap() (map[string]interface{}, error)
- func (t *Interface_Ipv6Neighbor) ΛValidate(opts ...ygot.ValidationOption) error
- type Port
- func (t *Port) GetCounters() *Port_Counters
- func (t *Port) GetInRate() Binary
- func (t *Port) GetLink() E_Port_Link
- func (t *Port) GetName() string
- func (t *Port) GetOrCreateCounters() *Port_Counters
- func (t *Port) GetOutRate() Binary
- func (*Port) IsYANGGoStruct()
- func (t *Port) PopulateDefaults()
- func (t *Port) Validate(opts ...ygot.ValidationOption) error
- func (*Port) ΛBelongingModule() string
- func (t *Port) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Port) ΛListKeyMap() (map[string]interface{}, error)
- func (t *Port) ΛValidate(opts ...ygot.ValidationOption) error
- type Port_Counters
- func (t *Port_Counters) GetInFrames() uint64
- func (t *Port_Counters) GetInOctets() uint64
- func (t *Port_Counters) GetOutFrames() uint64
- func (t *Port_Counters) GetOutOctets() uint64
- func (*Port_Counters) IsYANGGoStruct()
- func (t *Port_Counters) PopulateDefaults()
- func (t *Port_Counters) Validate(opts ...ygot.ValidationOption) error
- func (*Port_Counters) ΛBelongingModule() string
- func (t *Port_Counters) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Port_Counters) ΛValidate(opts ...ygot.ValidationOption) error
- type UnionBool
- type UnionFloat64
- type UnionInt16
- type UnionInt32
- type UnionInt64
- type UnionInt8
- type UnionString
- type UnionUint16
- type UnionUint32
- type UnionUint64
- type UnionUint8
- type UnionUnsupported
- type YANGEmpty
Constants ¶
This section is empty.
Variables ¶
var ΛEnum = map[string]map[int64]ygot.EnumDefinition{
"E_Port_Link": {
1: {Name: "UP"},
2: {Name: "DOWN"},
},
"E_Tags_ValueType": {
1: {Name: "STRING"},
2: {Name: "HEX"},
3: {Name: "BOOL"},
4: {Name: "COUNTER64"},
5: {Name: "FLOAT32"},
6: {Name: "IPV4"},
7: {Name: "IPV6"},
8: {Name: "MAC"},
},
}
ΛEnum is a map, keyed by the name of the type defined for each enum in the generated Go code, which provides a mapping between the constant int64 value of each value of the enumeration, and the string that is used to represent it in the YANG schema. The map is named ΛEnum in order to avoid clash with any valid YANG identifier.
Functions ¶
func Unmarshal ¶
Unmarshal unmarshals data, which must be RFC7951 JSON format, into destStruct, which must be non-nil and the correct GoStruct type. It returns an error if the destStruct is not found in the schema or the data cannot be unmarshaled. The supplied options (opts) are used to control the behaviour of the unmarshal function - for example, determining whether errors are thrown for unknown fields in the input JSON.
Types ¶
type Binary ¶
type Binary []byte
Binary is a type that is used for fields that have a YANG type of binary. It is used such that binary fields can be distinguished from leaf-lists of uint8s (which are mapped to []uint8, equivalent to []byte in reflection).
type Device ¶
type Device struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` Flow map[string]*Flow `path:"flows/flow" module:"open-traffic-generator-flow/open-traffic-generator-flow"` ΛFlow []ygot.Annotation `path:"flows/@flow" ygotAnnotation:"true"` Interface map[string]*Interface `path:"interfaces/interface" module:"open-traffic-generator-discovery/open-traffic-generator-discovery"` ΛInterface []ygot.Annotation `path:"interfaces/@interface" ygotAnnotation:"true"` Port map[string]*Port `path:"ports/port" module:"open-traffic-generator-port/open-traffic-generator-port"` ΛPort []ygot.Annotation `path:"ports/@port" ygotAnnotation:"true"` }
Device represents the /device YANG schema element.
func (*Device) AppendFlow ¶
AppendFlow appends the supplied Flow struct to the list Flow of Device. If the key value(s) specified in the supplied Flow already exist in the list, an error is returned.
func (*Device) AppendInterface ¶
AppendInterface appends the supplied Interface struct to the list Interface of Device. If the key value(s) specified in the supplied Interface already exist in the list, an error is returned.
func (*Device) AppendPort ¶
AppendPort appends the supplied Port struct to the list Port of Device. If the key value(s) specified in the supplied Port already exist in the list, an error is returned.
func (*Device) GetFlow ¶
GetFlow retrieves the value with the specified key from the Flow map field of Device. If the receiver is nil, or the specified key is not present in the list, nil is returned such that Get* methods may be safely chained.
func (*Device) GetInterface ¶
GetInterface retrieves the value with the specified key from the Interface map field of Device. If the receiver is nil, or the specified key is not present in the list, nil is returned such that Get* methods may be safely chained.
func (*Device) GetOrCreateFlow ¶
GetOrCreateFlow retrieves the value with the specified keys from the receiver Device. If the entry does not exist, then it is created. It returns the existing or new list member.
func (*Device) GetOrCreateInterface ¶
GetOrCreateInterface retrieves the value with the specified keys from the receiver Device. If the entry does not exist, then it is created. It returns the existing or new list member.
func (*Device) GetOrCreatePort ¶
GetOrCreatePort retrieves the value with the specified keys from the receiver Device. If the entry does not exist, then it is created. It returns the existing or new list member.
func (*Device) GetPort ¶
GetPort retrieves the value with the specified key from the Port map field of Device. If the receiver is nil, or the specified key is not present in the list, nil is returned such that Get* methods may be safely chained.
func (*Device) IsYANGGoStruct ¶
func (*Device) IsYANGGoStruct()
IsYANGGoStruct ensures that Device implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Device) NewFlow ¶
NewFlow creates a new entry in the Flow list of the Device struct. The keys of the list are populated from the input arguments.
func (*Device) NewInterface ¶
NewInterface creates a new entry in the Interface list of the Device struct. The keys of the list are populated from the input arguments.
func (*Device) NewPort ¶
NewPort creates a new entry in the Port list of the Device struct. The keys of the list are populated from the input arguments.
func (*Device) PopulateDefaults ¶
func (t *Device) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Device with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Device) RenameFlow ¶
RenameFlow renames an entry in the list Flow within the Device struct. The entry with key oldK is renamed to newK updating the key within the value.
func (*Device) RenameInterface ¶
RenameInterface renames an entry in the list Interface within the Device struct. The entry with key oldK is renamed to newK updating the key within the value.
func (*Device) RenamePort ¶
RenamePort renames an entry in the list Port within the Device struct. The entry with key oldK is renamed to newK updating the key within the value.
func (*Device) Validate ¶
func (t *Device) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Device) ΛBelongingModule ¶
ΛBelongingModule returns the name of the module that defines the namespace of Device.
func (*Device) ΛEnumTypeMap ¶
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
type E_Port_Link ¶
type E_Port_Link int64
E_Port_Link is a derived int64 type which is used to represent the enumerated node Port_Link. An additional value named Port_Link_UNSET is added to the enumeration which is used as the nil value, indicating that the enumeration was not explicitly set by the program importing the generated structures.
const ( // Port_Link_UNSET corresponds to the value UNSET of Port_Link Port_Link_UNSET E_Port_Link = 0 // Port_Link_UP corresponds to the value UP of Port_Link Port_Link_UP E_Port_Link = 1 // Port_Link_DOWN corresponds to the value DOWN of Port_Link Port_Link_DOWN E_Port_Link = 2 )
func (E_Port_Link) IsYANGGoEnum ¶
func (E_Port_Link) IsYANGGoEnum()
IsYANGGoEnum ensures that Port_Link implements the yang.GoEnum interface. This ensures that Port_Link can be identified as a mapped type for a YANG enumeration.
func (E_Port_Link) String ¶
func (e E_Port_Link) String() string
String returns a logging-friendly string for E_Port_Link.
func (E_Port_Link) ΛMap ¶
func (E_Port_Link) ΛMap() map[string]map[int64]ygot.EnumDefinition
ΛMap returns the value lookup map associated with Port_Link.
type E_Tags_ValueType ¶
type E_Tags_ValueType int64
E_Tags_ValueType is a derived int64 type which is used to represent the enumerated node Tags_ValueType. An additional value named Tags_ValueType_UNSET is added to the enumeration which is used as the nil value, indicating that the enumeration was not explicitly set by the program importing the generated structures.
const ( // Tags_ValueType_UNSET corresponds to the value UNSET of Tags_ValueType Tags_ValueType_UNSET E_Tags_ValueType = 0 // Tags_ValueType_STRING corresponds to the value STRING of Tags_ValueType Tags_ValueType_STRING E_Tags_ValueType = 1 // Tags_ValueType_HEX corresponds to the value HEX of Tags_ValueType Tags_ValueType_HEX E_Tags_ValueType = 2 // Tags_ValueType_BOOL corresponds to the value BOOL of Tags_ValueType Tags_ValueType_BOOL E_Tags_ValueType = 3 // Tags_ValueType_COUNTER64 corresponds to the value COUNTER64 of Tags_ValueType Tags_ValueType_COUNTER64 E_Tags_ValueType = 4 // Tags_ValueType_FLOAT32 corresponds to the value FLOAT32 of Tags_ValueType Tags_ValueType_FLOAT32 E_Tags_ValueType = 5 // Tags_ValueType_IPV4 corresponds to the value IPV4 of Tags_ValueType Tags_ValueType_IPV4 E_Tags_ValueType = 6 // Tags_ValueType_IPV6 corresponds to the value IPV6 of Tags_ValueType Tags_ValueType_IPV6 E_Tags_ValueType = 7 // Tags_ValueType_MAC corresponds to the value MAC of Tags_ValueType Tags_ValueType_MAC E_Tags_ValueType = 8 )
func (E_Tags_ValueType) IsYANGGoEnum ¶
func (E_Tags_ValueType) IsYANGGoEnum()
IsYANGGoEnum ensures that Tags_ValueType implements the yang.GoEnum interface. This ensures that Tags_ValueType can be identified as a mapped type for a YANG enumeration.
func (E_Tags_ValueType) String ¶
func (e E_Tags_ValueType) String() string
String returns a logging-friendly string for E_Tags_ValueType.
func (E_Tags_ValueType) ΛMap ¶
func (E_Tags_ValueType) ΛMap() map[string]map[int64]ygot.EnumDefinition
ΛMap returns the value lookup map associated with Tags_ValueType.
type Flow ¶
type Flow struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` AverageLatency *uint64 `path:"state/average-latency" module:"open-traffic-generator-flow/open-traffic-generator-flow"` ΛAverageLatency []ygot.Annotation `path:"state/@average-latency" ygotAnnotation:"true"` Counters *Flow_Counters `path:"state/counters" module:"open-traffic-generator-flow/open-traffic-generator-flow"` ΛCounters []ygot.Annotation `path:"state/@counters" ygotAnnotation:"true"` InFrameRate Binary `path:"state/in-frame-rate" module:"open-traffic-generator-flow/open-traffic-generator-flow"` ΛInFrameRate []ygot.Annotation `path:"state/@in-frame-rate" ygotAnnotation:"true"` InRate Binary `path:"state/in-rate" module:"open-traffic-generator-flow/open-traffic-generator-flow"` ΛInRate []ygot.Annotation `path:"state/@in-rate" ygotAnnotation:"true"` LossPct Binary `path:"state/loss-pct" module:"open-traffic-generator-flow/open-traffic-generator-flow"` ΛLossPct []ygot.Annotation `path:"state/@loss-pct" ygotAnnotation:"true"` MaximumLatency *uint64 `path:"state/maximum-latency" module:"open-traffic-generator-flow/open-traffic-generator-flow"` ΛMaximumLatency []ygot.Annotation `path:"state/@maximum-latency" ygotAnnotation:"true"` MinimumLatency *uint64 `path:"state/minimum-latency" module:"open-traffic-generator-flow/open-traffic-generator-flow"` ΛMinimumLatency []ygot.Annotation `path:"state/@minimum-latency" ygotAnnotation:"true"` Name *string `path:"state/name|name" module:"open-traffic-generator-flow/open-traffic-generator-flow|open-traffic-generator-flow"` ΛName []ygot.Annotation `path:"state/@name|@name" ygotAnnotation:"true"` OutFrameRate Binary `path:"state/out-frame-rate" module:"open-traffic-generator-flow/open-traffic-generator-flow"` ΛOutFrameRate []ygot.Annotation `path:"state/@out-frame-rate" ygotAnnotation:"true"` OutRate Binary `path:"state/out-rate" module:"open-traffic-generator-flow/open-traffic-generator-flow"` ΛOutRate []ygot.Annotation `path:"state/@out-rate" ygotAnnotation:"true"` TaggedMetric map[string]*Flow_TaggedMetric `path:"tagged-metrics/tagged-metric" module:"open-traffic-generator-flow/open-traffic-generator-flow"` ΛTaggedMetric []ygot.Annotation `path:"tagged-metrics/@tagged-metric" ygotAnnotation:"true"` Transmit *bool `path:"state/transmit" module:"open-traffic-generator-flow/open-traffic-generator-flow"` ΛTransmit []ygot.Annotation `path:"state/@transmit" ygotAnnotation:"true"` }
Flow represents the /open-traffic-generator-flow/flows/flow YANG schema element.
func (*Flow) AppendTaggedMetric ¶
func (t *Flow) AppendTaggedMetric(v *Flow_TaggedMetric) error
AppendTaggedMetric appends the supplied Flow_TaggedMetric struct to the list TaggedMetric of Flow. If the key value(s) specified in the supplied Flow_TaggedMetric already exist in the list, an error is returned.
func (*Flow) GetAverageLatency ¶
GetAverageLatency retrieves the value of the leaf AverageLatency from the Flow struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if AverageLatency is set, it can safely use t.GetAverageLatency() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.AverageLatency == nil' before retrieving the leaf's value.
func (*Flow) GetCounters ¶
func (t *Flow) GetCounters() *Flow_Counters
GetCounters returns the value of the Counters struct pointer from Flow. If the receiver or the field Counters is nil, nil is returned such that the Get* methods can be safely chained.
func (*Flow) GetInFrameRate ¶
GetInFrameRate retrieves the value of the leaf InFrameRate from the Flow struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if InFrameRate is set, it can safely use t.GetInFrameRate() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.InFrameRate == nil' before retrieving the leaf's value.
func (*Flow) GetInRate ¶
GetInRate retrieves the value of the leaf InRate from the Flow struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if InRate is set, it can safely use t.GetInRate() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.InRate == nil' before retrieving the leaf's value.
func (*Flow) GetLossPct ¶
GetLossPct retrieves the value of the leaf LossPct from the Flow struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if LossPct is set, it can safely use t.GetLossPct() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.LossPct == nil' before retrieving the leaf's value.
func (*Flow) GetMaximumLatency ¶
GetMaximumLatency retrieves the value of the leaf MaximumLatency from the Flow struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if MaximumLatency is set, it can safely use t.GetMaximumLatency() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.MaximumLatency == nil' before retrieving the leaf's value.
func (*Flow) GetMinimumLatency ¶
GetMinimumLatency retrieves the value of the leaf MinimumLatency from the Flow struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if MinimumLatency is set, it can safely use t.GetMinimumLatency() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.MinimumLatency == nil' before retrieving the leaf's value.
func (*Flow) GetName ¶
GetName retrieves the value of the leaf Name from the Flow struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Name is set, it can safely use t.GetName() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Name == nil' before retrieving the leaf's value.
func (*Flow) GetOrCreateCounters ¶
func (t *Flow) GetOrCreateCounters() *Flow_Counters
GetOrCreateCounters retrieves the value of the Counters field or returns the existing field if it already exists.
func (*Flow) GetOrCreateTaggedMetric ¶
func (t *Flow) GetOrCreateTaggedMetric(NameValuePairs string) *Flow_TaggedMetric
GetOrCreateTaggedMetric retrieves the value with the specified keys from the receiver Flow. If the entry does not exist, then it is created. It returns the existing or new list member.
func (*Flow) GetOutFrameRate ¶
GetOutFrameRate retrieves the value of the leaf OutFrameRate from the Flow struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if OutFrameRate is set, it can safely use t.GetOutFrameRate() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.OutFrameRate == nil' before retrieving the leaf's value.
func (*Flow) GetOutRate ¶
GetOutRate retrieves the value of the leaf OutRate from the Flow struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if OutRate is set, it can safely use t.GetOutRate() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.OutRate == nil' before retrieving the leaf's value.
func (*Flow) GetTaggedMetric ¶
func (t *Flow) GetTaggedMetric(NameValuePairs string) *Flow_TaggedMetric
GetTaggedMetric retrieves the value with the specified key from the TaggedMetric map field of Flow. If the receiver is nil, or the specified key is not present in the list, nil is returned such that Get* methods may be safely chained.
func (*Flow) GetTransmit ¶
GetTransmit retrieves the value of the leaf Transmit from the Flow struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Transmit is set, it can safely use t.GetTransmit() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Transmit == nil' before retrieving the leaf's value.
func (*Flow) IsYANGGoStruct ¶
func (*Flow) IsYANGGoStruct()
IsYANGGoStruct ensures that Flow implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Flow) NewTaggedMetric ¶
func (t *Flow) NewTaggedMetric(NameValuePairs string) (*Flow_TaggedMetric, error)
NewTaggedMetric creates a new entry in the TaggedMetric list of the Flow struct. The keys of the list are populated from the input arguments.
func (*Flow) PopulateDefaults ¶
func (t *Flow) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Flow with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Flow) RenameTaggedMetric ¶
RenameTaggedMetric renames an entry in the list TaggedMetric within the Flow struct. The entry with key oldK is renamed to newK updating the key within the value.
func (*Flow) Validate ¶
func (t *Flow) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Flow) ΛBelongingModule ¶
ΛBelongingModule returns the name of the module that defines the namespace of Flow.
func (*Flow) ΛEnumTypeMap ¶
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Flow) ΛListKeyMap ¶
ΛListKeyMap returns the keys of the Flow struct, which is a YANG list entry.
type Flow_Counters ¶
type Flow_Counters struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` InOctets *uint64 `path:"in-octets" module:"open-traffic-generator-flow"` ΛInOctets []ygot.Annotation `path:"@in-octets" ygotAnnotation:"true"` InPkts *uint64 `path:"in-pkts" module:"open-traffic-generator-flow"` ΛInPkts []ygot.Annotation `path:"@in-pkts" ygotAnnotation:"true"` OutOctets *uint64 `path:"out-octets" module:"open-traffic-generator-flow"` ΛOutOctets []ygot.Annotation `path:"@out-octets" ygotAnnotation:"true"` OutPkts *uint64 `path:"out-pkts" module:"open-traffic-generator-flow"` ΛOutPkts []ygot.Annotation `path:"@out-pkts" ygotAnnotation:"true"` }
Flow_Counters represents the /open-traffic-generator-flow/flows/flow/state/counters YANG schema element.
func (*Flow_Counters) GetInOctets ¶
func (t *Flow_Counters) GetInOctets() uint64
GetInOctets retrieves the value of the leaf InOctets from the Flow_Counters struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if InOctets is set, it can safely use t.GetInOctets() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.InOctets == nil' before retrieving the leaf's value.
func (*Flow_Counters) GetInPkts ¶
func (t *Flow_Counters) GetInPkts() uint64
GetInPkts retrieves the value of the leaf InPkts from the Flow_Counters struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if InPkts is set, it can safely use t.GetInPkts() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.InPkts == nil' before retrieving the leaf's value.
func (*Flow_Counters) GetOutOctets ¶
func (t *Flow_Counters) GetOutOctets() uint64
GetOutOctets retrieves the value of the leaf OutOctets from the Flow_Counters struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if OutOctets is set, it can safely use t.GetOutOctets() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.OutOctets == nil' before retrieving the leaf's value.
func (*Flow_Counters) GetOutPkts ¶
func (t *Flow_Counters) GetOutPkts() uint64
GetOutPkts retrieves the value of the leaf OutPkts from the Flow_Counters struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if OutPkts is set, it can safely use t.GetOutPkts() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.OutPkts == nil' before retrieving the leaf's value.
func (*Flow_Counters) IsYANGGoStruct ¶
func (*Flow_Counters) IsYANGGoStruct()
IsYANGGoStruct ensures that Flow_Counters implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Flow_Counters) PopulateDefaults ¶
func (t *Flow_Counters) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Flow_Counters with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Flow_Counters) Validate ¶
func (t *Flow_Counters) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Flow_Counters) ΛBelongingModule ¶
func (*Flow_Counters) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Flow_Counters.
func (*Flow_Counters) ΛEnumTypeMap ¶
func (t *Flow_Counters) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Flow_Counters) ΛValidate ¶
func (t *Flow_Counters) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Flow_TaggedMetric ¶
type Flow_TaggedMetric struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` Counters *Flow_TaggedMetric_Counters `path:"state/counters" module:"open-traffic-generator-flow/open-traffic-generator-flow"` ΛCounters []ygot.Annotation `path:"state/@counters" ygotAnnotation:"true"` NameValuePairs *string `` /* 139-byte string literal not displayed */ ΛNameValuePairs []ygot.Annotation `path:"state/@name-value-pairs|@name-value-pairs" ygotAnnotation:"true"` Tags []*Flow_TaggedMetric_Tags `path:"state/tags" module:"open-traffic-generator-flow/open-traffic-generator-flow"` ΛTags []ygot.Annotation `path:"state/@tags" ygotAnnotation:"true"` }
Flow_TaggedMetric represents the /open-traffic-generator-flow/flows/flow/tagged-metrics/tagged-metric YANG schema element.
func (*Flow_TaggedMetric) GetCounters ¶
func (t *Flow_TaggedMetric) GetCounters() *Flow_TaggedMetric_Counters
GetCounters returns the value of the Counters struct pointer from Flow_TaggedMetric. If the receiver or the field Counters is nil, nil is returned such that the Get* methods can be safely chained.
func (*Flow_TaggedMetric) GetNameValuePairs ¶
func (t *Flow_TaggedMetric) GetNameValuePairs() string
GetNameValuePairs retrieves the value of the leaf NameValuePairs from the Flow_TaggedMetric struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if NameValuePairs is set, it can safely use t.GetNameValuePairs() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.NameValuePairs == nil' before retrieving the leaf's value.
func (*Flow_TaggedMetric) GetOrCreateCounters ¶
func (t *Flow_TaggedMetric) GetOrCreateCounters() *Flow_TaggedMetric_Counters
GetOrCreateCounters retrieves the value of the Counters field or returns the existing field if it already exists.
func (*Flow_TaggedMetric) IsYANGGoStruct ¶
func (*Flow_TaggedMetric) IsYANGGoStruct()
IsYANGGoStruct ensures that Flow_TaggedMetric implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Flow_TaggedMetric) PopulateDefaults ¶
func (t *Flow_TaggedMetric) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Flow_TaggedMetric with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Flow_TaggedMetric) Validate ¶
func (t *Flow_TaggedMetric) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Flow_TaggedMetric) ΛBelongingModule ¶
func (*Flow_TaggedMetric) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Flow_TaggedMetric.
func (*Flow_TaggedMetric) ΛEnumTypeMap ¶
func (t *Flow_TaggedMetric) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Flow_TaggedMetric) ΛListKeyMap ¶
func (t *Flow_TaggedMetric) ΛListKeyMap() (map[string]interface{}, error)
ΛListKeyMap returns the keys of the Flow_TaggedMetric struct, which is a YANG list entry.
func (*Flow_TaggedMetric) ΛValidate ¶
func (t *Flow_TaggedMetric) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Flow_TaggedMetric_Counters ¶
type Flow_TaggedMetric_Counters struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` InOctets *uint64 `path:"in-octets" module:"open-traffic-generator-flow"` ΛInOctets []ygot.Annotation `path:"@in-octets" ygotAnnotation:"true"` InPkts *uint64 `path:"in-pkts" module:"open-traffic-generator-flow"` ΛInPkts []ygot.Annotation `path:"@in-pkts" ygotAnnotation:"true"` OutOctets *uint64 `path:"out-octets" module:"open-traffic-generator-flow"` ΛOutOctets []ygot.Annotation `path:"@out-octets" ygotAnnotation:"true"` OutPkts *uint64 `path:"out-pkts" module:"open-traffic-generator-flow"` ΛOutPkts []ygot.Annotation `path:"@out-pkts" ygotAnnotation:"true"` }
Flow_TaggedMetric_Counters represents the /open-traffic-generator-flow/flows/flow/tagged-metrics/tagged-metric/state/counters YANG schema element.
func (*Flow_TaggedMetric_Counters) GetInOctets ¶
func (t *Flow_TaggedMetric_Counters) GetInOctets() uint64
GetInOctets retrieves the value of the leaf InOctets from the Flow_TaggedMetric_Counters struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if InOctets is set, it can safely use t.GetInOctets() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.InOctets == nil' before retrieving the leaf's value.
func (*Flow_TaggedMetric_Counters) GetInPkts ¶
func (t *Flow_TaggedMetric_Counters) GetInPkts() uint64
GetInPkts retrieves the value of the leaf InPkts from the Flow_TaggedMetric_Counters struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if InPkts is set, it can safely use t.GetInPkts() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.InPkts == nil' before retrieving the leaf's value.
func (*Flow_TaggedMetric_Counters) GetOutOctets ¶
func (t *Flow_TaggedMetric_Counters) GetOutOctets() uint64
GetOutOctets retrieves the value of the leaf OutOctets from the Flow_TaggedMetric_Counters struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if OutOctets is set, it can safely use t.GetOutOctets() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.OutOctets == nil' before retrieving the leaf's value.
func (*Flow_TaggedMetric_Counters) GetOutPkts ¶
func (t *Flow_TaggedMetric_Counters) GetOutPkts() uint64
GetOutPkts retrieves the value of the leaf OutPkts from the Flow_TaggedMetric_Counters struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if OutPkts is set, it can safely use t.GetOutPkts() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.OutPkts == nil' before retrieving the leaf's value.
func (*Flow_TaggedMetric_Counters) IsYANGGoStruct ¶
func (*Flow_TaggedMetric_Counters) IsYANGGoStruct()
IsYANGGoStruct ensures that Flow_TaggedMetric_Counters implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Flow_TaggedMetric_Counters) PopulateDefaults ¶
func (t *Flow_TaggedMetric_Counters) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Flow_TaggedMetric_Counters with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Flow_TaggedMetric_Counters) Validate ¶
func (t *Flow_TaggedMetric_Counters) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Flow_TaggedMetric_Counters) ΛBelongingModule ¶
func (*Flow_TaggedMetric_Counters) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Flow_TaggedMetric_Counters.
func (*Flow_TaggedMetric_Counters) ΛEnumTypeMap ¶
func (t *Flow_TaggedMetric_Counters) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Flow_TaggedMetric_Counters) ΛValidate ¶
func (t *Flow_TaggedMetric_Counters) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Flow_TaggedMetric_Tags ¶
type Flow_TaggedMetric_Tags struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` TagName *string `path:"tag-name" module:"open-traffic-generator-flow"` ΛTagName []ygot.Annotation `path:"@tag-name" ygotAnnotation:"true"` TagValue *Flow_TaggedMetric_Tags_TagValue `path:"tag-value" module:"open-traffic-generator-flow"` ΛTagValue []ygot.Annotation `path:"@tag-value" ygotAnnotation:"true"` }
Flow_TaggedMetric_Tags represents the /open-traffic-generator-flow/flows/flow/tagged-metrics/tagged-metric/state/tags YANG schema element.
func (*Flow_TaggedMetric_Tags) GetOrCreateTagValue ¶
func (t *Flow_TaggedMetric_Tags) GetOrCreateTagValue() *Flow_TaggedMetric_Tags_TagValue
GetOrCreateTagValue retrieves the value of the TagValue field or returns the existing field if it already exists.
func (*Flow_TaggedMetric_Tags) GetTagName ¶
func (t *Flow_TaggedMetric_Tags) GetTagName() string
GetTagName retrieves the value of the leaf TagName from the Flow_TaggedMetric_Tags struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if TagName is set, it can safely use t.GetTagName() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.TagName == nil' before retrieving the leaf's value.
func (*Flow_TaggedMetric_Tags) GetTagValue ¶
func (t *Flow_TaggedMetric_Tags) GetTagValue() *Flow_TaggedMetric_Tags_TagValue
GetTagValue returns the value of the TagValue struct pointer from Flow_TaggedMetric_Tags. If the receiver or the field TagValue is nil, nil is returned such that the Get* methods can be safely chained.
func (*Flow_TaggedMetric_Tags) IsYANGGoStruct ¶
func (*Flow_TaggedMetric_Tags) IsYANGGoStruct()
IsYANGGoStruct ensures that Flow_TaggedMetric_Tags implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Flow_TaggedMetric_Tags) PopulateDefaults ¶
func (t *Flow_TaggedMetric_Tags) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Flow_TaggedMetric_Tags with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Flow_TaggedMetric_Tags) Validate ¶
func (t *Flow_TaggedMetric_Tags) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Flow_TaggedMetric_Tags) ΛBelongingModule ¶
func (*Flow_TaggedMetric_Tags) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Flow_TaggedMetric_Tags.
func (*Flow_TaggedMetric_Tags) ΛEnumTypeMap ¶
func (t *Flow_TaggedMetric_Tags) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Flow_TaggedMetric_Tags) ΛValidate ¶
func (t *Flow_TaggedMetric_Tags) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Flow_TaggedMetric_Tags_TagValue ¶
type Flow_TaggedMetric_Tags_TagValue struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` ValueAsBool *bool `path:"value-as-bool" module:"open-traffic-generator-flow"` ΛValueAsBool []ygot.Annotation `path:"@value-as-bool" ygotAnnotation:"true"` ValueAsCounter64 *uint64 `path:"value-as-counter64" module:"open-traffic-generator-flow"` ΛValueAsCounter64 []ygot.Annotation `path:"@value-as-counter64" ygotAnnotation:"true"` ValueAsFloat32 Binary `path:"value-as-float32" module:"open-traffic-generator-flow"` ΛValueAsFloat32 []ygot.Annotation `path:"@value-as-float32" ygotAnnotation:"true"` ValueAsHex *string `path:"value-as-hex" module:"open-traffic-generator-flow"` ΛValueAsHex []ygot.Annotation `path:"@value-as-hex" ygotAnnotation:"true"` ValueAsIpv4 *string `path:"value-as-ipv4" module:"open-traffic-generator-flow"` ΛValueAsIpv4 []ygot.Annotation `path:"@value-as-ipv4" ygotAnnotation:"true"` ValueAsIpv6 *string `path:"value-as-ipv6" module:"open-traffic-generator-flow"` ΛValueAsIpv6 []ygot.Annotation `path:"@value-as-ipv6" ygotAnnotation:"true"` ValueAsMac *string `path:"value-as-mac" module:"open-traffic-generator-flow"` ΛValueAsMac []ygot.Annotation `path:"@value-as-mac" ygotAnnotation:"true"` ValueAsString *string `path:"value-as-string" module:"open-traffic-generator-flow"` ΛValueAsString []ygot.Annotation `path:"@value-as-string" ygotAnnotation:"true"` ValueType E_Tags_ValueType `path:"value-type" module:"open-traffic-generator-flow"` ΛValueType []ygot.Annotation `path:"@value-type" ygotAnnotation:"true"` }
Flow_TaggedMetric_Tags_TagValue represents the /open-traffic-generator-flow/flows/flow/tagged-metrics/tagged-metric/state/tags/tag-value YANG schema element.
func (*Flow_TaggedMetric_Tags_TagValue) GetValueAsBool ¶
func (t *Flow_TaggedMetric_Tags_TagValue) GetValueAsBool() bool
GetValueAsBool retrieves the value of the leaf ValueAsBool from the Flow_TaggedMetric_Tags_TagValue struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if ValueAsBool is set, it can safely use t.GetValueAsBool() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.ValueAsBool == nil' before retrieving the leaf's value.
func (*Flow_TaggedMetric_Tags_TagValue) GetValueAsCounter64 ¶
func (t *Flow_TaggedMetric_Tags_TagValue) GetValueAsCounter64() uint64
GetValueAsCounter64 retrieves the value of the leaf ValueAsCounter64 from the Flow_TaggedMetric_Tags_TagValue struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if ValueAsCounter64 is set, it can safely use t.GetValueAsCounter64() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.ValueAsCounter64 == nil' before retrieving the leaf's value.
func (*Flow_TaggedMetric_Tags_TagValue) GetValueAsFloat32 ¶
func (t *Flow_TaggedMetric_Tags_TagValue) GetValueAsFloat32() Binary
GetValueAsFloat32 retrieves the value of the leaf ValueAsFloat32 from the Flow_TaggedMetric_Tags_TagValue struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if ValueAsFloat32 is set, it can safely use t.GetValueAsFloat32() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.ValueAsFloat32 == nil' before retrieving the leaf's value.
func (*Flow_TaggedMetric_Tags_TagValue) GetValueAsHex ¶
func (t *Flow_TaggedMetric_Tags_TagValue) GetValueAsHex() string
GetValueAsHex retrieves the value of the leaf ValueAsHex from the Flow_TaggedMetric_Tags_TagValue struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if ValueAsHex is set, it can safely use t.GetValueAsHex() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.ValueAsHex == nil' before retrieving the leaf's value.
func (*Flow_TaggedMetric_Tags_TagValue) GetValueAsIpv4 ¶
func (t *Flow_TaggedMetric_Tags_TagValue) GetValueAsIpv4() string
GetValueAsIpv4 retrieves the value of the leaf ValueAsIpv4 from the Flow_TaggedMetric_Tags_TagValue struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if ValueAsIpv4 is set, it can safely use t.GetValueAsIpv4() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.ValueAsIpv4 == nil' before retrieving the leaf's value.
func (*Flow_TaggedMetric_Tags_TagValue) GetValueAsIpv6 ¶
func (t *Flow_TaggedMetric_Tags_TagValue) GetValueAsIpv6() string
GetValueAsIpv6 retrieves the value of the leaf ValueAsIpv6 from the Flow_TaggedMetric_Tags_TagValue struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if ValueAsIpv6 is set, it can safely use t.GetValueAsIpv6() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.ValueAsIpv6 == nil' before retrieving the leaf's value.
func (*Flow_TaggedMetric_Tags_TagValue) GetValueAsMac ¶
func (t *Flow_TaggedMetric_Tags_TagValue) GetValueAsMac() string
GetValueAsMac retrieves the value of the leaf ValueAsMac from the Flow_TaggedMetric_Tags_TagValue struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if ValueAsMac is set, it can safely use t.GetValueAsMac() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.ValueAsMac == nil' before retrieving the leaf's value.
func (*Flow_TaggedMetric_Tags_TagValue) GetValueAsString ¶
func (t *Flow_TaggedMetric_Tags_TagValue) GetValueAsString() string
GetValueAsString retrieves the value of the leaf ValueAsString from the Flow_TaggedMetric_Tags_TagValue struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if ValueAsString is set, it can safely use t.GetValueAsString() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.ValueAsString == nil' before retrieving the leaf's value.
func (*Flow_TaggedMetric_Tags_TagValue) GetValueType ¶
func (t *Flow_TaggedMetric_Tags_TagValue) GetValueType() E_Tags_ValueType
GetValueType retrieves the value of the leaf ValueType from the Flow_TaggedMetric_Tags_TagValue struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if ValueType is set, it can safely use t.GetValueType() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.ValueType == nil' before retrieving the leaf's value.
func (*Flow_TaggedMetric_Tags_TagValue) IsYANGGoStruct ¶
func (*Flow_TaggedMetric_Tags_TagValue) IsYANGGoStruct()
IsYANGGoStruct ensures that Flow_TaggedMetric_Tags_TagValue implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Flow_TaggedMetric_Tags_TagValue) PopulateDefaults ¶
func (t *Flow_TaggedMetric_Tags_TagValue) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Flow_TaggedMetric_Tags_TagValue with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Flow_TaggedMetric_Tags_TagValue) Validate ¶
func (t *Flow_TaggedMetric_Tags_TagValue) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Flow_TaggedMetric_Tags_TagValue) ΛBelongingModule ¶
func (*Flow_TaggedMetric_Tags_TagValue) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Flow_TaggedMetric_Tags_TagValue.
func (*Flow_TaggedMetric_Tags_TagValue) ΛEnumTypeMap ¶
func (t *Flow_TaggedMetric_Tags_TagValue) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Flow_TaggedMetric_Tags_TagValue) ΛValidate ¶
func (t *Flow_TaggedMetric_Tags_TagValue) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Interface ¶
type Interface struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` Ipv4Neighbor map[string]*Interface_Ipv4Neighbor `path:"ipv4-neighbors/ipv4-neighbor" module:"open-traffic-generator-discovery/open-traffic-generator-discovery"` ΛIpv4Neighbor []ygot.Annotation `path:"ipv4-neighbors/@ipv4-neighbor" ygotAnnotation:"true"` Ipv6Neighbor map[string]*Interface_Ipv6Neighbor `path:"ipv6-neighbors/ipv6-neighbor" module:"open-traffic-generator-discovery/open-traffic-generator-discovery"` ΛIpv6Neighbor []ygot.Annotation `path:"ipv6-neighbors/@ipv6-neighbor" ygotAnnotation:"true"` Name *string `` /* 130-byte string literal not displayed */ ΛName []ygot.Annotation `path:"state/@name|@name" ygotAnnotation:"true"` }
Interface represents the /open-traffic-generator-discovery/interfaces/interface YANG schema element.
func (*Interface) AppendIpv4Neighbor ¶
func (t *Interface) AppendIpv4Neighbor(v *Interface_Ipv4Neighbor) error
AppendIpv4Neighbor appends the supplied Interface_Ipv4Neighbor struct to the list Ipv4Neighbor of Interface. If the key value(s) specified in the supplied Interface_Ipv4Neighbor already exist in the list, an error is returned.
func (*Interface) AppendIpv6Neighbor ¶
func (t *Interface) AppendIpv6Neighbor(v *Interface_Ipv6Neighbor) error
AppendIpv6Neighbor appends the supplied Interface_Ipv6Neighbor struct to the list Ipv6Neighbor of Interface. If the key value(s) specified in the supplied Interface_Ipv6Neighbor already exist in the list, an error is returned.
func (*Interface) GetIpv4Neighbor ¶
func (t *Interface) GetIpv4Neighbor(Ipv4Address string) *Interface_Ipv4Neighbor
GetIpv4Neighbor retrieves the value with the specified key from the Ipv4Neighbor map field of Interface. If the receiver is nil, or the specified key is not present in the list, nil is returned such that Get* methods may be safely chained.
func (*Interface) GetIpv6Neighbor ¶
func (t *Interface) GetIpv6Neighbor(Ipv6Address string) *Interface_Ipv6Neighbor
GetIpv6Neighbor retrieves the value with the specified key from the Ipv6Neighbor map field of Interface. If the receiver is nil, or the specified key is not present in the list, nil is returned such that Get* methods may be safely chained.
func (*Interface) GetName ¶
GetName retrieves the value of the leaf Name from the Interface struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Name is set, it can safely use t.GetName() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Name == nil' before retrieving the leaf's value.
func (*Interface) GetOrCreateIpv4Neighbor ¶
func (t *Interface) GetOrCreateIpv4Neighbor(Ipv4Address string) *Interface_Ipv4Neighbor
GetOrCreateIpv4Neighbor retrieves the value with the specified keys from the receiver Interface. If the entry does not exist, then it is created. It returns the existing or new list member.
func (*Interface) GetOrCreateIpv6Neighbor ¶
func (t *Interface) GetOrCreateIpv6Neighbor(Ipv6Address string) *Interface_Ipv6Neighbor
GetOrCreateIpv6Neighbor retrieves the value with the specified keys from the receiver Interface. If the entry does not exist, then it is created. It returns the existing or new list member.
func (*Interface) IsYANGGoStruct ¶
func (*Interface) IsYANGGoStruct()
IsYANGGoStruct ensures that Interface implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Interface) NewIpv4Neighbor ¶
func (t *Interface) NewIpv4Neighbor(Ipv4Address string) (*Interface_Ipv4Neighbor, error)
NewIpv4Neighbor creates a new entry in the Ipv4Neighbor list of the Interface struct. The keys of the list are populated from the input arguments.
func (*Interface) NewIpv6Neighbor ¶
func (t *Interface) NewIpv6Neighbor(Ipv6Address string) (*Interface_Ipv6Neighbor, error)
NewIpv6Neighbor creates a new entry in the Ipv6Neighbor list of the Interface struct. The keys of the list are populated from the input arguments.
func (*Interface) PopulateDefaults ¶
func (t *Interface) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Interface with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Interface) RenameIpv4Neighbor ¶
RenameIpv4Neighbor renames an entry in the list Ipv4Neighbor within the Interface struct. The entry with key oldK is renamed to newK updating the key within the value.
func (*Interface) RenameIpv6Neighbor ¶
RenameIpv6Neighbor renames an entry in the list Ipv6Neighbor within the Interface struct. The entry with key oldK is renamed to newK updating the key within the value.
func (*Interface) Validate ¶
func (t *Interface) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Interface) ΛBelongingModule ¶
ΛBelongingModule returns the name of the module that defines the namespace of Interface.
func (*Interface) ΛEnumTypeMap ¶
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Interface) ΛListKeyMap ¶
ΛListKeyMap returns the keys of the Interface struct, which is a YANG list entry.
type Interface_Ipv4Neighbor ¶
type Interface_Ipv4Neighbor struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` Ipv4Address *string `` /* 146-byte string literal not displayed */ ΛIpv4Address []ygot.Annotation `path:"state/@ipv4-address|@ipv4-address" ygotAnnotation:"true"` LinkLayerAddress *string `path:"state/link-layer-address" module:"open-traffic-generator-discovery/open-traffic-generator-discovery"` ΛLinkLayerAddress []ygot.Annotation `path:"state/@link-layer-address" ygotAnnotation:"true"` }
Interface_Ipv4Neighbor represents the /open-traffic-generator-discovery/interfaces/interface/ipv4-neighbors/ipv4-neighbor YANG schema element.
func (*Interface_Ipv4Neighbor) GetIpv4Address ¶
func (t *Interface_Ipv4Neighbor) GetIpv4Address() string
GetIpv4Address retrieves the value of the leaf Ipv4Address from the Interface_Ipv4Neighbor struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Ipv4Address is set, it can safely use t.GetIpv4Address() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Ipv4Address == nil' before retrieving the leaf's value.
func (*Interface_Ipv4Neighbor) GetLinkLayerAddress ¶
func (t *Interface_Ipv4Neighbor) GetLinkLayerAddress() string
GetLinkLayerAddress retrieves the value of the leaf LinkLayerAddress from the Interface_Ipv4Neighbor struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if LinkLayerAddress is set, it can safely use t.GetLinkLayerAddress() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.LinkLayerAddress == nil' before retrieving the leaf's value.
func (*Interface_Ipv4Neighbor) IsYANGGoStruct ¶
func (*Interface_Ipv4Neighbor) IsYANGGoStruct()
IsYANGGoStruct ensures that Interface_Ipv4Neighbor implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Interface_Ipv4Neighbor) PopulateDefaults ¶
func (t *Interface_Ipv4Neighbor) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Interface_Ipv4Neighbor with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Interface_Ipv4Neighbor) Validate ¶
func (t *Interface_Ipv4Neighbor) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Interface_Ipv4Neighbor) ΛBelongingModule ¶
func (*Interface_Ipv4Neighbor) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Interface_Ipv4Neighbor.
func (*Interface_Ipv4Neighbor) ΛEnumTypeMap ¶
func (t *Interface_Ipv4Neighbor) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Interface_Ipv4Neighbor) ΛListKeyMap ¶
func (t *Interface_Ipv4Neighbor) ΛListKeyMap() (map[string]interface{}, error)
ΛListKeyMap returns the keys of the Interface_Ipv4Neighbor struct, which is a YANG list entry.
func (*Interface_Ipv4Neighbor) ΛValidate ¶
func (t *Interface_Ipv4Neighbor) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Interface_Ipv6Neighbor ¶
type Interface_Ipv6Neighbor struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` Ipv6Address *string `` /* 146-byte string literal not displayed */ ΛIpv6Address []ygot.Annotation `path:"state/@ipv6-address|@ipv6-address" ygotAnnotation:"true"` LinkLayerAddress *string `path:"state/link-layer-address" module:"open-traffic-generator-discovery/open-traffic-generator-discovery"` ΛLinkLayerAddress []ygot.Annotation `path:"state/@link-layer-address" ygotAnnotation:"true"` }
Interface_Ipv6Neighbor represents the /open-traffic-generator-discovery/interfaces/interface/ipv6-neighbors/ipv6-neighbor YANG schema element.
func (*Interface_Ipv6Neighbor) GetIpv6Address ¶
func (t *Interface_Ipv6Neighbor) GetIpv6Address() string
GetIpv6Address retrieves the value of the leaf Ipv6Address from the Interface_Ipv6Neighbor struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Ipv6Address is set, it can safely use t.GetIpv6Address() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Ipv6Address == nil' before retrieving the leaf's value.
func (*Interface_Ipv6Neighbor) GetLinkLayerAddress ¶
func (t *Interface_Ipv6Neighbor) GetLinkLayerAddress() string
GetLinkLayerAddress retrieves the value of the leaf LinkLayerAddress from the Interface_Ipv6Neighbor struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if LinkLayerAddress is set, it can safely use t.GetLinkLayerAddress() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.LinkLayerAddress == nil' before retrieving the leaf's value.
func (*Interface_Ipv6Neighbor) IsYANGGoStruct ¶
func (*Interface_Ipv6Neighbor) IsYANGGoStruct()
IsYANGGoStruct ensures that Interface_Ipv6Neighbor implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Interface_Ipv6Neighbor) PopulateDefaults ¶
func (t *Interface_Ipv6Neighbor) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Interface_Ipv6Neighbor with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Interface_Ipv6Neighbor) Validate ¶
func (t *Interface_Ipv6Neighbor) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Interface_Ipv6Neighbor) ΛBelongingModule ¶
func (*Interface_Ipv6Neighbor) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Interface_Ipv6Neighbor.
func (*Interface_Ipv6Neighbor) ΛEnumTypeMap ¶
func (t *Interface_Ipv6Neighbor) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Interface_Ipv6Neighbor) ΛListKeyMap ¶
func (t *Interface_Ipv6Neighbor) ΛListKeyMap() (map[string]interface{}, error)
ΛListKeyMap returns the keys of the Interface_Ipv6Neighbor struct, which is a YANG list entry.
func (*Interface_Ipv6Neighbor) ΛValidate ¶
func (t *Interface_Ipv6Neighbor) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Port ¶
type Port struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` Counters *Port_Counters `path:"state/counters" module:"open-traffic-generator-port/open-traffic-generator-port"` ΛCounters []ygot.Annotation `path:"state/@counters" ygotAnnotation:"true"` InRate Binary `path:"state/in-rate" module:"open-traffic-generator-port/open-traffic-generator-port"` ΛInRate []ygot.Annotation `path:"state/@in-rate" ygotAnnotation:"true"` Link E_Port_Link `path:"state/link" module:"open-traffic-generator-port/open-traffic-generator-port"` ΛLink []ygot.Annotation `path:"state/@link" ygotAnnotation:"true"` Name *string `path:"state/name|name" module:"open-traffic-generator-port/open-traffic-generator-port|open-traffic-generator-port"` ΛName []ygot.Annotation `path:"state/@name|@name" ygotAnnotation:"true"` OutRate Binary `path:"state/out-rate" module:"open-traffic-generator-port/open-traffic-generator-port"` ΛOutRate []ygot.Annotation `path:"state/@out-rate" ygotAnnotation:"true"` }
Port represents the /open-traffic-generator-port/ports/port YANG schema element.
func (*Port) GetCounters ¶
func (t *Port) GetCounters() *Port_Counters
GetCounters returns the value of the Counters struct pointer from Port. If the receiver or the field Counters is nil, nil is returned such that the Get* methods can be safely chained.
func (*Port) GetInRate ¶
GetInRate retrieves the value of the leaf InRate from the Port struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if InRate is set, it can safely use t.GetInRate() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.InRate == nil' before retrieving the leaf's value.
func (*Port) GetLink ¶
func (t *Port) GetLink() E_Port_Link
GetLink retrieves the value of the leaf Link from the Port struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Link is set, it can safely use t.GetLink() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Link == nil' before retrieving the leaf's value.
func (*Port) GetName ¶
GetName retrieves the value of the leaf Name from the Port struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Name is set, it can safely use t.GetName() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Name == nil' before retrieving the leaf's value.
func (*Port) GetOrCreateCounters ¶
func (t *Port) GetOrCreateCounters() *Port_Counters
GetOrCreateCounters retrieves the value of the Counters field or returns the existing field if it already exists.
func (*Port) GetOutRate ¶
GetOutRate retrieves the value of the leaf OutRate from the Port struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if OutRate is set, it can safely use t.GetOutRate() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.OutRate == nil' before retrieving the leaf's value.
func (*Port) IsYANGGoStruct ¶
func (*Port) IsYANGGoStruct()
IsYANGGoStruct ensures that Port implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Port) PopulateDefaults ¶
func (t *Port) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Port with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Port) Validate ¶
func (t *Port) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Port) ΛBelongingModule ¶
ΛBelongingModule returns the name of the module that defines the namespace of Port.
func (*Port) ΛEnumTypeMap ¶
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Port) ΛListKeyMap ¶
ΛListKeyMap returns the keys of the Port struct, which is a YANG list entry.
type Port_Counters ¶
type Port_Counters struct { ΛMetadata []ygot.Annotation `path:"@" ygotAnnotation:"true"` InFrames *uint64 `path:"in-frames" module:"open-traffic-generator-port"` ΛInFrames []ygot.Annotation `path:"@in-frames" ygotAnnotation:"true"` InOctets *uint64 `path:"in-octets" module:"open-traffic-generator-port"` ΛInOctets []ygot.Annotation `path:"@in-octets" ygotAnnotation:"true"` OutFrames *uint64 `path:"out-frames" module:"open-traffic-generator-port"` ΛOutFrames []ygot.Annotation `path:"@out-frames" ygotAnnotation:"true"` OutOctets *uint64 `path:"out-octets" module:"open-traffic-generator-port"` ΛOutOctets []ygot.Annotation `path:"@out-octets" ygotAnnotation:"true"` }
Port_Counters represents the /open-traffic-generator-port/ports/port/state/counters YANG schema element.
func (*Port_Counters) GetInFrames ¶
func (t *Port_Counters) GetInFrames() uint64
GetInFrames retrieves the value of the leaf InFrames from the Port_Counters struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if InFrames is set, it can safely use t.GetInFrames() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.InFrames == nil' before retrieving the leaf's value.
func (*Port_Counters) GetInOctets ¶
func (t *Port_Counters) GetInOctets() uint64
GetInOctets retrieves the value of the leaf InOctets from the Port_Counters struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if InOctets is set, it can safely use t.GetInOctets() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.InOctets == nil' before retrieving the leaf's value.
func (*Port_Counters) GetOutFrames ¶
func (t *Port_Counters) GetOutFrames() uint64
GetOutFrames retrieves the value of the leaf OutFrames from the Port_Counters struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if OutFrames is set, it can safely use t.GetOutFrames() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.OutFrames == nil' before retrieving the leaf's value.
func (*Port_Counters) GetOutOctets ¶
func (t *Port_Counters) GetOutOctets() uint64
GetOutOctets retrieves the value of the leaf OutOctets from the Port_Counters struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if OutOctets is set, it can safely use t.GetOutOctets() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.OutOctets == nil' before retrieving the leaf's value.
func (*Port_Counters) IsYANGGoStruct ¶
func (*Port_Counters) IsYANGGoStruct()
IsYANGGoStruct ensures that Port_Counters implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Port_Counters) PopulateDefaults ¶
func (t *Port_Counters) PopulateDefaults()
PopulateDefaults recursively populates unset leaf fields in the Port_Counters with default values as specified in the YANG schema, instantiating any nil container fields.
func (*Port_Counters) Validate ¶
func (t *Port_Counters) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Port_Counters) ΛBelongingModule ¶
func (*Port_Counters) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Port_Counters.
func (*Port_Counters) ΛEnumTypeMap ¶
func (t *Port_Counters) ΛEnumTypeMap() map[string][]reflect.Type
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
func (*Port_Counters) ΛValidate ¶
func (t *Port_Counters) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type UnionBool ¶
type UnionBool bool
UnionBool is a bool type assignable to unions of which it is a subtype.
type UnionFloat64 ¶
type UnionFloat64 float64
UnionFloat64 is a float64 type assignable to unions of which it is a subtype.
type UnionInt16 ¶
type UnionInt16 int16
UnionInt16 is an int16 type assignable to unions of which it is a subtype.
type UnionInt32 ¶
type UnionInt32 int32
UnionInt32 is an int32 type assignable to unions of which it is a subtype.
type UnionInt64 ¶
type UnionInt64 int64
UnionInt64 is an int64 type assignable to unions of which it is a subtype.
type UnionInt8 ¶
type UnionInt8 int8
UnionInt8 is an int8 type assignable to unions of which it is a subtype.
type UnionString ¶
type UnionString string
UnionString is a string type assignable to unions of which it is a subtype.
type UnionUint16 ¶
type UnionUint16 uint16
UnionUint16 is a uint16 type assignable to unions of which it is a subtype.
type UnionUint32 ¶
type UnionUint32 uint32
UnionUint32 is a uint32 type assignable to unions of which it is a subtype.
type UnionUint64 ¶
type UnionUint64 uint64
UnionUint64 is a uint64 type assignable to unions of which it is a subtype.
type UnionUint8 ¶
type UnionUint8 uint8
UnionUint8 is a uint8 type assignable to unions of which it is a subtype.
type UnionUnsupported ¶
type UnionUnsupported struct {
Value interface{}
}
UnionUnsupported is an interface{} wrapper type for unsupported types. It is assignable to unions of which it is a subtype.