Documentation ¶
Overview ¶
Package aft 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 /Users/robjs/go/pkg/mod/github.com/openconfig/ygot@v0.25.6/genutil/names.go using the following YANG input files:
- gribi/v1/yang/gribi-aft.yang
Imported modules were sourced from:
- gribi/...
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 Afts
- func (t *Afts) DeleteIpv4Entry(Prefix string)
- func (t *Afts) DeleteIpv6Entry(Prefix string)
- func (t *Afts) DeleteLabelEntry(Label Afts_LabelEntry_Label_Union)
- func (t *Afts) DeleteMacEntry(MacAddress string)
- func (t *Afts) DeleteNextHop(Index uint64)
- func (t *Afts) DeleteNextHopGroup(Id uint64)
- func (t *Afts) DeletePolicyForwardingEntry(Index uint64)
- func (t *Afts) GetIpv4Entry(Prefix string) *Afts_Ipv4Entry
- func (t *Afts) GetIpv6Entry(Prefix string) *Afts_Ipv6Entry
- func (t *Afts) GetLabelEntry(Label Afts_LabelEntry_Label_Union) *Afts_LabelEntry
- func (t *Afts) GetMacEntry(MacAddress string) *Afts_MacEntry
- func (t *Afts) GetNextHop(Index uint64) *Afts_NextHop
- func (t *Afts) GetNextHopGroup(Id uint64) *Afts_NextHopGroup
- func (t *Afts) GetOrCreateIpv4Entry(Prefix string) *Afts_Ipv4Entry
- func (t *Afts) GetOrCreateIpv6Entry(Prefix string) *Afts_Ipv6Entry
- func (t *Afts) GetOrCreateLabelEntry(Label Afts_LabelEntry_Label_Union) *Afts_LabelEntry
- func (t *Afts) GetOrCreateMacEntry(MacAddress string) *Afts_MacEntry
- func (t *Afts) GetOrCreateNextHop(Index uint64) *Afts_NextHop
- func (t *Afts) GetOrCreateNextHopGroup(Id uint64) *Afts_NextHopGroup
- func (t *Afts) GetOrCreatePolicyForwardingEntry(Index uint64) *Afts_PolicyForwardingEntry
- func (t *Afts) GetPolicyForwardingEntry(Index uint64) *Afts_PolicyForwardingEntry
- func (*Afts) IsYANGGoStruct()
- func (t *Afts) NewIpv4Entry(Prefix string) (*Afts_Ipv4Entry, error)
- func (t *Afts) NewIpv6Entry(Prefix string) (*Afts_Ipv6Entry, error)
- func (t *Afts) NewLabelEntry(Label Afts_LabelEntry_Label_Union) (*Afts_LabelEntry, error)
- func (t *Afts) NewMacEntry(MacAddress string) (*Afts_MacEntry, error)
- func (t *Afts) NewNextHop(Index uint64) (*Afts_NextHop, error)
- func (t *Afts) NewNextHopGroup(Id uint64) (*Afts_NextHopGroup, error)
- func (t *Afts) NewPolicyForwardingEntry(Index uint64) (*Afts_PolicyForwardingEntry, error)
- func (t *Afts) Validate(opts ...ygot.ValidationOption) error
- func (*Afts) ΛBelongingModule() string
- func (t *Afts) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Afts) ΛValidate(opts ...ygot.ValidationOption) error
- type Afts_Ipv4Entry
- func (t *Afts_Ipv4Entry) GetDecapsulateHeader() E_AftTypes_EncapsulationHeaderType
- func (t *Afts_Ipv4Entry) GetEntryMetadata() Binary
- func (t *Afts_Ipv4Entry) GetNextHopGroup() uint64
- func (t *Afts_Ipv4Entry) GetNextHopGroupNetworkInstance() string
- func (t *Afts_Ipv4Entry) GetPrefix() string
- func (*Afts_Ipv4Entry) IsYANGGoStruct()
- func (t *Afts_Ipv4Entry) Validate(opts ...ygot.ValidationOption) error
- func (*Afts_Ipv4Entry) ΛBelongingModule() string
- func (t *Afts_Ipv4Entry) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Afts_Ipv4Entry) ΛListKeyMap() (map[string]interface{}, error)
- func (t *Afts_Ipv4Entry) ΛValidate(opts ...ygot.ValidationOption) error
- type Afts_Ipv6Entry
- func (t *Afts_Ipv6Entry) GetDecapsulateHeader() E_AftTypes_EncapsulationHeaderType
- func (t *Afts_Ipv6Entry) GetEntryMetadata() Binary
- func (t *Afts_Ipv6Entry) GetNextHopGroup() uint64
- func (t *Afts_Ipv6Entry) GetNextHopGroupNetworkInstance() string
- func (t *Afts_Ipv6Entry) GetPrefix() string
- func (*Afts_Ipv6Entry) IsYANGGoStruct()
- func (t *Afts_Ipv6Entry) Validate(opts ...ygot.ValidationOption) error
- func (*Afts_Ipv6Entry) ΛBelongingModule() string
- func (t *Afts_Ipv6Entry) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Afts_Ipv6Entry) ΛListKeyMap() (map[string]interface{}, error)
- func (t *Afts_Ipv6Entry) ΛValidate(opts ...ygot.ValidationOption) error
- type Afts_LabelEntry
- func (t *Afts_LabelEntry) GetEntryMetadata() Binary
- func (t *Afts_LabelEntry) GetLabel() Afts_LabelEntry_Label_Union
- func (t *Afts_LabelEntry) GetNextHopGroup() uint64
- func (t *Afts_LabelEntry) GetNextHopGroupNetworkInstance() string
- func (t *Afts_LabelEntry) GetPoppedMplsLabelStack() []Afts_LabelEntry_PoppedMplsLabelStack_Union
- func (*Afts_LabelEntry) IsYANGGoStruct()
- func (t *Afts_LabelEntry) To_Afts_LabelEntry_Label_Union(i interface{}) (Afts_LabelEntry_Label_Union, error)
- func (t *Afts_LabelEntry) To_Afts_LabelEntry_PoppedMplsLabelStack_Union(i interface{}) (Afts_LabelEntry_PoppedMplsLabelStack_Union, error)
- func (t *Afts_LabelEntry) Validate(opts ...ygot.ValidationOption) error
- func (*Afts_LabelEntry) ΛBelongingModule() string
- func (t *Afts_LabelEntry) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Afts_LabelEntry) ΛListKeyMap() (map[string]interface{}, error)
- func (t *Afts_LabelEntry) ΛValidate(opts ...ygot.ValidationOption) error
- type Afts_LabelEntry_Label_Union
- type Afts_LabelEntry_PoppedMplsLabelStack_Union
- type Afts_MacEntry
- func (t *Afts_MacEntry) GetEntryMetadata() Binary
- func (t *Afts_MacEntry) GetMacAddress() string
- func (t *Afts_MacEntry) GetNextHopGroup() uint64
- func (t *Afts_MacEntry) GetNextHopGroupNetworkInstance() string
- func (*Afts_MacEntry) IsYANGGoStruct()
- func (t *Afts_MacEntry) Validate(opts ...ygot.ValidationOption) error
- func (*Afts_MacEntry) ΛBelongingModule() string
- func (t *Afts_MacEntry) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Afts_MacEntry) ΛListKeyMap() (map[string]interface{}, error)
- func (t *Afts_MacEntry) ΛValidate(opts ...ygot.ValidationOption) error
- type Afts_NextHop
- func (t *Afts_NextHop) GetDecapsulateHeader() E_AftTypes_EncapsulationHeaderType
- func (t *Afts_NextHop) GetEncapsulateHeader() E_AftTypes_EncapsulationHeaderType
- func (t *Afts_NextHop) GetIndex() uint64
- func (t *Afts_NextHop) GetInterfaceRef() *Afts_NextHop_InterfaceRef
- func (t *Afts_NextHop) GetIpAddress() string
- func (t *Afts_NextHop) GetIpInIp() *Afts_NextHop_IpInIp
- func (t *Afts_NextHop) GetMacAddress() string
- func (t *Afts_NextHop) GetNetworkInstance() string
- func (t *Afts_NextHop) GetOrCreateInterfaceRef() *Afts_NextHop_InterfaceRef
- func (t *Afts_NextHop) GetOrCreateIpInIp() *Afts_NextHop_IpInIp
- func (t *Afts_NextHop) GetPopTopLabel() bool
- func (t *Afts_NextHop) GetPushedMplsLabelStack() []Afts_NextHop_PushedMplsLabelStack_Union
- func (t *Afts_NextHop) GetTunnelSrcIpAddress() string
- func (t *Afts_NextHop) GetVniLabel() uint32
- func (*Afts_NextHop) IsYANGGoStruct()
- func (t *Afts_NextHop) To_Afts_NextHop_PushedMplsLabelStack_Union(i interface{}) (Afts_NextHop_PushedMplsLabelStack_Union, error)
- func (t *Afts_NextHop) Validate(opts ...ygot.ValidationOption) error
- func (*Afts_NextHop) ΛBelongingModule() string
- func (t *Afts_NextHop) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Afts_NextHop) ΛListKeyMap() (map[string]interface{}, error)
- func (t *Afts_NextHop) ΛValidate(opts ...ygot.ValidationOption) error
- type Afts_NextHopGroup
- func (t *Afts_NextHopGroup) DeleteNextHop(Index uint64)
- func (t *Afts_NextHopGroup) GetBackupNextHopGroup() uint64
- func (t *Afts_NextHopGroup) GetColor() uint64
- func (t *Afts_NextHopGroup) GetId() uint64
- func (t *Afts_NextHopGroup) GetNextHop(Index uint64) *Afts_NextHopGroup_NextHop
- func (t *Afts_NextHopGroup) GetOrCreateNextHop(Index uint64) *Afts_NextHopGroup_NextHop
- func (*Afts_NextHopGroup) IsYANGGoStruct()
- func (t *Afts_NextHopGroup) NewNextHop(Index uint64) (*Afts_NextHopGroup_NextHop, error)
- func (t *Afts_NextHopGroup) Validate(opts ...ygot.ValidationOption) error
- func (*Afts_NextHopGroup) ΛBelongingModule() string
- func (t *Afts_NextHopGroup) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Afts_NextHopGroup) ΛListKeyMap() (map[string]interface{}, error)
- func (t *Afts_NextHopGroup) ΛValidate(opts ...ygot.ValidationOption) error
- type Afts_NextHopGroup_NextHop
- func (t *Afts_NextHopGroup_NextHop) GetIndex() uint64
- func (t *Afts_NextHopGroup_NextHop) GetWeight() uint64
- func (*Afts_NextHopGroup_NextHop) IsYANGGoStruct()
- func (t *Afts_NextHopGroup_NextHop) Validate(opts ...ygot.ValidationOption) error
- func (*Afts_NextHopGroup_NextHop) ΛBelongingModule() string
- func (t *Afts_NextHopGroup_NextHop) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Afts_NextHopGroup_NextHop) ΛListKeyMap() (map[string]interface{}, error)
- func (t *Afts_NextHopGroup_NextHop) ΛValidate(opts ...ygot.ValidationOption) error
- type Afts_NextHop_InterfaceRef
- func (t *Afts_NextHop_InterfaceRef) GetInterface() string
- func (t *Afts_NextHop_InterfaceRef) GetSubinterface() uint32
- func (*Afts_NextHop_InterfaceRef) IsYANGGoStruct()
- func (t *Afts_NextHop_InterfaceRef) Validate(opts ...ygot.ValidationOption) error
- func (*Afts_NextHop_InterfaceRef) ΛBelongingModule() string
- func (t *Afts_NextHop_InterfaceRef) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Afts_NextHop_InterfaceRef) ΛValidate(opts ...ygot.ValidationOption) error
- type Afts_NextHop_IpInIp
- func (t *Afts_NextHop_IpInIp) GetDstIp() string
- func (t *Afts_NextHop_IpInIp) GetSrcIp() string
- func (*Afts_NextHop_IpInIp) IsYANGGoStruct()
- func (t *Afts_NextHop_IpInIp) Validate(opts ...ygot.ValidationOption) error
- func (*Afts_NextHop_IpInIp) ΛBelongingModule() string
- func (t *Afts_NextHop_IpInIp) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Afts_NextHop_IpInIp) ΛValidate(opts ...ygot.ValidationOption) error
- type Afts_NextHop_PushedMplsLabelStack_Union
- type Afts_PolicyForwardingEntry
- func (t *Afts_PolicyForwardingEntry) GetEntryMetadata() Binary
- func (t *Afts_PolicyForwardingEntry) GetIndex() uint64
- func (t *Afts_PolicyForwardingEntry) GetIpDscp() uint8
- func (t *Afts_PolicyForwardingEntry) GetIpPrefix() string
- func (t *Afts_PolicyForwardingEntry) GetIpProtocol() Afts_PolicyForwardingEntry_IpProtocol_Union
- func (t *Afts_PolicyForwardingEntry) GetL4DstPort() uint16
- func (t *Afts_PolicyForwardingEntry) GetL4SrcPort() uint16
- func (t *Afts_PolicyForwardingEntry) GetMacAddress() string
- func (t *Afts_PolicyForwardingEntry) GetMplsLabel() Afts_PolicyForwardingEntry_MplsLabel_Union
- func (t *Afts_PolicyForwardingEntry) GetMplsTc() uint8
- func (t *Afts_PolicyForwardingEntry) GetNextHopGroup() uint64
- func (t *Afts_PolicyForwardingEntry) GetNextHopGroupNetworkInstance() string
- func (*Afts_PolicyForwardingEntry) IsYANGGoStruct()
- func (t *Afts_PolicyForwardingEntry) To_Afts_PolicyForwardingEntry_IpProtocol_Union(i interface{}) (Afts_PolicyForwardingEntry_IpProtocol_Union, error)
- func (t *Afts_PolicyForwardingEntry) To_Afts_PolicyForwardingEntry_MplsLabel_Union(i interface{}) (Afts_PolicyForwardingEntry_MplsLabel_Union, error)
- func (t *Afts_PolicyForwardingEntry) Validate(opts ...ygot.ValidationOption) error
- func (*Afts_PolicyForwardingEntry) ΛBelongingModule() string
- func (t *Afts_PolicyForwardingEntry) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Afts_PolicyForwardingEntry) ΛListKeyMap() (map[string]interface{}, error)
- func (t *Afts_PolicyForwardingEntry) ΛValidate(opts ...ygot.ValidationOption) error
- type Afts_PolicyForwardingEntry_IpProtocol_Union
- type Afts_PolicyForwardingEntry_MplsLabel_Union
- type Binary
- type E_AftTypes_EncapsulationHeaderType
- type E_IETFInterfaces_InterfaceType
- type E_Interface_AdminStatus
- type E_Interface_OperStatus
- type E_MplsTypes_MplsLabel_Enum
- func (E_MplsTypes_MplsLabel_Enum) Documentation_for_Afts_LabelEntry_Label_Union()
- func (E_MplsTypes_MplsLabel_Enum) Documentation_for_Afts_LabelEntry_PoppedMplsLabelStack_Union()
- func (E_MplsTypes_MplsLabel_Enum) Documentation_for_Afts_NextHop_PushedMplsLabelStack_Union()
- func (E_MplsTypes_MplsLabel_Enum) Documentation_for_Afts_PolicyForwardingEntry_MplsLabel_Union()
- func (E_MplsTypes_MplsLabel_Enum) IsYANGGoEnum()
- func (e E_MplsTypes_MplsLabel_Enum) String() string
- func (E_MplsTypes_MplsLabel_Enum) ΛMap() map[string]map[int64]ygot.EnumDefinition
- type E_PacketMatchTypes_IP_PROTOCOL
- type Interface
- func (t *Interface) DeleteSubinterface(Index uint32)
- func (t *Interface) GetAdminStatus() E_Interface_AdminStatus
- func (t *Interface) GetCounters() *Interface_Counters
- func (t *Interface) GetCpu() bool
- func (t *Interface) GetDescription() string
- func (t *Interface) GetEnabled() bool
- func (t *Interface) GetHoldTime() *Interface_HoldTime
- func (t *Interface) GetIfindex() uint32
- func (t *Interface) GetLastChange() uint64
- func (t *Interface) GetLogical() bool
- func (t *Interface) GetLoopbackMode() bool
- func (t *Interface) GetManagement() bool
- func (t *Interface) GetMtu() uint16
- func (t *Interface) GetName() string
- func (t *Interface) GetOperStatus() E_Interface_OperStatus
- func (t *Interface) GetOrCreateCounters() *Interface_Counters
- func (t *Interface) GetOrCreateHoldTime() *Interface_HoldTime
- func (t *Interface) GetOrCreateSubinterface(Index uint32) *Interface_Subinterface
- func (t *Interface) GetSubinterface(Index uint32) *Interface_Subinterface
- func (t *Interface) GetType() E_IETFInterfaces_InterfaceType
- func (*Interface) IsYANGGoStruct()
- func (t *Interface) NewSubinterface(Index uint32) (*Interface_Subinterface, 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_Counters
- func (t *Interface_Counters) GetCarrierTransitions() uint64
- func (t *Interface_Counters) GetInBroadcastPkts() uint64
- func (t *Interface_Counters) GetInDiscards() uint64
- func (t *Interface_Counters) GetInErrors() uint64
- func (t *Interface_Counters) GetInFcsErrors() uint64
- func (t *Interface_Counters) GetInMulticastPkts() uint64
- func (t *Interface_Counters) GetInOctets() uint64
- func (t *Interface_Counters) GetInPkts() uint64
- func (t *Interface_Counters) GetInUnicastPkts() uint64
- func (t *Interface_Counters) GetInUnknownProtos() uint64
- func (t *Interface_Counters) GetLastClear() uint64
- func (t *Interface_Counters) GetOutBroadcastPkts() uint64
- func (t *Interface_Counters) GetOutDiscards() uint64
- func (t *Interface_Counters) GetOutErrors() uint64
- func (t *Interface_Counters) GetOutMulticastPkts() uint64
- func (t *Interface_Counters) GetOutOctets() uint64
- func (t *Interface_Counters) GetOutPkts() uint64
- func (t *Interface_Counters) GetOutUnicastPkts() uint64
- func (*Interface_Counters) IsYANGGoStruct()
- func (t *Interface_Counters) Validate(opts ...ygot.ValidationOption) error
- func (*Interface_Counters) ΛBelongingModule() string
- func (t *Interface_Counters) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Interface_Counters) ΛValidate(opts ...ygot.ValidationOption) error
- type Interface_HoldTime
- func (t *Interface_HoldTime) GetDown() uint32
- func (t *Interface_HoldTime) GetUp() uint32
- func (*Interface_HoldTime) IsYANGGoStruct()
- func (t *Interface_HoldTime) Validate(opts ...ygot.ValidationOption) error
- func (*Interface_HoldTime) ΛBelongingModule() string
- func (t *Interface_HoldTime) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Interface_HoldTime) ΛValidate(opts ...ygot.ValidationOption) error
- type Interface_Subinterface
- func (t *Interface_Subinterface) GetAdminStatus() E_Interface_AdminStatus
- func (t *Interface_Subinterface) GetCounters() *Interface_Subinterface_Counters
- func (t *Interface_Subinterface) GetCpu() bool
- func (t *Interface_Subinterface) GetDescription() string
- func (t *Interface_Subinterface) GetEnabled() bool
- func (t *Interface_Subinterface) GetIfindex() uint32
- func (t *Interface_Subinterface) GetIndex() uint32
- func (t *Interface_Subinterface) GetLastChange() uint64
- func (t *Interface_Subinterface) GetLogical() bool
- func (t *Interface_Subinterface) GetManagement() bool
- func (t *Interface_Subinterface) GetName() string
- func (t *Interface_Subinterface) GetOperStatus() E_Interface_OperStatus
- func (t *Interface_Subinterface) GetOrCreateCounters() *Interface_Subinterface_Counters
- func (*Interface_Subinterface) IsYANGGoStruct()
- func (t *Interface_Subinterface) Validate(opts ...ygot.ValidationOption) error
- func (*Interface_Subinterface) ΛBelongingModule() string
- func (t *Interface_Subinterface) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Interface_Subinterface) ΛListKeyMap() (map[string]interface{}, error)
- func (t *Interface_Subinterface) ΛValidate(opts ...ygot.ValidationOption) error
- type Interface_Subinterface_Counters
- func (t *Interface_Subinterface_Counters) GetCarrierTransitions() uint64
- func (t *Interface_Subinterface_Counters) GetInBroadcastPkts() uint64
- func (t *Interface_Subinterface_Counters) GetInDiscards() uint64
- func (t *Interface_Subinterface_Counters) GetInErrors() uint64
- func (t *Interface_Subinterface_Counters) GetInFcsErrors() uint64
- func (t *Interface_Subinterface_Counters) GetInMulticastPkts() uint64
- func (t *Interface_Subinterface_Counters) GetInOctets() uint64
- func (t *Interface_Subinterface_Counters) GetInPkts() uint64
- func (t *Interface_Subinterface_Counters) GetInUnicastPkts() uint64
- func (t *Interface_Subinterface_Counters) GetInUnknownProtos() uint64
- func (t *Interface_Subinterface_Counters) GetLastClear() uint64
- func (t *Interface_Subinterface_Counters) GetOutBroadcastPkts() uint64
- func (t *Interface_Subinterface_Counters) GetOutDiscards() uint64
- func (t *Interface_Subinterface_Counters) GetOutErrors() uint64
- func (t *Interface_Subinterface_Counters) GetOutMulticastPkts() uint64
- func (t *Interface_Subinterface_Counters) GetOutOctets() uint64
- func (t *Interface_Subinterface_Counters) GetOutPkts() uint64
- func (t *Interface_Subinterface_Counters) GetOutUnicastPkts() uint64
- func (*Interface_Subinterface_Counters) IsYANGGoStruct()
- func (t *Interface_Subinterface_Counters) Validate(opts ...ygot.ValidationOption) error
- func (*Interface_Subinterface_Counters) ΛBelongingModule() string
- func (t *Interface_Subinterface_Counters) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *Interface_Subinterface_Counters) ΛValidate(opts ...ygot.ValidationOption) error
- type RIB
- func (t *RIB) DeleteInterface(Name string)
- func (t *RIB) GetAfts() *Afts
- func (t *RIB) GetInterface(Name string) *Interface
- func (t *RIB) GetOrCreateAfts() *Afts
- func (t *RIB) GetOrCreateInterface(Name string) *Interface
- func (*RIB) IsYANGGoStruct()
- func (t *RIB) NewInterface(Name string) (*Interface, error)
- func (t *RIB) Validate(opts ...ygot.ValidationOption) error
- func (*RIB) ΛBelongingModule() string
- func (t *RIB) ΛEnumTypeMap() map[string][]reflect.Type
- func (t *RIB) ΛValidate(opts ...ygot.ValidationOption) error
- type UnionBool
- type UnionFloat64
- type UnionInt16
- type UnionInt32
- type UnionInt64
- type UnionInt8
- type UnionString
- type UnionUint16
- type UnionUint32
- func (UnionUint32) Documentation_for_Afts_LabelEntry_Label_Union()
- func (UnionUint32) Documentation_for_Afts_LabelEntry_PoppedMplsLabelStack_Union()
- func (UnionUint32) Documentation_for_Afts_NextHop_PushedMplsLabelStack_Union()
- func (UnionUint32) Documentation_for_Afts_PolicyForwardingEntry_MplsLabel_Union()
- type UnionUint64
- type UnionUint8
- type UnionUnsupported
- type YANGEmpty
Constants ¶
This section is empty.
Variables ¶
var ΛEnum = map[string]map[int64]ygot.EnumDefinition{
"E_AftTypes_EncapsulationHeaderType": {
1: {Name: "GRE"},
2: {Name: "IPV4"},
3: {Name: "IPV6"},
4: {Name: "MPLS"},
5: {Name: "VXLAN"},
},
"E_IETFInterfaces_InterfaceType": {},
"E_Interface_AdminStatus": {
1: {Name: "UP"},
2: {Name: "DOWN"},
3: {Name: "TESTING"},
},
"E_Interface_OperStatus": {
1: {Name: "UP"},
2: {Name: "DOWN"},
3: {Name: "TESTING"},
4: {Name: "UNKNOWN"},
5: {Name: "DORMANT"},
6: {Name: "NOT_PRESENT"},
7: {Name: "LOWER_LAYER_DOWN"},
},
"E_MplsTypes_MplsLabel_Enum": {
1: {Name: "IPV4_EXPLICIT_NULL"},
2: {Name: "ROUTER_ALERT"},
3: {Name: "IPV6_EXPLICIT_NULL"},
4: {Name: "IMPLICIT_NULL"},
5: {Name: "ENTROPY_LABEL_INDICATOR"},
6: {Name: "NO_LABEL"},
},
"E_PacketMatchTypes_IP_PROTOCOL": {
1: {Name: "IP_AUTH", DefiningModule: "openconfig-packet-match-types"},
2: {Name: "IP_GRE", DefiningModule: "openconfig-packet-match-types"},
3: {Name: "IP_ICMP", DefiningModule: "openconfig-packet-match-types"},
4: {Name: "IP_IGMP", DefiningModule: "openconfig-packet-match-types"},
5: {Name: "IP_IN_IP", DefiningModule: "openconfig-packet-match-types"},
6: {Name: "IP_L2TP", DefiningModule: "openconfig-packet-match-types"},
7: {Name: "IP_PIM", DefiningModule: "openconfig-packet-match-types"},
8: {Name: "IP_RSVP", DefiningModule: "openconfig-packet-match-types"},
9: {Name: "IP_TCP", DefiningModule: "openconfig-packet-match-types"},
10: {Name: "IP_UDP", DefiningModule: "openconfig-packet-match-types"},
},
}
Λ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 Afts ¶
type Afts struct { Ipv4Entry map[string]*Afts_Ipv4Entry `path:"ipv4-unicast/ipv4-entry" module:"gribi-aft/gribi-aft"` Ipv6Entry map[string]*Afts_Ipv6Entry `path:"ipv6-unicast/ipv6-entry" module:"gribi-aft/gribi-aft"` LabelEntry map[Afts_LabelEntry_Label_Union]*Afts_LabelEntry `path:"mpls/label-entry" module:"gribi-aft/gribi-aft"` MacEntry map[string]*Afts_MacEntry `path:"ethernet/mac-entry" module:"gribi-aft/gribi-aft"` NextHop map[uint64]*Afts_NextHop `path:"next-hops/next-hop" module:"gribi-aft/gribi-aft"` NextHopGroup map[uint64]*Afts_NextHopGroup `path:"next-hop-groups/next-hop-group" module:"gribi-aft/gribi-aft"` PolicyForwardingEntry map[uint64]*Afts_PolicyForwardingEntry `path:"policy-forwarding/policy-forwarding-entry" module:"gribi-aft/gribi-aft"` }
Afts represents the /gribi-aft/afts YANG schema element.
func (*Afts) DeleteIpv4Entry ¶
DeleteIpv4Entry deletes the value with the specified keys from the receiver Afts. If there is no such element, the function is a no-op.
func (*Afts) DeleteIpv6Entry ¶
DeleteIpv6Entry deletes the value with the specified keys from the receiver Afts. If there is no such element, the function is a no-op.
func (*Afts) DeleteLabelEntry ¶
func (t *Afts) DeleteLabelEntry(Label Afts_LabelEntry_Label_Union)
DeleteLabelEntry deletes the value with the specified keys from the receiver Afts. If there is no such element, the function is a no-op.
func (*Afts) DeleteMacEntry ¶
DeleteMacEntry deletes the value with the specified keys from the receiver Afts. If there is no such element, the function is a no-op.
func (*Afts) DeleteNextHop ¶
DeleteNextHop deletes the value with the specified keys from the receiver Afts. If there is no such element, the function is a no-op.
func (*Afts) DeleteNextHopGroup ¶
DeleteNextHopGroup deletes the value with the specified keys from the receiver Afts. If there is no such element, the function is a no-op.
func (*Afts) DeletePolicyForwardingEntry ¶
DeletePolicyForwardingEntry deletes the value with the specified keys from the receiver Afts. If there is no such element, the function is a no-op.
func (*Afts) GetIpv4Entry ¶
func (t *Afts) GetIpv4Entry(Prefix string) *Afts_Ipv4Entry
GetIpv4Entry retrieves the value with the specified key from the Ipv4Entry map field of Afts. 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 (*Afts) GetIpv6Entry ¶
func (t *Afts) GetIpv6Entry(Prefix string) *Afts_Ipv6Entry
GetIpv6Entry retrieves the value with the specified key from the Ipv6Entry map field of Afts. 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 (*Afts) GetLabelEntry ¶
func (t *Afts) GetLabelEntry(Label Afts_LabelEntry_Label_Union) *Afts_LabelEntry
GetLabelEntry retrieves the value with the specified key from the LabelEntry map field of Afts. 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 (*Afts) GetMacEntry ¶
func (t *Afts) GetMacEntry(MacAddress string) *Afts_MacEntry
GetMacEntry retrieves the value with the specified key from the MacEntry map field of Afts. 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 (*Afts) GetNextHop ¶
func (t *Afts) GetNextHop(Index uint64) *Afts_NextHop
GetNextHop retrieves the value with the specified key from the NextHop map field of Afts. 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 (*Afts) GetNextHopGroup ¶
func (t *Afts) GetNextHopGroup(Id uint64) *Afts_NextHopGroup
GetNextHopGroup retrieves the value with the specified key from the NextHopGroup map field of Afts. 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 (*Afts) GetOrCreateIpv4Entry ¶
func (t *Afts) GetOrCreateIpv4Entry(Prefix string) *Afts_Ipv4Entry
GetOrCreateIpv4Entry retrieves the value with the specified keys from the receiver Afts. If the entry does not exist, then it is created. It returns the existing or new list member.
func (*Afts) GetOrCreateIpv6Entry ¶
func (t *Afts) GetOrCreateIpv6Entry(Prefix string) *Afts_Ipv6Entry
GetOrCreateIpv6Entry retrieves the value with the specified keys from the receiver Afts. If the entry does not exist, then it is created. It returns the existing or new list member.
func (*Afts) GetOrCreateLabelEntry ¶
func (t *Afts) GetOrCreateLabelEntry(Label Afts_LabelEntry_Label_Union) *Afts_LabelEntry
GetOrCreateLabelEntry retrieves the value with the specified keys from the receiver Afts. If the entry does not exist, then it is created. It returns the existing or new list member.
func (*Afts) GetOrCreateMacEntry ¶
func (t *Afts) GetOrCreateMacEntry(MacAddress string) *Afts_MacEntry
GetOrCreateMacEntry retrieves the value with the specified keys from the receiver Afts. If the entry does not exist, then it is created. It returns the existing or new list member.
func (*Afts) GetOrCreateNextHop ¶
func (t *Afts) GetOrCreateNextHop(Index uint64) *Afts_NextHop
GetOrCreateNextHop retrieves the value with the specified keys from the receiver Afts. If the entry does not exist, then it is created. It returns the existing or new list member.
func (*Afts) GetOrCreateNextHopGroup ¶
func (t *Afts) GetOrCreateNextHopGroup(Id uint64) *Afts_NextHopGroup
GetOrCreateNextHopGroup retrieves the value with the specified keys from the receiver Afts. If the entry does not exist, then it is created. It returns the existing or new list member.
func (*Afts) GetOrCreatePolicyForwardingEntry ¶
func (t *Afts) GetOrCreatePolicyForwardingEntry(Index uint64) *Afts_PolicyForwardingEntry
GetOrCreatePolicyForwardingEntry retrieves the value with the specified keys from the receiver Afts. If the entry does not exist, then it is created. It returns the existing or new list member.
func (*Afts) GetPolicyForwardingEntry ¶
func (t *Afts) GetPolicyForwardingEntry(Index uint64) *Afts_PolicyForwardingEntry
GetPolicyForwardingEntry retrieves the value with the specified key from the PolicyForwardingEntry map field of Afts. 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 (*Afts) IsYANGGoStruct ¶
func (*Afts) IsYANGGoStruct()
IsYANGGoStruct ensures that Afts implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Afts) NewIpv4Entry ¶
func (t *Afts) NewIpv4Entry(Prefix string) (*Afts_Ipv4Entry, error)
NewIpv4Entry creates a new entry in the Ipv4Entry list of the Afts struct. The keys of the list are populated from the input arguments.
func (*Afts) NewIpv6Entry ¶
func (t *Afts) NewIpv6Entry(Prefix string) (*Afts_Ipv6Entry, error)
NewIpv6Entry creates a new entry in the Ipv6Entry list of the Afts struct. The keys of the list are populated from the input arguments.
func (*Afts) NewLabelEntry ¶
func (t *Afts) NewLabelEntry(Label Afts_LabelEntry_Label_Union) (*Afts_LabelEntry, error)
NewLabelEntry creates a new entry in the LabelEntry list of the Afts struct. The keys of the list are populated from the input arguments.
func (*Afts) NewMacEntry ¶
func (t *Afts) NewMacEntry(MacAddress string) (*Afts_MacEntry, error)
NewMacEntry creates a new entry in the MacEntry list of the Afts struct. The keys of the list are populated from the input arguments.
func (*Afts) NewNextHop ¶
func (t *Afts) NewNextHop(Index uint64) (*Afts_NextHop, error)
NewNextHop creates a new entry in the NextHop list of the Afts struct. The keys of the list are populated from the input arguments.
func (*Afts) NewNextHopGroup ¶
func (t *Afts) NewNextHopGroup(Id uint64) (*Afts_NextHopGroup, error)
NewNextHopGroup creates a new entry in the NextHopGroup list of the Afts struct. The keys of the list are populated from the input arguments.
func (*Afts) NewPolicyForwardingEntry ¶
func (t *Afts) NewPolicyForwardingEntry(Index uint64) (*Afts_PolicyForwardingEntry, error)
NewPolicyForwardingEntry creates a new entry in the PolicyForwardingEntry list of the Afts struct. The keys of the list are populated from the input arguments.
func (*Afts) Validate ¶
func (t *Afts) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Afts) ΛBelongingModule ¶
ΛBelongingModule returns the name of the module that defines the namespace of Afts.
func (*Afts) ΛEnumTypeMap ¶
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
type Afts_Ipv4Entry ¶
type Afts_Ipv4Entry struct { DecapsulateHeader E_AftTypes_EncapsulationHeaderType `path:"state/decapsulate-header" module:"gribi-aft/gribi-aft"` EntryMetadata Binary `path:"state/entry-metadata" module:"gribi-aft/gribi-aft"` NextHopGroup *uint64 `path:"state/next-hop-group" module:"gribi-aft/gribi-aft"` NextHopGroupNetworkInstance *string `path:"state/next-hop-group-network-instance" module:"gribi-aft/gribi-aft"` Prefix *string `path:"state/prefix|prefix" module:"gribi-aft/gribi-aft|gribi-aft"` }
Afts_Ipv4Entry represents the /gribi-aft/afts/ipv4-unicast/ipv4-entry YANG schema element.
func (*Afts_Ipv4Entry) GetDecapsulateHeader ¶
func (t *Afts_Ipv4Entry) GetDecapsulateHeader() E_AftTypes_EncapsulationHeaderType
GetDecapsulateHeader retrieves the value of the leaf DecapsulateHeader from the Afts_Ipv4Entry 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 DecapsulateHeader is set, it can safely use t.GetDecapsulateHeader() 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.DecapsulateHeader == nil' before retrieving the leaf's value.
func (*Afts_Ipv4Entry) GetEntryMetadata ¶
func (t *Afts_Ipv4Entry) GetEntryMetadata() Binary
GetEntryMetadata retrieves the value of the leaf EntryMetadata from the Afts_Ipv4Entry 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 EntryMetadata is set, it can safely use t.GetEntryMetadata() 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.EntryMetadata == nil' before retrieving the leaf's value.
func (*Afts_Ipv4Entry) GetNextHopGroup ¶
func (t *Afts_Ipv4Entry) GetNextHopGroup() uint64
GetNextHopGroup retrieves the value of the leaf NextHopGroup from the Afts_Ipv4Entry 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 NextHopGroup is set, it can safely use t.GetNextHopGroup() 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.NextHopGroup == nil' before retrieving the leaf's value.
func (*Afts_Ipv4Entry) GetNextHopGroupNetworkInstance ¶
func (t *Afts_Ipv4Entry) GetNextHopGroupNetworkInstance() string
GetNextHopGroupNetworkInstance retrieves the value of the leaf NextHopGroupNetworkInstance from the Afts_Ipv4Entry 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 NextHopGroupNetworkInstance is set, it can safely use t.GetNextHopGroupNetworkInstance() 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.NextHopGroupNetworkInstance == nil' before retrieving the leaf's value.
func (*Afts_Ipv4Entry) GetPrefix ¶
func (t *Afts_Ipv4Entry) GetPrefix() string
GetPrefix retrieves the value of the leaf Prefix from the Afts_Ipv4Entry 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 Prefix is set, it can safely use t.GetPrefix() 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.Prefix == nil' before retrieving the leaf's value.
func (*Afts_Ipv4Entry) IsYANGGoStruct ¶
func (*Afts_Ipv4Entry) IsYANGGoStruct()
IsYANGGoStruct ensures that Afts_Ipv4Entry implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Afts_Ipv4Entry) Validate ¶
func (t *Afts_Ipv4Entry) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Afts_Ipv4Entry) ΛBelongingModule ¶
func (*Afts_Ipv4Entry) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Afts_Ipv4Entry.
func (*Afts_Ipv4Entry) ΛEnumTypeMap ¶
func (t *Afts_Ipv4Entry) Λ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 (*Afts_Ipv4Entry) ΛListKeyMap ¶
func (t *Afts_Ipv4Entry) ΛListKeyMap() (map[string]interface{}, error)
ΛListKeyMap returns the keys of the Afts_Ipv4Entry struct, which is a YANG list entry.
func (*Afts_Ipv4Entry) ΛValidate ¶
func (t *Afts_Ipv4Entry) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Afts_Ipv6Entry ¶
type Afts_Ipv6Entry struct { DecapsulateHeader E_AftTypes_EncapsulationHeaderType `path:"state/decapsulate-header" module:"gribi-aft/gribi-aft"` EntryMetadata Binary `path:"state/entry-metadata" module:"gribi-aft/gribi-aft"` NextHopGroup *uint64 `path:"state/next-hop-group" module:"gribi-aft/gribi-aft"` NextHopGroupNetworkInstance *string `path:"state/next-hop-group-network-instance" module:"gribi-aft/gribi-aft"` Prefix *string `path:"state/prefix|prefix" module:"gribi-aft/gribi-aft|gribi-aft"` }
Afts_Ipv6Entry represents the /gribi-aft/afts/ipv6-unicast/ipv6-entry YANG schema element.
func (*Afts_Ipv6Entry) GetDecapsulateHeader ¶
func (t *Afts_Ipv6Entry) GetDecapsulateHeader() E_AftTypes_EncapsulationHeaderType
GetDecapsulateHeader retrieves the value of the leaf DecapsulateHeader from the Afts_Ipv6Entry 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 DecapsulateHeader is set, it can safely use t.GetDecapsulateHeader() 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.DecapsulateHeader == nil' before retrieving the leaf's value.
func (*Afts_Ipv6Entry) GetEntryMetadata ¶
func (t *Afts_Ipv6Entry) GetEntryMetadata() Binary
GetEntryMetadata retrieves the value of the leaf EntryMetadata from the Afts_Ipv6Entry 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 EntryMetadata is set, it can safely use t.GetEntryMetadata() 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.EntryMetadata == nil' before retrieving the leaf's value.
func (*Afts_Ipv6Entry) GetNextHopGroup ¶
func (t *Afts_Ipv6Entry) GetNextHopGroup() uint64
GetNextHopGroup retrieves the value of the leaf NextHopGroup from the Afts_Ipv6Entry 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 NextHopGroup is set, it can safely use t.GetNextHopGroup() 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.NextHopGroup == nil' before retrieving the leaf's value.
func (*Afts_Ipv6Entry) GetNextHopGroupNetworkInstance ¶
func (t *Afts_Ipv6Entry) GetNextHopGroupNetworkInstance() string
GetNextHopGroupNetworkInstance retrieves the value of the leaf NextHopGroupNetworkInstance from the Afts_Ipv6Entry 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 NextHopGroupNetworkInstance is set, it can safely use t.GetNextHopGroupNetworkInstance() 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.NextHopGroupNetworkInstance == nil' before retrieving the leaf's value.
func (*Afts_Ipv6Entry) GetPrefix ¶
func (t *Afts_Ipv6Entry) GetPrefix() string
GetPrefix retrieves the value of the leaf Prefix from the Afts_Ipv6Entry 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 Prefix is set, it can safely use t.GetPrefix() 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.Prefix == nil' before retrieving the leaf's value.
func (*Afts_Ipv6Entry) IsYANGGoStruct ¶
func (*Afts_Ipv6Entry) IsYANGGoStruct()
IsYANGGoStruct ensures that Afts_Ipv6Entry implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Afts_Ipv6Entry) Validate ¶
func (t *Afts_Ipv6Entry) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Afts_Ipv6Entry) ΛBelongingModule ¶
func (*Afts_Ipv6Entry) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Afts_Ipv6Entry.
func (*Afts_Ipv6Entry) ΛEnumTypeMap ¶
func (t *Afts_Ipv6Entry) Λ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 (*Afts_Ipv6Entry) ΛListKeyMap ¶
func (t *Afts_Ipv6Entry) ΛListKeyMap() (map[string]interface{}, error)
ΛListKeyMap returns the keys of the Afts_Ipv6Entry struct, which is a YANG list entry.
func (*Afts_Ipv6Entry) ΛValidate ¶
func (t *Afts_Ipv6Entry) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Afts_LabelEntry ¶
type Afts_LabelEntry struct { EntryMetadata Binary `path:"state/entry-metadata" module:"gribi-aft/gribi-aft"` Label Afts_LabelEntry_Label_Union `path:"state/label|label" module:"gribi-aft/gribi-aft|gribi-aft"` NextHopGroup *uint64 `path:"state/next-hop-group" module:"gribi-aft/gribi-aft"` NextHopGroupNetworkInstance *string `path:"state/next-hop-group-network-instance" module:"gribi-aft/gribi-aft"` PoppedMplsLabelStack []Afts_LabelEntry_PoppedMplsLabelStack_Union `path:"state/popped-mpls-label-stack" module:"gribi-aft/gribi-aft"` }
Afts_LabelEntry represents the /gribi-aft/afts/mpls/label-entry YANG schema element.
func (*Afts_LabelEntry) GetEntryMetadata ¶
func (t *Afts_LabelEntry) GetEntryMetadata() Binary
GetEntryMetadata retrieves the value of the leaf EntryMetadata from the Afts_LabelEntry 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 EntryMetadata is set, it can safely use t.GetEntryMetadata() 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.EntryMetadata == nil' before retrieving the leaf's value.
func (*Afts_LabelEntry) GetLabel ¶
func (t *Afts_LabelEntry) GetLabel() Afts_LabelEntry_Label_Union
GetLabel retrieves the value of the leaf Label from the Afts_LabelEntry 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 Label is set, it can safely use t.GetLabel() 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.Label == nil' before retrieving the leaf's value.
func (*Afts_LabelEntry) GetNextHopGroup ¶
func (t *Afts_LabelEntry) GetNextHopGroup() uint64
GetNextHopGroup retrieves the value of the leaf NextHopGroup from the Afts_LabelEntry 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 NextHopGroup is set, it can safely use t.GetNextHopGroup() 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.NextHopGroup == nil' before retrieving the leaf's value.
func (*Afts_LabelEntry) GetNextHopGroupNetworkInstance ¶
func (t *Afts_LabelEntry) GetNextHopGroupNetworkInstance() string
GetNextHopGroupNetworkInstance retrieves the value of the leaf NextHopGroupNetworkInstance from the Afts_LabelEntry 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 NextHopGroupNetworkInstance is set, it can safely use t.GetNextHopGroupNetworkInstance() 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.NextHopGroupNetworkInstance == nil' before retrieving the leaf's value.
func (*Afts_LabelEntry) GetPoppedMplsLabelStack ¶
func (t *Afts_LabelEntry) GetPoppedMplsLabelStack() []Afts_LabelEntry_PoppedMplsLabelStack_Union
GetPoppedMplsLabelStack retrieves the value of the leaf PoppedMplsLabelStack from the Afts_LabelEntry 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 PoppedMplsLabelStack is set, it can safely use t.GetPoppedMplsLabelStack() 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.PoppedMplsLabelStack == nil' before retrieving the leaf's value.
func (*Afts_LabelEntry) IsYANGGoStruct ¶
func (*Afts_LabelEntry) IsYANGGoStruct()
IsYANGGoStruct ensures that Afts_LabelEntry implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Afts_LabelEntry) To_Afts_LabelEntry_Label_Union ¶
func (t *Afts_LabelEntry) To_Afts_LabelEntry_Label_Union(i interface{}) (Afts_LabelEntry_Label_Union, error)
To_Afts_LabelEntry_Label_Union takes an input interface{} and attempts to convert it to a struct which implements the Afts_LabelEntry_Label_Union union. It returns an error if the interface{} supplied cannot be converted to a type within the union.
func (*Afts_LabelEntry) To_Afts_LabelEntry_PoppedMplsLabelStack_Union ¶
func (t *Afts_LabelEntry) To_Afts_LabelEntry_PoppedMplsLabelStack_Union(i interface{}) (Afts_LabelEntry_PoppedMplsLabelStack_Union, error)
To_Afts_LabelEntry_PoppedMplsLabelStack_Union takes an input interface{} and attempts to convert it to a struct which implements the Afts_LabelEntry_PoppedMplsLabelStack_Union union. It returns an error if the interface{} supplied cannot be converted to a type within the union.
func (*Afts_LabelEntry) Validate ¶
func (t *Afts_LabelEntry) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Afts_LabelEntry) ΛBelongingModule ¶
func (*Afts_LabelEntry) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Afts_LabelEntry.
func (*Afts_LabelEntry) ΛEnumTypeMap ¶
func (t *Afts_LabelEntry) Λ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 (*Afts_LabelEntry) ΛListKeyMap ¶
func (t *Afts_LabelEntry) ΛListKeyMap() (map[string]interface{}, error)
ΛListKeyMap returns the keys of the Afts_LabelEntry struct, which is a YANG list entry.
func (*Afts_LabelEntry) ΛValidate ¶
func (t *Afts_LabelEntry) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Afts_LabelEntry_Label_Union ¶
type Afts_LabelEntry_Label_Union interface {
// Union type can be one of [E_MplsTypes_MplsLabel_Enum, UnionUint32]
Documentation_for_Afts_LabelEntry_Label_Union()
}
Afts_LabelEntry_Label_Union is an interface that is implemented by valid types for the union for the leaf /gribi-aft/afts/mpls/label-entry/state/label within the YANG schema. Union type can be one of [E_MplsTypes_MplsLabel_Enum, UnionUint32].
type Afts_LabelEntry_PoppedMplsLabelStack_Union ¶
type Afts_LabelEntry_PoppedMplsLabelStack_Union interface {
// Union type can be one of [E_MplsTypes_MplsLabel_Enum, UnionUint32]
Documentation_for_Afts_LabelEntry_PoppedMplsLabelStack_Union()
}
Afts_LabelEntry_PoppedMplsLabelStack_Union is an interface that is implemented by valid types for the union for the leaf /gribi-aft/afts/mpls/label-entry/state/popped-mpls-label-stack within the YANG schema. Union type can be one of [E_MplsTypes_MplsLabel_Enum, UnionUint32].
type Afts_MacEntry ¶
type Afts_MacEntry struct { EntryMetadata Binary `path:"state/entry-metadata" module:"gribi-aft/gribi-aft"` MacAddress *string `path:"state/mac-address|mac-address" module:"gribi-aft/gribi-aft|gribi-aft"` NextHopGroup *uint64 `path:"state/next-hop-group" module:"gribi-aft/gribi-aft"` NextHopGroupNetworkInstance *string `path:"state/next-hop-group-network-instance" module:"gribi-aft/gribi-aft"` }
Afts_MacEntry represents the /gribi-aft/afts/ethernet/mac-entry YANG schema element.
func (*Afts_MacEntry) GetEntryMetadata ¶
func (t *Afts_MacEntry) GetEntryMetadata() Binary
GetEntryMetadata retrieves the value of the leaf EntryMetadata from the Afts_MacEntry 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 EntryMetadata is set, it can safely use t.GetEntryMetadata() 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.EntryMetadata == nil' before retrieving the leaf's value.
func (*Afts_MacEntry) GetMacAddress ¶
func (t *Afts_MacEntry) GetMacAddress() string
GetMacAddress retrieves the value of the leaf MacAddress from the Afts_MacEntry 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 MacAddress is set, it can safely use t.GetMacAddress() 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.MacAddress == nil' before retrieving the leaf's value.
func (*Afts_MacEntry) GetNextHopGroup ¶
func (t *Afts_MacEntry) GetNextHopGroup() uint64
GetNextHopGroup retrieves the value of the leaf NextHopGroup from the Afts_MacEntry 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 NextHopGroup is set, it can safely use t.GetNextHopGroup() 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.NextHopGroup == nil' before retrieving the leaf's value.
func (*Afts_MacEntry) GetNextHopGroupNetworkInstance ¶
func (t *Afts_MacEntry) GetNextHopGroupNetworkInstance() string
GetNextHopGroupNetworkInstance retrieves the value of the leaf NextHopGroupNetworkInstance from the Afts_MacEntry 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 NextHopGroupNetworkInstance is set, it can safely use t.GetNextHopGroupNetworkInstance() 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.NextHopGroupNetworkInstance == nil' before retrieving the leaf's value.
func (*Afts_MacEntry) IsYANGGoStruct ¶
func (*Afts_MacEntry) IsYANGGoStruct()
IsYANGGoStruct ensures that Afts_MacEntry implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Afts_MacEntry) Validate ¶
func (t *Afts_MacEntry) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Afts_MacEntry) ΛBelongingModule ¶
func (*Afts_MacEntry) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Afts_MacEntry.
func (*Afts_MacEntry) ΛEnumTypeMap ¶
func (t *Afts_MacEntry) Λ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 (*Afts_MacEntry) ΛListKeyMap ¶
func (t *Afts_MacEntry) ΛListKeyMap() (map[string]interface{}, error)
ΛListKeyMap returns the keys of the Afts_MacEntry struct, which is a YANG list entry.
func (*Afts_MacEntry) ΛValidate ¶
func (t *Afts_MacEntry) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Afts_NextHop ¶
type Afts_NextHop struct { DecapsulateHeader E_AftTypes_EncapsulationHeaderType `path:"state/decapsulate-header" module:"gribi-aft/gribi-aft"` EncapsulateHeader E_AftTypes_EncapsulationHeaderType `path:"state/encapsulate-header" module:"gribi-aft/gribi-aft"` Index *uint64 `path:"state/index|index" module:"gribi-aft/gribi-aft|gribi-aft"` InterfaceRef *Afts_NextHop_InterfaceRef `path:"interface-ref" module:"gribi-aft"` IpAddress *string `path:"state/ip-address" module:"gribi-aft/gribi-aft"` IpInIp *Afts_NextHop_IpInIp `path:"ip-in-ip" module:"gribi-aft"` MacAddress *string `path:"state/mac-address" module:"gribi-aft/gribi-aft"` NetworkInstance *string `path:"state/network-instance" module:"gribi-aft/gribi-aft"` PopTopLabel *bool `path:"state/pop-top-label" module:"gribi-aft/gribi-aft"` PushedMplsLabelStack []Afts_NextHop_PushedMplsLabelStack_Union `path:"state/pushed-mpls-label-stack" module:"gribi-aft/gribi-aft"` TunnelSrcIpAddress *string `path:"state/tunnel-src-ip-address" module:"gribi-aft/gribi-aft"` VniLabel *uint32 `path:"state/vni-label" module:"gribi-aft/gribi-aft"` }
Afts_NextHop represents the /gribi-aft/afts/next-hops/next-hop YANG schema element.
func (*Afts_NextHop) GetDecapsulateHeader ¶
func (t *Afts_NextHop) GetDecapsulateHeader() E_AftTypes_EncapsulationHeaderType
GetDecapsulateHeader retrieves the value of the leaf DecapsulateHeader from the Afts_NextHop 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 DecapsulateHeader is set, it can safely use t.GetDecapsulateHeader() 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.DecapsulateHeader == nil' before retrieving the leaf's value.
func (*Afts_NextHop) GetEncapsulateHeader ¶
func (t *Afts_NextHop) GetEncapsulateHeader() E_AftTypes_EncapsulationHeaderType
GetEncapsulateHeader retrieves the value of the leaf EncapsulateHeader from the Afts_NextHop 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 EncapsulateHeader is set, it can safely use t.GetEncapsulateHeader() 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.EncapsulateHeader == nil' before retrieving the leaf's value.
func (*Afts_NextHop) GetIndex ¶
func (t *Afts_NextHop) GetIndex() uint64
GetIndex retrieves the value of the leaf Index from the Afts_NextHop 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 Index is set, it can safely use t.GetIndex() 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.Index == nil' before retrieving the leaf's value.
func (*Afts_NextHop) GetInterfaceRef ¶
func (t *Afts_NextHop) GetInterfaceRef() *Afts_NextHop_InterfaceRef
GetInterfaceRef returns the value of the InterfaceRef struct pointer from Afts_NextHop. If the receiver or the field InterfaceRef is nil, nil is returned such that the Get* methods can be safely chained.
func (*Afts_NextHop) GetIpAddress ¶
func (t *Afts_NextHop) GetIpAddress() string
GetIpAddress retrieves the value of the leaf IpAddress from the Afts_NextHop 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 IpAddress is set, it can safely use t.GetIpAddress() 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.IpAddress == nil' before retrieving the leaf's value.
func (*Afts_NextHop) GetIpInIp ¶
func (t *Afts_NextHop) GetIpInIp() *Afts_NextHop_IpInIp
GetIpInIp returns the value of the IpInIp struct pointer from Afts_NextHop. If the receiver or the field IpInIp is nil, nil is returned such that the Get* methods can be safely chained.
func (*Afts_NextHop) GetMacAddress ¶
func (t *Afts_NextHop) GetMacAddress() string
GetMacAddress retrieves the value of the leaf MacAddress from the Afts_NextHop 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 MacAddress is set, it can safely use t.GetMacAddress() 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.MacAddress == nil' before retrieving the leaf's value.
func (*Afts_NextHop) GetNetworkInstance ¶
func (t *Afts_NextHop) GetNetworkInstance() string
GetNetworkInstance retrieves the value of the leaf NetworkInstance from the Afts_NextHop 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 NetworkInstance is set, it can safely use t.GetNetworkInstance() 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.NetworkInstance == nil' before retrieving the leaf's value.
func (*Afts_NextHop) GetOrCreateInterfaceRef ¶
func (t *Afts_NextHop) GetOrCreateInterfaceRef() *Afts_NextHop_InterfaceRef
GetOrCreateInterfaceRef retrieves the value of the InterfaceRef field or returns the existing field if it already exists.
func (*Afts_NextHop) GetOrCreateIpInIp ¶
func (t *Afts_NextHop) GetOrCreateIpInIp() *Afts_NextHop_IpInIp
GetOrCreateIpInIp retrieves the value of the IpInIp field or returns the existing field if it already exists.
func (*Afts_NextHop) GetPopTopLabel ¶
func (t *Afts_NextHop) GetPopTopLabel() bool
GetPopTopLabel retrieves the value of the leaf PopTopLabel from the Afts_NextHop 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 PopTopLabel is set, it can safely use t.GetPopTopLabel() 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.PopTopLabel == nil' before retrieving the leaf's value.
func (*Afts_NextHop) GetPushedMplsLabelStack ¶
func (t *Afts_NextHop) GetPushedMplsLabelStack() []Afts_NextHop_PushedMplsLabelStack_Union
GetPushedMplsLabelStack retrieves the value of the leaf PushedMplsLabelStack from the Afts_NextHop 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 PushedMplsLabelStack is set, it can safely use t.GetPushedMplsLabelStack() 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.PushedMplsLabelStack == nil' before retrieving the leaf's value.
func (*Afts_NextHop) GetTunnelSrcIpAddress ¶
func (t *Afts_NextHop) GetTunnelSrcIpAddress() string
GetTunnelSrcIpAddress retrieves the value of the leaf TunnelSrcIpAddress from the Afts_NextHop 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 TunnelSrcIpAddress is set, it can safely use t.GetTunnelSrcIpAddress() 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.TunnelSrcIpAddress == nil' before retrieving the leaf's value.
func (*Afts_NextHop) GetVniLabel ¶
func (t *Afts_NextHop) GetVniLabel() uint32
GetVniLabel retrieves the value of the leaf VniLabel from the Afts_NextHop 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 VniLabel is set, it can safely use t.GetVniLabel() 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.VniLabel == nil' before retrieving the leaf's value.
func (*Afts_NextHop) IsYANGGoStruct ¶
func (*Afts_NextHop) IsYANGGoStruct()
IsYANGGoStruct ensures that Afts_NextHop implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Afts_NextHop) To_Afts_NextHop_PushedMplsLabelStack_Union ¶
func (t *Afts_NextHop) To_Afts_NextHop_PushedMplsLabelStack_Union(i interface{}) (Afts_NextHop_PushedMplsLabelStack_Union, error)
To_Afts_NextHop_PushedMplsLabelStack_Union takes an input interface{} and attempts to convert it to a struct which implements the Afts_NextHop_PushedMplsLabelStack_Union union. It returns an error if the interface{} supplied cannot be converted to a type within the union.
func (*Afts_NextHop) Validate ¶
func (t *Afts_NextHop) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Afts_NextHop) ΛBelongingModule ¶
func (*Afts_NextHop) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Afts_NextHop.
func (*Afts_NextHop) ΛEnumTypeMap ¶
func (t *Afts_NextHop) Λ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 (*Afts_NextHop) ΛListKeyMap ¶
func (t *Afts_NextHop) ΛListKeyMap() (map[string]interface{}, error)
ΛListKeyMap returns the keys of the Afts_NextHop struct, which is a YANG list entry.
func (*Afts_NextHop) ΛValidate ¶
func (t *Afts_NextHop) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Afts_NextHopGroup ¶
type Afts_NextHopGroup struct { BackupNextHopGroup *uint64 `path:"state/backup-next-hop-group" module:"gribi-aft/gribi-aft"` Color *uint64 `path:"state/color" module:"gribi-aft/gribi-aft"` Id *uint64 `path:"state/id|id" module:"gribi-aft/gribi-aft|gribi-aft"` NextHop map[uint64]*Afts_NextHopGroup_NextHop `path:"next-hops/next-hop" module:"gribi-aft/gribi-aft"` }
Afts_NextHopGroup represents the /gribi-aft/afts/next-hop-groups/next-hop-group YANG schema element.
func (*Afts_NextHopGroup) DeleteNextHop ¶
func (t *Afts_NextHopGroup) DeleteNextHop(Index uint64)
DeleteNextHop deletes the value with the specified keys from the receiver Afts_NextHopGroup. If there is no such element, the function is a no-op.
func (*Afts_NextHopGroup) GetBackupNextHopGroup ¶
func (t *Afts_NextHopGroup) GetBackupNextHopGroup() uint64
GetBackupNextHopGroup retrieves the value of the leaf BackupNextHopGroup from the Afts_NextHopGroup 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 BackupNextHopGroup is set, it can safely use t.GetBackupNextHopGroup() 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.BackupNextHopGroup == nil' before retrieving the leaf's value.
func (*Afts_NextHopGroup) GetColor ¶
func (t *Afts_NextHopGroup) GetColor() uint64
GetColor retrieves the value of the leaf Color from the Afts_NextHopGroup 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 Color is set, it can safely use t.GetColor() 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.Color == nil' before retrieving the leaf's value.
func (*Afts_NextHopGroup) GetId ¶
func (t *Afts_NextHopGroup) GetId() uint64
GetId retrieves the value of the leaf Id from the Afts_NextHopGroup 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 Id is set, it can safely use t.GetId() 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.Id == nil' before retrieving the leaf's value.
func (*Afts_NextHopGroup) GetNextHop ¶
func (t *Afts_NextHopGroup) GetNextHop(Index uint64) *Afts_NextHopGroup_NextHop
GetNextHop retrieves the value with the specified key from the NextHop map field of Afts_NextHopGroup. 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 (*Afts_NextHopGroup) GetOrCreateNextHop ¶
func (t *Afts_NextHopGroup) GetOrCreateNextHop(Index uint64) *Afts_NextHopGroup_NextHop
GetOrCreateNextHop retrieves the value with the specified keys from the receiver Afts_NextHopGroup. If the entry does not exist, then it is created. It returns the existing or new list member.
func (*Afts_NextHopGroup) IsYANGGoStruct ¶
func (*Afts_NextHopGroup) IsYANGGoStruct()
IsYANGGoStruct ensures that Afts_NextHopGroup implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Afts_NextHopGroup) NewNextHop ¶
func (t *Afts_NextHopGroup) NewNextHop(Index uint64) (*Afts_NextHopGroup_NextHop, error)
NewNextHop creates a new entry in the NextHop list of the Afts_NextHopGroup struct. The keys of the list are populated from the input arguments.
func (*Afts_NextHopGroup) Validate ¶
func (t *Afts_NextHopGroup) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Afts_NextHopGroup) ΛBelongingModule ¶
func (*Afts_NextHopGroup) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Afts_NextHopGroup.
func (*Afts_NextHopGroup) ΛEnumTypeMap ¶
func (t *Afts_NextHopGroup) Λ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 (*Afts_NextHopGroup) ΛListKeyMap ¶
func (t *Afts_NextHopGroup) ΛListKeyMap() (map[string]interface{}, error)
ΛListKeyMap returns the keys of the Afts_NextHopGroup struct, which is a YANG list entry.
func (*Afts_NextHopGroup) ΛValidate ¶
func (t *Afts_NextHopGroup) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Afts_NextHopGroup_NextHop ¶
type Afts_NextHopGroup_NextHop struct { Index *uint64 `path:"state/index|index" module:"gribi-aft/gribi-aft|gribi-aft"` Weight *uint64 `path:"state/weight" module:"gribi-aft/gribi-aft"` }
Afts_NextHopGroup_NextHop represents the /gribi-aft/afts/next-hop-groups/next-hop-group/next-hops/next-hop YANG schema element.
func (*Afts_NextHopGroup_NextHop) GetIndex ¶
func (t *Afts_NextHopGroup_NextHop) GetIndex() uint64
GetIndex retrieves the value of the leaf Index from the Afts_NextHopGroup_NextHop 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 Index is set, it can safely use t.GetIndex() 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.Index == nil' before retrieving the leaf's value.
func (*Afts_NextHopGroup_NextHop) GetWeight ¶
func (t *Afts_NextHopGroup_NextHop) GetWeight() uint64
GetWeight retrieves the value of the leaf Weight from the Afts_NextHopGroup_NextHop 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 Weight is set, it can safely use t.GetWeight() 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.Weight == nil' before retrieving the leaf's value.
func (*Afts_NextHopGroup_NextHop) IsYANGGoStruct ¶
func (*Afts_NextHopGroup_NextHop) IsYANGGoStruct()
IsYANGGoStruct ensures that Afts_NextHopGroup_NextHop implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Afts_NextHopGroup_NextHop) Validate ¶
func (t *Afts_NextHopGroup_NextHop) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Afts_NextHopGroup_NextHop) ΛBelongingModule ¶
func (*Afts_NextHopGroup_NextHop) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Afts_NextHopGroup_NextHop.
func (*Afts_NextHopGroup_NextHop) ΛEnumTypeMap ¶
func (t *Afts_NextHopGroup_NextHop) Λ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 (*Afts_NextHopGroup_NextHop) ΛListKeyMap ¶
func (t *Afts_NextHopGroup_NextHop) ΛListKeyMap() (map[string]interface{}, error)
ΛListKeyMap returns the keys of the Afts_NextHopGroup_NextHop struct, which is a YANG list entry.
func (*Afts_NextHopGroup_NextHop) ΛValidate ¶
func (t *Afts_NextHopGroup_NextHop) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Afts_NextHop_InterfaceRef ¶
type Afts_NextHop_InterfaceRef struct { Interface *string `path:"state/interface" module:"gribi-aft/gribi-aft"` Subinterface *uint32 `path:"state/subinterface" module:"gribi-aft/gribi-aft"` }
Afts_NextHop_InterfaceRef represents the /gribi-aft/afts/next-hops/next-hop/interface-ref YANG schema element.
func (*Afts_NextHop_InterfaceRef) GetInterface ¶
func (t *Afts_NextHop_InterfaceRef) GetInterface() string
GetInterface retrieves the value of the leaf Interface from the Afts_NextHop_InterfaceRef 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 Interface is set, it can safely use t.GetInterface() 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.Interface == nil' before retrieving the leaf's value.
func (*Afts_NextHop_InterfaceRef) GetSubinterface ¶
func (t *Afts_NextHop_InterfaceRef) GetSubinterface() uint32
GetSubinterface retrieves the value of the leaf Subinterface from the Afts_NextHop_InterfaceRef 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 Subinterface is set, it can safely use t.GetSubinterface() 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.Subinterface == nil' before retrieving the leaf's value.
func (*Afts_NextHop_InterfaceRef) IsYANGGoStruct ¶
func (*Afts_NextHop_InterfaceRef) IsYANGGoStruct()
IsYANGGoStruct ensures that Afts_NextHop_InterfaceRef implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Afts_NextHop_InterfaceRef) Validate ¶
func (t *Afts_NextHop_InterfaceRef) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Afts_NextHop_InterfaceRef) ΛBelongingModule ¶
func (*Afts_NextHop_InterfaceRef) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Afts_NextHop_InterfaceRef.
func (*Afts_NextHop_InterfaceRef) ΛEnumTypeMap ¶
func (t *Afts_NextHop_InterfaceRef) Λ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 (*Afts_NextHop_InterfaceRef) ΛValidate ¶
func (t *Afts_NextHop_InterfaceRef) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Afts_NextHop_IpInIp ¶
type Afts_NextHop_IpInIp struct { DstIp *string `path:"state/dst-ip" module:"gribi-aft/gribi-aft"` SrcIp *string `path:"state/src-ip" module:"gribi-aft/gribi-aft"` }
Afts_NextHop_IpInIp represents the /gribi-aft/afts/next-hops/next-hop/ip-in-ip YANG schema element.
func (*Afts_NextHop_IpInIp) GetDstIp ¶
func (t *Afts_NextHop_IpInIp) GetDstIp() string
GetDstIp retrieves the value of the leaf DstIp from the Afts_NextHop_IpInIp 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 DstIp is set, it can safely use t.GetDstIp() 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.DstIp == nil' before retrieving the leaf's value.
func (*Afts_NextHop_IpInIp) GetSrcIp ¶
func (t *Afts_NextHop_IpInIp) GetSrcIp() string
GetSrcIp retrieves the value of the leaf SrcIp from the Afts_NextHop_IpInIp 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 SrcIp is set, it can safely use t.GetSrcIp() 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.SrcIp == nil' before retrieving the leaf's value.
func (*Afts_NextHop_IpInIp) IsYANGGoStruct ¶
func (*Afts_NextHop_IpInIp) IsYANGGoStruct()
IsYANGGoStruct ensures that Afts_NextHop_IpInIp implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Afts_NextHop_IpInIp) Validate ¶
func (t *Afts_NextHop_IpInIp) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Afts_NextHop_IpInIp) ΛBelongingModule ¶
func (*Afts_NextHop_IpInIp) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Afts_NextHop_IpInIp.
func (*Afts_NextHop_IpInIp) ΛEnumTypeMap ¶
func (t *Afts_NextHop_IpInIp) Λ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 (*Afts_NextHop_IpInIp) ΛValidate ¶
func (t *Afts_NextHop_IpInIp) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Afts_NextHop_PushedMplsLabelStack_Union ¶
type Afts_NextHop_PushedMplsLabelStack_Union interface {
// Union type can be one of [E_MplsTypes_MplsLabel_Enum, UnionUint32]
Documentation_for_Afts_NextHop_PushedMplsLabelStack_Union()
}
Afts_NextHop_PushedMplsLabelStack_Union is an interface that is implemented by valid types for the union for the leaf /gribi-aft/afts/next-hops/next-hop/state/pushed-mpls-label-stack within the YANG schema. Union type can be one of [E_MplsTypes_MplsLabel_Enum, UnionUint32].
type Afts_PolicyForwardingEntry ¶
type Afts_PolicyForwardingEntry struct { EntryMetadata Binary `path:"state/entry-metadata" module:"gribi-aft/gribi-aft"` Index *uint64 `path:"state/index|index" module:"gribi-aft/gribi-aft|gribi-aft"` IpDscp *uint8 `path:"state/ip-dscp" module:"gribi-aft/gribi-aft"` IpPrefix *string `path:"state/ip-prefix" module:"gribi-aft/gribi-aft"` IpProtocol Afts_PolicyForwardingEntry_IpProtocol_Union `path:"state/ip-protocol" module:"gribi-aft/gribi-aft"` L4DstPort *uint16 `path:"state/l4-dst-port" module:"gribi-aft/gribi-aft"` L4SrcPort *uint16 `path:"state/l4-src-port" module:"gribi-aft/gribi-aft"` MacAddress *string `path:"state/mac-address" module:"gribi-aft/gribi-aft"` MplsLabel Afts_PolicyForwardingEntry_MplsLabel_Union `path:"state/mpls-label" module:"gribi-aft/gribi-aft"` MplsTc *uint8 `path:"state/mpls-tc" module:"gribi-aft/gribi-aft"` NextHopGroup *uint64 `path:"state/next-hop-group" module:"gribi-aft/gribi-aft"` NextHopGroupNetworkInstance *string `path:"state/next-hop-group-network-instance" module:"gribi-aft/gribi-aft"` }
Afts_PolicyForwardingEntry represents the /gribi-aft/afts/policy-forwarding/policy-forwarding-entry YANG schema element.
func (*Afts_PolicyForwardingEntry) GetEntryMetadata ¶
func (t *Afts_PolicyForwardingEntry) GetEntryMetadata() Binary
GetEntryMetadata retrieves the value of the leaf EntryMetadata from the Afts_PolicyForwardingEntry 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 EntryMetadata is set, it can safely use t.GetEntryMetadata() 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.EntryMetadata == nil' before retrieving the leaf's value.
func (*Afts_PolicyForwardingEntry) GetIndex ¶
func (t *Afts_PolicyForwardingEntry) GetIndex() uint64
GetIndex retrieves the value of the leaf Index from the Afts_PolicyForwardingEntry 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 Index is set, it can safely use t.GetIndex() 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.Index == nil' before retrieving the leaf's value.
func (*Afts_PolicyForwardingEntry) GetIpDscp ¶
func (t *Afts_PolicyForwardingEntry) GetIpDscp() uint8
GetIpDscp retrieves the value of the leaf IpDscp from the Afts_PolicyForwardingEntry 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 IpDscp is set, it can safely use t.GetIpDscp() 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.IpDscp == nil' before retrieving the leaf's value.
func (*Afts_PolicyForwardingEntry) GetIpPrefix ¶
func (t *Afts_PolicyForwardingEntry) GetIpPrefix() string
GetIpPrefix retrieves the value of the leaf IpPrefix from the Afts_PolicyForwardingEntry 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 IpPrefix is set, it can safely use t.GetIpPrefix() 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.IpPrefix == nil' before retrieving the leaf's value.
func (*Afts_PolicyForwardingEntry) GetIpProtocol ¶
func (t *Afts_PolicyForwardingEntry) GetIpProtocol() Afts_PolicyForwardingEntry_IpProtocol_Union
GetIpProtocol retrieves the value of the leaf IpProtocol from the Afts_PolicyForwardingEntry 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 IpProtocol is set, it can safely use t.GetIpProtocol() 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.IpProtocol == nil' before retrieving the leaf's value.
func (*Afts_PolicyForwardingEntry) GetL4DstPort ¶
func (t *Afts_PolicyForwardingEntry) GetL4DstPort() uint16
GetL4DstPort retrieves the value of the leaf L4DstPort from the Afts_PolicyForwardingEntry 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 L4DstPort is set, it can safely use t.GetL4DstPort() 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.L4DstPort == nil' before retrieving the leaf's value.
func (*Afts_PolicyForwardingEntry) GetL4SrcPort ¶
func (t *Afts_PolicyForwardingEntry) GetL4SrcPort() uint16
GetL4SrcPort retrieves the value of the leaf L4SrcPort from the Afts_PolicyForwardingEntry 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 L4SrcPort is set, it can safely use t.GetL4SrcPort() 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.L4SrcPort == nil' before retrieving the leaf's value.
func (*Afts_PolicyForwardingEntry) GetMacAddress ¶
func (t *Afts_PolicyForwardingEntry) GetMacAddress() string
GetMacAddress retrieves the value of the leaf MacAddress from the Afts_PolicyForwardingEntry 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 MacAddress is set, it can safely use t.GetMacAddress() 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.MacAddress == nil' before retrieving the leaf's value.
func (*Afts_PolicyForwardingEntry) GetMplsLabel ¶
func (t *Afts_PolicyForwardingEntry) GetMplsLabel() Afts_PolicyForwardingEntry_MplsLabel_Union
GetMplsLabel retrieves the value of the leaf MplsLabel from the Afts_PolicyForwardingEntry 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 MplsLabel is set, it can safely use t.GetMplsLabel() 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.MplsLabel == nil' before retrieving the leaf's value.
func (*Afts_PolicyForwardingEntry) GetMplsTc ¶
func (t *Afts_PolicyForwardingEntry) GetMplsTc() uint8
GetMplsTc retrieves the value of the leaf MplsTc from the Afts_PolicyForwardingEntry 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 MplsTc is set, it can safely use t.GetMplsTc() 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.MplsTc == nil' before retrieving the leaf's value.
func (*Afts_PolicyForwardingEntry) GetNextHopGroup ¶
func (t *Afts_PolicyForwardingEntry) GetNextHopGroup() uint64
GetNextHopGroup retrieves the value of the leaf NextHopGroup from the Afts_PolicyForwardingEntry 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 NextHopGroup is set, it can safely use t.GetNextHopGroup() 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.NextHopGroup == nil' before retrieving the leaf's value.
func (*Afts_PolicyForwardingEntry) GetNextHopGroupNetworkInstance ¶
func (t *Afts_PolicyForwardingEntry) GetNextHopGroupNetworkInstance() string
GetNextHopGroupNetworkInstance retrieves the value of the leaf NextHopGroupNetworkInstance from the Afts_PolicyForwardingEntry 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 NextHopGroupNetworkInstance is set, it can safely use t.GetNextHopGroupNetworkInstance() 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.NextHopGroupNetworkInstance == nil' before retrieving the leaf's value.
func (*Afts_PolicyForwardingEntry) IsYANGGoStruct ¶
func (*Afts_PolicyForwardingEntry) IsYANGGoStruct()
IsYANGGoStruct ensures that Afts_PolicyForwardingEntry implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Afts_PolicyForwardingEntry) To_Afts_PolicyForwardingEntry_IpProtocol_Union ¶
func (t *Afts_PolicyForwardingEntry) To_Afts_PolicyForwardingEntry_IpProtocol_Union(i interface{}) (Afts_PolicyForwardingEntry_IpProtocol_Union, error)
To_Afts_PolicyForwardingEntry_IpProtocol_Union takes an input interface{} and attempts to convert it to a struct which implements the Afts_PolicyForwardingEntry_IpProtocol_Union union. It returns an error if the interface{} supplied cannot be converted to a type within the union.
func (*Afts_PolicyForwardingEntry) To_Afts_PolicyForwardingEntry_MplsLabel_Union ¶
func (t *Afts_PolicyForwardingEntry) To_Afts_PolicyForwardingEntry_MplsLabel_Union(i interface{}) (Afts_PolicyForwardingEntry_MplsLabel_Union, error)
To_Afts_PolicyForwardingEntry_MplsLabel_Union takes an input interface{} and attempts to convert it to a struct which implements the Afts_PolicyForwardingEntry_MplsLabel_Union union. It returns an error if the interface{} supplied cannot be converted to a type within the union.
func (*Afts_PolicyForwardingEntry) Validate ¶
func (t *Afts_PolicyForwardingEntry) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Afts_PolicyForwardingEntry) ΛBelongingModule ¶
func (*Afts_PolicyForwardingEntry) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Afts_PolicyForwardingEntry.
func (*Afts_PolicyForwardingEntry) ΛEnumTypeMap ¶
func (t *Afts_PolicyForwardingEntry) Λ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 (*Afts_PolicyForwardingEntry) ΛListKeyMap ¶
func (t *Afts_PolicyForwardingEntry) ΛListKeyMap() (map[string]interface{}, error)
ΛListKeyMap returns the keys of the Afts_PolicyForwardingEntry struct, which is a YANG list entry.
func (*Afts_PolicyForwardingEntry) ΛValidate ¶
func (t *Afts_PolicyForwardingEntry) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Afts_PolicyForwardingEntry_IpProtocol_Union ¶
type Afts_PolicyForwardingEntry_IpProtocol_Union interface {
// Union type can be one of [E_PacketMatchTypes_IP_PROTOCOL, UnionUint8]
Documentation_for_Afts_PolicyForwardingEntry_IpProtocol_Union()
}
Afts_PolicyForwardingEntry_IpProtocol_Union is an interface that is implemented by valid types for the union for the leaf /gribi-aft/afts/policy-forwarding/policy-forwarding-entry/state/ip-protocol within the YANG schema. Union type can be one of [E_PacketMatchTypes_IP_PROTOCOL, UnionUint8].
type Afts_PolicyForwardingEntry_MplsLabel_Union ¶
type Afts_PolicyForwardingEntry_MplsLabel_Union interface {
// Union type can be one of [E_MplsTypes_MplsLabel_Enum, UnionUint32]
Documentation_for_Afts_PolicyForwardingEntry_MplsLabel_Union()
}
Afts_PolicyForwardingEntry_MplsLabel_Union is an interface that is implemented by valid types for the union for the leaf /gribi-aft/afts/policy-forwarding/policy-forwarding-entry/state/mpls-label within the YANG schema. Union type can be one of [E_MplsTypes_MplsLabel_Enum, UnionUint32].
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 E_AftTypes_EncapsulationHeaderType ¶
type E_AftTypes_EncapsulationHeaderType int64
E_AftTypes_EncapsulationHeaderType is a derived int64 type which is used to represent the enumerated node AftTypes_EncapsulationHeaderType. An additional value named AftTypes_EncapsulationHeaderType_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 ( // AftTypes_EncapsulationHeaderType_UNSET corresponds to the value UNSET of AftTypes_EncapsulationHeaderType AftTypes_EncapsulationHeaderType_UNSET E_AftTypes_EncapsulationHeaderType = 0 // AftTypes_EncapsulationHeaderType_GRE corresponds to the value GRE of AftTypes_EncapsulationHeaderType AftTypes_EncapsulationHeaderType_GRE E_AftTypes_EncapsulationHeaderType = 1 // AftTypes_EncapsulationHeaderType_IPV4 corresponds to the value IPV4 of AftTypes_EncapsulationHeaderType AftTypes_EncapsulationHeaderType_IPV4 E_AftTypes_EncapsulationHeaderType = 2 // AftTypes_EncapsulationHeaderType_IPV6 corresponds to the value IPV6 of AftTypes_EncapsulationHeaderType AftTypes_EncapsulationHeaderType_IPV6 E_AftTypes_EncapsulationHeaderType = 3 // AftTypes_EncapsulationHeaderType_MPLS corresponds to the value MPLS of AftTypes_EncapsulationHeaderType AftTypes_EncapsulationHeaderType_MPLS E_AftTypes_EncapsulationHeaderType = 4 // AftTypes_EncapsulationHeaderType_VXLAN corresponds to the value VXLAN of AftTypes_EncapsulationHeaderType AftTypes_EncapsulationHeaderType_VXLAN E_AftTypes_EncapsulationHeaderType = 5 )
func (E_AftTypes_EncapsulationHeaderType) IsYANGGoEnum ¶
func (E_AftTypes_EncapsulationHeaderType) IsYANGGoEnum()
IsYANGGoEnum ensures that AftTypes_EncapsulationHeaderType implements the yang.GoEnum interface. This ensures that AftTypes_EncapsulationHeaderType can be identified as a mapped type for a YANG enumeration.
func (E_AftTypes_EncapsulationHeaderType) String ¶
func (e E_AftTypes_EncapsulationHeaderType) String() string
String returns a logging-friendly string for E_AftTypes_EncapsulationHeaderType.
func (E_AftTypes_EncapsulationHeaderType) ΛMap ¶
func (E_AftTypes_EncapsulationHeaderType) ΛMap() map[string]map[int64]ygot.EnumDefinition
ΛMap returns the value lookup map associated with AftTypes_EncapsulationHeaderType.
type E_IETFInterfaces_InterfaceType ¶
type E_IETFInterfaces_InterfaceType int64
E_IETFInterfaces_InterfaceType is a derived int64 type which is used to represent the enumerated node IETFInterfaces_InterfaceType. An additional value named IETFInterfaces_InterfaceType_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 ( // IETFInterfaces_InterfaceType_UNSET corresponds to the value UNSET of IETFInterfaces_InterfaceType IETFInterfaces_InterfaceType_UNSET E_IETFInterfaces_InterfaceType = 0 )
func (E_IETFInterfaces_InterfaceType) IsYANGGoEnum ¶
func (E_IETFInterfaces_InterfaceType) IsYANGGoEnum()
IsYANGGoEnum ensures that IETFInterfaces_InterfaceType implements the yang.GoEnum interface. This ensures that IETFInterfaces_InterfaceType can be identified as a mapped type for a YANG enumeration.
func (E_IETFInterfaces_InterfaceType) String ¶
func (e E_IETFInterfaces_InterfaceType) String() string
String returns a logging-friendly string for E_IETFInterfaces_InterfaceType.
func (E_IETFInterfaces_InterfaceType) ΛMap ¶
func (E_IETFInterfaces_InterfaceType) ΛMap() map[string]map[int64]ygot.EnumDefinition
ΛMap returns the value lookup map associated with IETFInterfaces_InterfaceType.
type E_Interface_AdminStatus ¶
type E_Interface_AdminStatus int64
E_Interface_AdminStatus is a derived int64 type which is used to represent the enumerated node Interface_AdminStatus. An additional value named Interface_AdminStatus_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 ( // Interface_AdminStatus_UNSET corresponds to the value UNSET of Interface_AdminStatus Interface_AdminStatus_UNSET E_Interface_AdminStatus = 0 // Interface_AdminStatus_UP corresponds to the value UP of Interface_AdminStatus Interface_AdminStatus_UP E_Interface_AdminStatus = 1 // Interface_AdminStatus_DOWN corresponds to the value DOWN of Interface_AdminStatus Interface_AdminStatus_DOWN E_Interface_AdminStatus = 2 // Interface_AdminStatus_TESTING corresponds to the value TESTING of Interface_AdminStatus Interface_AdminStatus_TESTING E_Interface_AdminStatus = 3 )
func (E_Interface_AdminStatus) IsYANGGoEnum ¶
func (E_Interface_AdminStatus) IsYANGGoEnum()
IsYANGGoEnum ensures that Interface_AdminStatus implements the yang.GoEnum interface. This ensures that Interface_AdminStatus can be identified as a mapped type for a YANG enumeration.
func (E_Interface_AdminStatus) String ¶
func (e E_Interface_AdminStatus) String() string
String returns a logging-friendly string for E_Interface_AdminStatus.
func (E_Interface_AdminStatus) ΛMap ¶
func (E_Interface_AdminStatus) ΛMap() map[string]map[int64]ygot.EnumDefinition
ΛMap returns the value lookup map associated with Interface_AdminStatus.
type E_Interface_OperStatus ¶
type E_Interface_OperStatus int64
E_Interface_OperStatus is a derived int64 type which is used to represent the enumerated node Interface_OperStatus. An additional value named Interface_OperStatus_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 ( // Interface_OperStatus_UNSET corresponds to the value UNSET of Interface_OperStatus Interface_OperStatus_UNSET E_Interface_OperStatus = 0 // Interface_OperStatus_UP corresponds to the value UP of Interface_OperStatus Interface_OperStatus_UP E_Interface_OperStatus = 1 // Interface_OperStatus_DOWN corresponds to the value DOWN of Interface_OperStatus Interface_OperStatus_DOWN E_Interface_OperStatus = 2 // Interface_OperStatus_TESTING corresponds to the value TESTING of Interface_OperStatus Interface_OperStatus_TESTING E_Interface_OperStatus = 3 // Interface_OperStatus_UNKNOWN corresponds to the value UNKNOWN of Interface_OperStatus Interface_OperStatus_UNKNOWN E_Interface_OperStatus = 4 // Interface_OperStatus_DORMANT corresponds to the value DORMANT of Interface_OperStatus Interface_OperStatus_DORMANT E_Interface_OperStatus = 5 // Interface_OperStatus_NOT_PRESENT corresponds to the value NOT_PRESENT of Interface_OperStatus Interface_OperStatus_NOT_PRESENT E_Interface_OperStatus = 6 // Interface_OperStatus_LOWER_LAYER_DOWN corresponds to the value LOWER_LAYER_DOWN of Interface_OperStatus Interface_OperStatus_LOWER_LAYER_DOWN E_Interface_OperStatus = 7 )
func (E_Interface_OperStatus) IsYANGGoEnum ¶
func (E_Interface_OperStatus) IsYANGGoEnum()
IsYANGGoEnum ensures that Interface_OperStatus implements the yang.GoEnum interface. This ensures that Interface_OperStatus can be identified as a mapped type for a YANG enumeration.
func (E_Interface_OperStatus) String ¶
func (e E_Interface_OperStatus) String() string
String returns a logging-friendly string for E_Interface_OperStatus.
func (E_Interface_OperStatus) ΛMap ¶
func (E_Interface_OperStatus) ΛMap() map[string]map[int64]ygot.EnumDefinition
ΛMap returns the value lookup map associated with Interface_OperStatus.
type E_MplsTypes_MplsLabel_Enum ¶
type E_MplsTypes_MplsLabel_Enum int64
E_MplsTypes_MplsLabel_Enum is a derived int64 type which is used to represent the enumerated node MplsTypes_MplsLabel_Enum. An additional value named MplsTypes_MplsLabel_Enum_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 ( // MplsTypes_MplsLabel_Enum_UNSET corresponds to the value UNSET of MplsTypes_MplsLabel_Enum MplsTypes_MplsLabel_Enum_UNSET E_MplsTypes_MplsLabel_Enum = 0 // MplsTypes_MplsLabel_Enum_IPV4_EXPLICIT_NULL corresponds to the value IPV4_EXPLICIT_NULL of MplsTypes_MplsLabel_Enum MplsTypes_MplsLabel_Enum_IPV4_EXPLICIT_NULL E_MplsTypes_MplsLabel_Enum = 1 // MplsTypes_MplsLabel_Enum_ROUTER_ALERT corresponds to the value ROUTER_ALERT of MplsTypes_MplsLabel_Enum MplsTypes_MplsLabel_Enum_ROUTER_ALERT E_MplsTypes_MplsLabel_Enum = 2 // MplsTypes_MplsLabel_Enum_IPV6_EXPLICIT_NULL corresponds to the value IPV6_EXPLICIT_NULL of MplsTypes_MplsLabel_Enum MplsTypes_MplsLabel_Enum_IPV6_EXPLICIT_NULL E_MplsTypes_MplsLabel_Enum = 3 // MplsTypes_MplsLabel_Enum_IMPLICIT_NULL corresponds to the value IMPLICIT_NULL of MplsTypes_MplsLabel_Enum MplsTypes_MplsLabel_Enum_IMPLICIT_NULL E_MplsTypes_MplsLabel_Enum = 4 // MplsTypes_MplsLabel_Enum_ENTROPY_LABEL_INDICATOR corresponds to the value ENTROPY_LABEL_INDICATOR of MplsTypes_MplsLabel_Enum MplsTypes_MplsLabel_Enum_ENTROPY_LABEL_INDICATOR E_MplsTypes_MplsLabel_Enum = 5 // MplsTypes_MplsLabel_Enum_NO_LABEL corresponds to the value NO_LABEL of MplsTypes_MplsLabel_Enum MplsTypes_MplsLabel_Enum_NO_LABEL E_MplsTypes_MplsLabel_Enum = 6 )
func (E_MplsTypes_MplsLabel_Enum) Documentation_for_Afts_LabelEntry_Label_Union ¶
func (E_MplsTypes_MplsLabel_Enum) Documentation_for_Afts_LabelEntry_Label_Union()
Documentation_for_Afts_LabelEntry_Label_Union ensures that E_MplsTypes_MplsLabel_Enum implements the Afts_LabelEntry_Label_Union interface.
func (E_MplsTypes_MplsLabel_Enum) Documentation_for_Afts_LabelEntry_PoppedMplsLabelStack_Union ¶
func (E_MplsTypes_MplsLabel_Enum) Documentation_for_Afts_LabelEntry_PoppedMplsLabelStack_Union()
Documentation_for_Afts_LabelEntry_PoppedMplsLabelStack_Union ensures that E_MplsTypes_MplsLabel_Enum implements the Afts_LabelEntry_PoppedMplsLabelStack_Union interface.
func (E_MplsTypes_MplsLabel_Enum) Documentation_for_Afts_NextHop_PushedMplsLabelStack_Union ¶
func (E_MplsTypes_MplsLabel_Enum) Documentation_for_Afts_NextHop_PushedMplsLabelStack_Union()
Documentation_for_Afts_NextHop_PushedMplsLabelStack_Union ensures that E_MplsTypes_MplsLabel_Enum implements the Afts_NextHop_PushedMplsLabelStack_Union interface.
func (E_MplsTypes_MplsLabel_Enum) Documentation_for_Afts_PolicyForwardingEntry_MplsLabel_Union ¶
func (E_MplsTypes_MplsLabel_Enum) Documentation_for_Afts_PolicyForwardingEntry_MplsLabel_Union()
Documentation_for_Afts_PolicyForwardingEntry_MplsLabel_Union ensures that E_MplsTypes_MplsLabel_Enum implements the Afts_PolicyForwardingEntry_MplsLabel_Union interface.
func (E_MplsTypes_MplsLabel_Enum) IsYANGGoEnum ¶
func (E_MplsTypes_MplsLabel_Enum) IsYANGGoEnum()
IsYANGGoEnum ensures that MplsTypes_MplsLabel_Enum implements the yang.GoEnum interface. This ensures that MplsTypes_MplsLabel_Enum can be identified as a mapped type for a YANG enumeration.
func (E_MplsTypes_MplsLabel_Enum) String ¶
func (e E_MplsTypes_MplsLabel_Enum) String() string
String returns a logging-friendly string for E_MplsTypes_MplsLabel_Enum.
func (E_MplsTypes_MplsLabel_Enum) ΛMap ¶
func (E_MplsTypes_MplsLabel_Enum) ΛMap() map[string]map[int64]ygot.EnumDefinition
ΛMap returns the value lookup map associated with MplsTypes_MplsLabel_Enum.
type E_PacketMatchTypes_IP_PROTOCOL ¶
type E_PacketMatchTypes_IP_PROTOCOL int64
E_PacketMatchTypes_IP_PROTOCOL is a derived int64 type which is used to represent the enumerated node PacketMatchTypes_IP_PROTOCOL. An additional value named PacketMatchTypes_IP_PROTOCOL_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 ( // PacketMatchTypes_IP_PROTOCOL_UNSET corresponds to the value UNSET of PacketMatchTypes_IP_PROTOCOL PacketMatchTypes_IP_PROTOCOL_UNSET E_PacketMatchTypes_IP_PROTOCOL = 0 // PacketMatchTypes_IP_PROTOCOL_IP_AUTH corresponds to the value IP_AUTH of PacketMatchTypes_IP_PROTOCOL PacketMatchTypes_IP_PROTOCOL_IP_AUTH E_PacketMatchTypes_IP_PROTOCOL = 1 // PacketMatchTypes_IP_PROTOCOL_IP_GRE corresponds to the value IP_GRE of PacketMatchTypes_IP_PROTOCOL PacketMatchTypes_IP_PROTOCOL_IP_GRE E_PacketMatchTypes_IP_PROTOCOL = 2 // PacketMatchTypes_IP_PROTOCOL_IP_ICMP corresponds to the value IP_ICMP of PacketMatchTypes_IP_PROTOCOL PacketMatchTypes_IP_PROTOCOL_IP_ICMP E_PacketMatchTypes_IP_PROTOCOL = 3 // PacketMatchTypes_IP_PROTOCOL_IP_IGMP corresponds to the value IP_IGMP of PacketMatchTypes_IP_PROTOCOL PacketMatchTypes_IP_PROTOCOL_IP_IGMP E_PacketMatchTypes_IP_PROTOCOL = 4 // PacketMatchTypes_IP_PROTOCOL_IP_IN_IP corresponds to the value IP_IN_IP of PacketMatchTypes_IP_PROTOCOL PacketMatchTypes_IP_PROTOCOL_IP_IN_IP E_PacketMatchTypes_IP_PROTOCOL = 5 // PacketMatchTypes_IP_PROTOCOL_IP_L2TP corresponds to the value IP_L2TP of PacketMatchTypes_IP_PROTOCOL PacketMatchTypes_IP_PROTOCOL_IP_L2TP E_PacketMatchTypes_IP_PROTOCOL = 6 // PacketMatchTypes_IP_PROTOCOL_IP_PIM corresponds to the value IP_PIM of PacketMatchTypes_IP_PROTOCOL PacketMatchTypes_IP_PROTOCOL_IP_PIM E_PacketMatchTypes_IP_PROTOCOL = 7 // PacketMatchTypes_IP_PROTOCOL_IP_RSVP corresponds to the value IP_RSVP of PacketMatchTypes_IP_PROTOCOL PacketMatchTypes_IP_PROTOCOL_IP_RSVP E_PacketMatchTypes_IP_PROTOCOL = 8 // PacketMatchTypes_IP_PROTOCOL_IP_TCP corresponds to the value IP_TCP of PacketMatchTypes_IP_PROTOCOL PacketMatchTypes_IP_PROTOCOL_IP_TCP E_PacketMatchTypes_IP_PROTOCOL = 9 // PacketMatchTypes_IP_PROTOCOL_IP_UDP corresponds to the value IP_UDP of PacketMatchTypes_IP_PROTOCOL PacketMatchTypes_IP_PROTOCOL_IP_UDP E_PacketMatchTypes_IP_PROTOCOL = 10 )
func (E_PacketMatchTypes_IP_PROTOCOL) Documentation_for_Afts_PolicyForwardingEntry_IpProtocol_Union ¶
func (E_PacketMatchTypes_IP_PROTOCOL) Documentation_for_Afts_PolicyForwardingEntry_IpProtocol_Union()
Documentation_for_Afts_PolicyForwardingEntry_IpProtocol_Union ensures that E_PacketMatchTypes_IP_PROTOCOL implements the Afts_PolicyForwardingEntry_IpProtocol_Union interface.
func (E_PacketMatchTypes_IP_PROTOCOL) IsYANGGoEnum ¶
func (E_PacketMatchTypes_IP_PROTOCOL) IsYANGGoEnum()
IsYANGGoEnum ensures that PacketMatchTypes_IP_PROTOCOL implements the yang.GoEnum interface. This ensures that PacketMatchTypes_IP_PROTOCOL can be identified as a mapped type for a YANG enumeration.
func (E_PacketMatchTypes_IP_PROTOCOL) String ¶
func (e E_PacketMatchTypes_IP_PROTOCOL) String() string
String returns a logging-friendly string for E_PacketMatchTypes_IP_PROTOCOL.
func (E_PacketMatchTypes_IP_PROTOCOL) ΛMap ¶
func (E_PacketMatchTypes_IP_PROTOCOL) ΛMap() map[string]map[int64]ygot.EnumDefinition
ΛMap returns the value lookup map associated with PacketMatchTypes_IP_PROTOCOL.
type Interface ¶
type Interface struct { AdminStatus E_Interface_AdminStatus `path:"state/admin-status" module:"openconfig-interfaces/openconfig-interfaces"` Counters *Interface_Counters `path:"state/counters" module:"openconfig-interfaces/openconfig-interfaces"` Cpu *bool `path:"state/cpu" module:"openconfig-interfaces/openconfig-interfaces"` Description *string `path:"state/description" module:"openconfig-interfaces/openconfig-interfaces"` Enabled *bool `path:"state/enabled" module:"openconfig-interfaces/openconfig-interfaces"` HoldTime *Interface_HoldTime `path:"hold-time" module:"openconfig-interfaces"` Ifindex *uint32 `path:"state/ifindex" module:"openconfig-interfaces/openconfig-interfaces"` LastChange *uint64 `path:"state/last-change" module:"openconfig-interfaces/openconfig-interfaces"` Logical *bool `path:"state/logical" module:"openconfig-interfaces/openconfig-interfaces"` LoopbackMode *bool `path:"state/loopback-mode" module:"openconfig-interfaces/openconfig-interfaces"` Management *bool `path:"state/management" module:"openconfig-interfaces/openconfig-interfaces"` Mtu *uint16 `path:"state/mtu" module:"openconfig-interfaces/openconfig-interfaces"` Name *string `path:"state/name|name" module:"openconfig-interfaces/openconfig-interfaces|openconfig-interfaces"` OperStatus E_Interface_OperStatus `path:"state/oper-status" module:"openconfig-interfaces/openconfig-interfaces"` Subinterface map[uint32]*Interface_Subinterface `path:"subinterfaces/subinterface" module:"openconfig-interfaces/openconfig-interfaces"` Type E_IETFInterfaces_InterfaceType `path:"state/type" module:"openconfig-interfaces/openconfig-interfaces"` }
Interface represents the /openconfig-interfaces/interfaces/interface YANG schema element.
func (*Interface) DeleteSubinterface ¶
DeleteSubinterface deletes the value with the specified keys from the receiver Interface. If there is no such element, the function is a no-op.
func (*Interface) GetAdminStatus ¶
func (t *Interface) GetAdminStatus() E_Interface_AdminStatus
GetAdminStatus retrieves the value of the leaf AdminStatus 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 AdminStatus is set, it can safely use t.GetAdminStatus() 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.AdminStatus == nil' before retrieving the leaf's value.
func (*Interface) GetCounters ¶
func (t *Interface) GetCounters() *Interface_Counters
GetCounters returns the value of the Counters struct pointer from Interface. If the receiver or the field Counters is nil, nil is returned such that the Get* methods can be safely chained.
func (*Interface) GetCpu ¶
GetCpu retrieves the value of the leaf Cpu 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 Cpu is set, it can safely use t.GetCpu() 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.Cpu == nil' before retrieving the leaf's value.
func (*Interface) GetDescription ¶
GetDescription retrieves the value of the leaf Description 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 Description is set, it can safely use t.GetDescription() 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.Description == nil' before retrieving the leaf's value.
func (*Interface) GetEnabled ¶
GetEnabled retrieves the value of the leaf Enabled 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 Enabled is set, it can safely use t.GetEnabled() 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.Enabled == nil' before retrieving the leaf's value.
func (*Interface) GetHoldTime ¶
func (t *Interface) GetHoldTime() *Interface_HoldTime
GetHoldTime returns the value of the HoldTime struct pointer from Interface. If the receiver or the field HoldTime is nil, nil is returned such that the Get* methods can be safely chained.
func (*Interface) GetIfindex ¶
GetIfindex retrieves the value of the leaf Ifindex 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 Ifindex is set, it can safely use t.GetIfindex() 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.Ifindex == nil' before retrieving the leaf's value.
func (*Interface) GetLastChange ¶
GetLastChange retrieves the value of the leaf LastChange 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 LastChange is set, it can safely use t.GetLastChange() 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.LastChange == nil' before retrieving the leaf's value.
func (*Interface) GetLogical ¶
GetLogical retrieves the value of the leaf Logical 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 Logical is set, it can safely use t.GetLogical() 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.Logical == nil' before retrieving the leaf's value.
func (*Interface) GetLoopbackMode ¶
GetLoopbackMode retrieves the value of the leaf LoopbackMode 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 LoopbackMode is set, it can safely use t.GetLoopbackMode() 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.LoopbackMode == nil' before retrieving the leaf's value.
func (*Interface) GetManagement ¶
GetManagement retrieves the value of the leaf Management 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 Management is set, it can safely use t.GetManagement() 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.Management == nil' before retrieving the leaf's value.
func (*Interface) GetMtu ¶
GetMtu retrieves the value of the leaf Mtu 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 Mtu is set, it can safely use t.GetMtu() 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.Mtu == nil' before retrieving the leaf's value.
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) GetOperStatus ¶
func (t *Interface) GetOperStatus() E_Interface_OperStatus
GetOperStatus retrieves the value of the leaf OperStatus 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 OperStatus is set, it can safely use t.GetOperStatus() 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.OperStatus == nil' before retrieving the leaf's value.
func (*Interface) GetOrCreateCounters ¶
func (t *Interface) GetOrCreateCounters() *Interface_Counters
GetOrCreateCounters retrieves the value of the Counters field or returns the existing field if it already exists.
func (*Interface) GetOrCreateHoldTime ¶
func (t *Interface) GetOrCreateHoldTime() *Interface_HoldTime
GetOrCreateHoldTime retrieves the value of the HoldTime field or returns the existing field if it already exists.
func (*Interface) GetOrCreateSubinterface ¶
func (t *Interface) GetOrCreateSubinterface(Index uint32) *Interface_Subinterface
GetOrCreateSubinterface 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) GetSubinterface ¶
func (t *Interface) GetSubinterface(Index uint32) *Interface_Subinterface
GetSubinterface retrieves the value with the specified key from the Subinterface 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) GetType ¶
func (t *Interface) GetType() E_IETFInterfaces_InterfaceType
GetType retrieves the value of the leaf Type 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 Type is set, it can safely use t.GetType() 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.Type == nil' before retrieving the leaf's value.
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) NewSubinterface ¶
func (t *Interface) NewSubinterface(Index uint32) (*Interface_Subinterface, error)
NewSubinterface creates a new entry in the Subinterface list of the Interface struct. The keys of the list are populated from the input arguments.
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_Counters ¶
type Interface_Counters struct { CarrierTransitions *uint64 `path:"carrier-transitions" module:"openconfig-interfaces"` InBroadcastPkts *uint64 `path:"in-broadcast-pkts" module:"openconfig-interfaces"` InDiscards *uint64 `path:"in-discards" module:"openconfig-interfaces"` InErrors *uint64 `path:"in-errors" module:"openconfig-interfaces"` InFcsErrors *uint64 `path:"in-fcs-errors" module:"openconfig-interfaces"` InMulticastPkts *uint64 `path:"in-multicast-pkts" module:"openconfig-interfaces"` InOctets *uint64 `path:"in-octets" module:"openconfig-interfaces"` InPkts *uint64 `path:"in-pkts" module:"openconfig-interfaces"` InUnicastPkts *uint64 `path:"in-unicast-pkts" module:"openconfig-interfaces"` InUnknownProtos *uint64 `path:"in-unknown-protos" module:"openconfig-interfaces"` LastClear *uint64 `path:"last-clear" module:"openconfig-interfaces"` OutBroadcastPkts *uint64 `path:"out-broadcast-pkts" module:"openconfig-interfaces"` OutDiscards *uint64 `path:"out-discards" module:"openconfig-interfaces"` OutErrors *uint64 `path:"out-errors" module:"openconfig-interfaces"` OutMulticastPkts *uint64 `path:"out-multicast-pkts" module:"openconfig-interfaces"` OutOctets *uint64 `path:"out-octets" module:"openconfig-interfaces"` OutPkts *uint64 `path:"out-pkts" module:"openconfig-interfaces"` OutUnicastPkts *uint64 `path:"out-unicast-pkts" module:"openconfig-interfaces"` }
Interface_Counters represents the /openconfig-interfaces/interfaces/interface/state/counters YANG schema element.
func (*Interface_Counters) GetCarrierTransitions ¶
func (t *Interface_Counters) GetCarrierTransitions() uint64
GetCarrierTransitions retrieves the value of the leaf CarrierTransitions from the Interface_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 CarrierTransitions is set, it can safely use t.GetCarrierTransitions() 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.CarrierTransitions == nil' before retrieving the leaf's value.
func (*Interface_Counters) GetInBroadcastPkts ¶
func (t *Interface_Counters) GetInBroadcastPkts() uint64
GetInBroadcastPkts retrieves the value of the leaf InBroadcastPkts from the Interface_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 InBroadcastPkts is set, it can safely use t.GetInBroadcastPkts() 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.InBroadcastPkts == nil' before retrieving the leaf's value.
func (*Interface_Counters) GetInDiscards ¶
func (t *Interface_Counters) GetInDiscards() uint64
GetInDiscards retrieves the value of the leaf InDiscards from the Interface_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 InDiscards is set, it can safely use t.GetInDiscards() 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.InDiscards == nil' before retrieving the leaf's value.
func (*Interface_Counters) GetInErrors ¶
func (t *Interface_Counters) GetInErrors() uint64
GetInErrors retrieves the value of the leaf InErrors from the Interface_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 InErrors is set, it can safely use t.GetInErrors() 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.InErrors == nil' before retrieving the leaf's value.
func (*Interface_Counters) GetInFcsErrors ¶
func (t *Interface_Counters) GetInFcsErrors() uint64
GetInFcsErrors retrieves the value of the leaf InFcsErrors from the Interface_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 InFcsErrors is set, it can safely use t.GetInFcsErrors() 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.InFcsErrors == nil' before retrieving the leaf's value.
func (*Interface_Counters) GetInMulticastPkts ¶
func (t *Interface_Counters) GetInMulticastPkts() uint64
GetInMulticastPkts retrieves the value of the leaf InMulticastPkts from the Interface_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 InMulticastPkts is set, it can safely use t.GetInMulticastPkts() 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.InMulticastPkts == nil' before retrieving the leaf's value.
func (*Interface_Counters) GetInOctets ¶
func (t *Interface_Counters) GetInOctets() uint64
GetInOctets retrieves the value of the leaf InOctets from the Interface_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 (*Interface_Counters) GetInPkts ¶
func (t *Interface_Counters) GetInPkts() uint64
GetInPkts retrieves the value of the leaf InPkts from the Interface_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 (*Interface_Counters) GetInUnicastPkts ¶
func (t *Interface_Counters) GetInUnicastPkts() uint64
GetInUnicastPkts retrieves the value of the leaf InUnicastPkts from the Interface_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 InUnicastPkts is set, it can safely use t.GetInUnicastPkts() 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.InUnicastPkts == nil' before retrieving the leaf's value.
func (*Interface_Counters) GetInUnknownProtos ¶
func (t *Interface_Counters) GetInUnknownProtos() uint64
GetInUnknownProtos retrieves the value of the leaf InUnknownProtos from the Interface_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 InUnknownProtos is set, it can safely use t.GetInUnknownProtos() 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.InUnknownProtos == nil' before retrieving the leaf's value.
func (*Interface_Counters) GetLastClear ¶
func (t *Interface_Counters) GetLastClear() uint64
GetLastClear retrieves the value of the leaf LastClear from the Interface_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 LastClear is set, it can safely use t.GetLastClear() 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.LastClear == nil' before retrieving the leaf's value.
func (*Interface_Counters) GetOutBroadcastPkts ¶
func (t *Interface_Counters) GetOutBroadcastPkts() uint64
GetOutBroadcastPkts retrieves the value of the leaf OutBroadcastPkts from the Interface_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 OutBroadcastPkts is set, it can safely use t.GetOutBroadcastPkts() 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.OutBroadcastPkts == nil' before retrieving the leaf's value.
func (*Interface_Counters) GetOutDiscards ¶
func (t *Interface_Counters) GetOutDiscards() uint64
GetOutDiscards retrieves the value of the leaf OutDiscards from the Interface_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 OutDiscards is set, it can safely use t.GetOutDiscards() 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.OutDiscards == nil' before retrieving the leaf's value.
func (*Interface_Counters) GetOutErrors ¶
func (t *Interface_Counters) GetOutErrors() uint64
GetOutErrors retrieves the value of the leaf OutErrors from the Interface_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 OutErrors is set, it can safely use t.GetOutErrors() 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.OutErrors == nil' before retrieving the leaf's value.
func (*Interface_Counters) GetOutMulticastPkts ¶
func (t *Interface_Counters) GetOutMulticastPkts() uint64
GetOutMulticastPkts retrieves the value of the leaf OutMulticastPkts from the Interface_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 OutMulticastPkts is set, it can safely use t.GetOutMulticastPkts() 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.OutMulticastPkts == nil' before retrieving the leaf's value.
func (*Interface_Counters) GetOutOctets ¶
func (t *Interface_Counters) GetOutOctets() uint64
GetOutOctets retrieves the value of the leaf OutOctets from the Interface_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 (*Interface_Counters) GetOutPkts ¶
func (t *Interface_Counters) GetOutPkts() uint64
GetOutPkts retrieves the value of the leaf OutPkts from the Interface_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 (*Interface_Counters) GetOutUnicastPkts ¶
func (t *Interface_Counters) GetOutUnicastPkts() uint64
GetOutUnicastPkts retrieves the value of the leaf OutUnicastPkts from the Interface_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 OutUnicastPkts is set, it can safely use t.GetOutUnicastPkts() 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.OutUnicastPkts == nil' before retrieving the leaf's value.
func (*Interface_Counters) IsYANGGoStruct ¶
func (*Interface_Counters) IsYANGGoStruct()
IsYANGGoStruct ensures that Interface_Counters implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Interface_Counters) Validate ¶
func (t *Interface_Counters) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Interface_Counters) ΛBelongingModule ¶
func (*Interface_Counters) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Interface_Counters.
func (*Interface_Counters) ΛEnumTypeMap ¶
func (t *Interface_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 (*Interface_Counters) ΛValidate ¶
func (t *Interface_Counters) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Interface_HoldTime ¶
type Interface_HoldTime struct { Down *uint32 `path:"state/down" module:"openconfig-interfaces/openconfig-interfaces"` Up *uint32 `path:"state/up" module:"openconfig-interfaces/openconfig-interfaces"` }
Interface_HoldTime represents the /openconfig-interfaces/interfaces/interface/hold-time YANG schema element.
func (*Interface_HoldTime) GetDown ¶
func (t *Interface_HoldTime) GetDown() uint32
GetDown retrieves the value of the leaf Down from the Interface_HoldTime 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 Down is set, it can safely use t.GetDown() 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.Down == nil' before retrieving the leaf's value.
func (*Interface_HoldTime) GetUp ¶
func (t *Interface_HoldTime) GetUp() uint32
GetUp retrieves the value of the leaf Up from the Interface_HoldTime 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 Up is set, it can safely use t.GetUp() 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.Up == nil' before retrieving the leaf's value.
func (*Interface_HoldTime) IsYANGGoStruct ¶
func (*Interface_HoldTime) IsYANGGoStruct()
IsYANGGoStruct ensures that Interface_HoldTime implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Interface_HoldTime) Validate ¶
func (t *Interface_HoldTime) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Interface_HoldTime) ΛBelongingModule ¶
func (*Interface_HoldTime) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Interface_HoldTime.
func (*Interface_HoldTime) ΛEnumTypeMap ¶
func (t *Interface_HoldTime) Λ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_HoldTime) ΛValidate ¶
func (t *Interface_HoldTime) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Interface_Subinterface ¶
type Interface_Subinterface struct { AdminStatus E_Interface_AdminStatus `path:"state/admin-status" module:"openconfig-interfaces/openconfig-interfaces"` Counters *Interface_Subinterface_Counters `path:"state/counters" module:"openconfig-interfaces/openconfig-interfaces"` Cpu *bool `path:"state/cpu" module:"openconfig-interfaces/openconfig-interfaces"` Description *string `path:"state/description" module:"openconfig-interfaces/openconfig-interfaces"` Enabled *bool `path:"state/enabled" module:"openconfig-interfaces/openconfig-interfaces"` Ifindex *uint32 `path:"state/ifindex" module:"openconfig-interfaces/openconfig-interfaces"` Index *uint32 `path:"state/index|index" module:"openconfig-interfaces/openconfig-interfaces|openconfig-interfaces"` LastChange *uint64 `path:"state/last-change" module:"openconfig-interfaces/openconfig-interfaces"` Logical *bool `path:"state/logical" module:"openconfig-interfaces/openconfig-interfaces"` Management *bool `path:"state/management" module:"openconfig-interfaces/openconfig-interfaces"` Name *string `path:"state/name" module:"openconfig-interfaces/openconfig-interfaces"` OperStatus E_Interface_OperStatus `path:"state/oper-status" module:"openconfig-interfaces/openconfig-interfaces"` }
Interface_Subinterface represents the /openconfig-interfaces/interfaces/interface/subinterfaces/subinterface YANG schema element.
func (*Interface_Subinterface) GetAdminStatus ¶
func (t *Interface_Subinterface) GetAdminStatus() E_Interface_AdminStatus
GetAdminStatus retrieves the value of the leaf AdminStatus from the Interface_Subinterface 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 AdminStatus is set, it can safely use t.GetAdminStatus() 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.AdminStatus == nil' before retrieving the leaf's value.
func (*Interface_Subinterface) GetCounters ¶
func (t *Interface_Subinterface) GetCounters() *Interface_Subinterface_Counters
GetCounters returns the value of the Counters struct pointer from Interface_Subinterface. If the receiver or the field Counters is nil, nil is returned such that the Get* methods can be safely chained.
func (*Interface_Subinterface) GetCpu ¶
func (t *Interface_Subinterface) GetCpu() bool
GetCpu retrieves the value of the leaf Cpu from the Interface_Subinterface 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 Cpu is set, it can safely use t.GetCpu() 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.Cpu == nil' before retrieving the leaf's value.
func (*Interface_Subinterface) GetDescription ¶
func (t *Interface_Subinterface) GetDescription() string
GetDescription retrieves the value of the leaf Description from the Interface_Subinterface 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 Description is set, it can safely use t.GetDescription() 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.Description == nil' before retrieving the leaf's value.
func (*Interface_Subinterface) GetEnabled ¶
func (t *Interface_Subinterface) GetEnabled() bool
GetEnabled retrieves the value of the leaf Enabled from the Interface_Subinterface 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 Enabled is set, it can safely use t.GetEnabled() 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.Enabled == nil' before retrieving the leaf's value.
func (*Interface_Subinterface) GetIfindex ¶
func (t *Interface_Subinterface) GetIfindex() uint32
GetIfindex retrieves the value of the leaf Ifindex from the Interface_Subinterface 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 Ifindex is set, it can safely use t.GetIfindex() 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.Ifindex == nil' before retrieving the leaf's value.
func (*Interface_Subinterface) GetIndex ¶
func (t *Interface_Subinterface) GetIndex() uint32
GetIndex retrieves the value of the leaf Index from the Interface_Subinterface 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 Index is set, it can safely use t.GetIndex() 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.Index == nil' before retrieving the leaf's value.
func (*Interface_Subinterface) GetLastChange ¶
func (t *Interface_Subinterface) GetLastChange() uint64
GetLastChange retrieves the value of the leaf LastChange from the Interface_Subinterface 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 LastChange is set, it can safely use t.GetLastChange() 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.LastChange == nil' before retrieving the leaf's value.
func (*Interface_Subinterface) GetLogical ¶
func (t *Interface_Subinterface) GetLogical() bool
GetLogical retrieves the value of the leaf Logical from the Interface_Subinterface 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 Logical is set, it can safely use t.GetLogical() 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.Logical == nil' before retrieving the leaf's value.
func (*Interface_Subinterface) GetManagement ¶
func (t *Interface_Subinterface) GetManagement() bool
GetManagement retrieves the value of the leaf Management from the Interface_Subinterface 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 Management is set, it can safely use t.GetManagement() 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.Management == nil' before retrieving the leaf's value.
func (*Interface_Subinterface) GetName ¶
func (t *Interface_Subinterface) GetName() string
GetName retrieves the value of the leaf Name from the Interface_Subinterface 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_Subinterface) GetOperStatus ¶
func (t *Interface_Subinterface) GetOperStatus() E_Interface_OperStatus
GetOperStatus retrieves the value of the leaf OperStatus from the Interface_Subinterface 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 OperStatus is set, it can safely use t.GetOperStatus() 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.OperStatus == nil' before retrieving the leaf's value.
func (*Interface_Subinterface) GetOrCreateCounters ¶
func (t *Interface_Subinterface) GetOrCreateCounters() *Interface_Subinterface_Counters
GetOrCreateCounters retrieves the value of the Counters field or returns the existing field if it already exists.
func (*Interface_Subinterface) IsYANGGoStruct ¶
func (*Interface_Subinterface) IsYANGGoStruct()
IsYANGGoStruct ensures that Interface_Subinterface implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Interface_Subinterface) Validate ¶
func (t *Interface_Subinterface) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Interface_Subinterface) ΛBelongingModule ¶
func (*Interface_Subinterface) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Interface_Subinterface.
func (*Interface_Subinterface) ΛEnumTypeMap ¶
func (t *Interface_Subinterface) Λ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_Subinterface) ΛListKeyMap ¶
func (t *Interface_Subinterface) ΛListKeyMap() (map[string]interface{}, error)
ΛListKeyMap returns the keys of the Interface_Subinterface struct, which is a YANG list entry.
func (*Interface_Subinterface) ΛValidate ¶
func (t *Interface_Subinterface) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type Interface_Subinterface_Counters ¶
type Interface_Subinterface_Counters struct { CarrierTransitions *uint64 `path:"carrier-transitions" module:"openconfig-interfaces"` InBroadcastPkts *uint64 `path:"in-broadcast-pkts" module:"openconfig-interfaces"` InDiscards *uint64 `path:"in-discards" module:"openconfig-interfaces"` InErrors *uint64 `path:"in-errors" module:"openconfig-interfaces"` InFcsErrors *uint64 `path:"in-fcs-errors" module:"openconfig-interfaces"` InMulticastPkts *uint64 `path:"in-multicast-pkts" module:"openconfig-interfaces"` InOctets *uint64 `path:"in-octets" module:"openconfig-interfaces"` InPkts *uint64 `path:"in-pkts" module:"openconfig-interfaces"` InUnicastPkts *uint64 `path:"in-unicast-pkts" module:"openconfig-interfaces"` InUnknownProtos *uint64 `path:"in-unknown-protos" module:"openconfig-interfaces"` LastClear *uint64 `path:"last-clear" module:"openconfig-interfaces"` OutBroadcastPkts *uint64 `path:"out-broadcast-pkts" module:"openconfig-interfaces"` OutDiscards *uint64 `path:"out-discards" module:"openconfig-interfaces"` OutErrors *uint64 `path:"out-errors" module:"openconfig-interfaces"` OutMulticastPkts *uint64 `path:"out-multicast-pkts" module:"openconfig-interfaces"` OutOctets *uint64 `path:"out-octets" module:"openconfig-interfaces"` OutPkts *uint64 `path:"out-pkts" module:"openconfig-interfaces"` OutUnicastPkts *uint64 `path:"out-unicast-pkts" module:"openconfig-interfaces"` }
Interface_Subinterface_Counters represents the /openconfig-interfaces/interfaces/interface/subinterfaces/subinterface/state/counters YANG schema element.
func (*Interface_Subinterface_Counters) GetCarrierTransitions ¶
func (t *Interface_Subinterface_Counters) GetCarrierTransitions() uint64
GetCarrierTransitions retrieves the value of the leaf CarrierTransitions from the Interface_Subinterface_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 CarrierTransitions is set, it can safely use t.GetCarrierTransitions() 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.CarrierTransitions == nil' before retrieving the leaf's value.
func (*Interface_Subinterface_Counters) GetInBroadcastPkts ¶
func (t *Interface_Subinterface_Counters) GetInBroadcastPkts() uint64
GetInBroadcastPkts retrieves the value of the leaf InBroadcastPkts from the Interface_Subinterface_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 InBroadcastPkts is set, it can safely use t.GetInBroadcastPkts() 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.InBroadcastPkts == nil' before retrieving the leaf's value.
func (*Interface_Subinterface_Counters) GetInDiscards ¶
func (t *Interface_Subinterface_Counters) GetInDiscards() uint64
GetInDiscards retrieves the value of the leaf InDiscards from the Interface_Subinterface_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 InDiscards is set, it can safely use t.GetInDiscards() 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.InDiscards == nil' before retrieving the leaf's value.
func (*Interface_Subinterface_Counters) GetInErrors ¶
func (t *Interface_Subinterface_Counters) GetInErrors() uint64
GetInErrors retrieves the value of the leaf InErrors from the Interface_Subinterface_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 InErrors is set, it can safely use t.GetInErrors() 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.InErrors == nil' before retrieving the leaf's value.
func (*Interface_Subinterface_Counters) GetInFcsErrors ¶
func (t *Interface_Subinterface_Counters) GetInFcsErrors() uint64
GetInFcsErrors retrieves the value of the leaf InFcsErrors from the Interface_Subinterface_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 InFcsErrors is set, it can safely use t.GetInFcsErrors() 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.InFcsErrors == nil' before retrieving the leaf's value.
func (*Interface_Subinterface_Counters) GetInMulticastPkts ¶
func (t *Interface_Subinterface_Counters) GetInMulticastPkts() uint64
GetInMulticastPkts retrieves the value of the leaf InMulticastPkts from the Interface_Subinterface_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 InMulticastPkts is set, it can safely use t.GetInMulticastPkts() 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.InMulticastPkts == nil' before retrieving the leaf's value.
func (*Interface_Subinterface_Counters) GetInOctets ¶
func (t *Interface_Subinterface_Counters) GetInOctets() uint64
GetInOctets retrieves the value of the leaf InOctets from the Interface_Subinterface_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 (*Interface_Subinterface_Counters) GetInPkts ¶
func (t *Interface_Subinterface_Counters) GetInPkts() uint64
GetInPkts retrieves the value of the leaf InPkts from the Interface_Subinterface_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 (*Interface_Subinterface_Counters) GetInUnicastPkts ¶
func (t *Interface_Subinterface_Counters) GetInUnicastPkts() uint64
GetInUnicastPkts retrieves the value of the leaf InUnicastPkts from the Interface_Subinterface_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 InUnicastPkts is set, it can safely use t.GetInUnicastPkts() 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.InUnicastPkts == nil' before retrieving the leaf's value.
func (*Interface_Subinterface_Counters) GetInUnknownProtos ¶
func (t *Interface_Subinterface_Counters) GetInUnknownProtos() uint64
GetInUnknownProtos retrieves the value of the leaf InUnknownProtos from the Interface_Subinterface_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 InUnknownProtos is set, it can safely use t.GetInUnknownProtos() 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.InUnknownProtos == nil' before retrieving the leaf's value.
func (*Interface_Subinterface_Counters) GetLastClear ¶
func (t *Interface_Subinterface_Counters) GetLastClear() uint64
GetLastClear retrieves the value of the leaf LastClear from the Interface_Subinterface_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 LastClear is set, it can safely use t.GetLastClear() 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.LastClear == nil' before retrieving the leaf's value.
func (*Interface_Subinterface_Counters) GetOutBroadcastPkts ¶
func (t *Interface_Subinterface_Counters) GetOutBroadcastPkts() uint64
GetOutBroadcastPkts retrieves the value of the leaf OutBroadcastPkts from the Interface_Subinterface_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 OutBroadcastPkts is set, it can safely use t.GetOutBroadcastPkts() 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.OutBroadcastPkts == nil' before retrieving the leaf's value.
func (*Interface_Subinterface_Counters) GetOutDiscards ¶
func (t *Interface_Subinterface_Counters) GetOutDiscards() uint64
GetOutDiscards retrieves the value of the leaf OutDiscards from the Interface_Subinterface_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 OutDiscards is set, it can safely use t.GetOutDiscards() 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.OutDiscards == nil' before retrieving the leaf's value.
func (*Interface_Subinterface_Counters) GetOutErrors ¶
func (t *Interface_Subinterface_Counters) GetOutErrors() uint64
GetOutErrors retrieves the value of the leaf OutErrors from the Interface_Subinterface_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 OutErrors is set, it can safely use t.GetOutErrors() 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.OutErrors == nil' before retrieving the leaf's value.
func (*Interface_Subinterface_Counters) GetOutMulticastPkts ¶
func (t *Interface_Subinterface_Counters) GetOutMulticastPkts() uint64
GetOutMulticastPkts retrieves the value of the leaf OutMulticastPkts from the Interface_Subinterface_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 OutMulticastPkts is set, it can safely use t.GetOutMulticastPkts() 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.OutMulticastPkts == nil' before retrieving the leaf's value.
func (*Interface_Subinterface_Counters) GetOutOctets ¶
func (t *Interface_Subinterface_Counters) GetOutOctets() uint64
GetOutOctets retrieves the value of the leaf OutOctets from the Interface_Subinterface_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 (*Interface_Subinterface_Counters) GetOutPkts ¶
func (t *Interface_Subinterface_Counters) GetOutPkts() uint64
GetOutPkts retrieves the value of the leaf OutPkts from the Interface_Subinterface_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 (*Interface_Subinterface_Counters) GetOutUnicastPkts ¶
func (t *Interface_Subinterface_Counters) GetOutUnicastPkts() uint64
GetOutUnicastPkts retrieves the value of the leaf OutUnicastPkts from the Interface_Subinterface_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 OutUnicastPkts is set, it can safely use t.GetOutUnicastPkts() 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.OutUnicastPkts == nil' before retrieving the leaf's value.
func (*Interface_Subinterface_Counters) IsYANGGoStruct ¶
func (*Interface_Subinterface_Counters) IsYANGGoStruct()
IsYANGGoStruct ensures that Interface_Subinterface_Counters implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*Interface_Subinterface_Counters) Validate ¶
func (t *Interface_Subinterface_Counters) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*Interface_Subinterface_Counters) ΛBelongingModule ¶
func (*Interface_Subinterface_Counters) ΛBelongingModule() string
ΛBelongingModule returns the name of the module that defines the namespace of Interface_Subinterface_Counters.
func (*Interface_Subinterface_Counters) ΛEnumTypeMap ¶
func (t *Interface_Subinterface_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 (*Interface_Subinterface_Counters) ΛValidate ¶
func (t *Interface_Subinterface_Counters) ΛValidate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
type RIB ¶
type RIB struct { Afts *Afts `path:"afts" module:"gribi-aft"` Interface map[string]*Interface `path:"interfaces/interface" module:"openconfig-interfaces/openconfig-interfaces"` }
RIB represents the /RIB YANG schema element.
func (*RIB) DeleteInterface ¶
DeleteInterface deletes the value with the specified keys from the receiver RIB. If there is no such element, the function is a no-op.
func (*RIB) GetAfts ¶
GetAfts returns the value of the Afts struct pointer from RIB. If the receiver or the field Afts is nil, nil is returned such that the Get* methods can be safely chained.
func (*RIB) GetInterface ¶
GetInterface retrieves the value with the specified key from the Interface map field of RIB. 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 (*RIB) GetOrCreateAfts ¶
GetOrCreateAfts retrieves the value of the Afts field or returns the existing field if it already exists.
func (*RIB) GetOrCreateInterface ¶
GetOrCreateInterface retrieves the value with the specified keys from the receiver RIB. If the entry does not exist, then it is created. It returns the existing or new list member.
func (*RIB) IsYANGGoStruct ¶
func (*RIB) IsYANGGoStruct()
IsYANGGoStruct ensures that RIB implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.
func (*RIB) NewInterface ¶
NewInterface creates a new entry in the Interface list of the RIB struct. The keys of the list are populated from the input arguments.
func (*RIB) Validate ¶
func (t *RIB) Validate(opts ...ygot.ValidationOption) error
Validate validates s against the YANG schema corresponding to its type.
func (*RIB) ΛBelongingModule ¶
ΛBelongingModule returns the name of the module that defines the namespace of RIB.
func (*RIB) ΛEnumTypeMap ¶
ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.
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.
func (UnionUint32) Documentation_for_Afts_LabelEntry_Label_Union ¶
func (UnionUint32) Documentation_for_Afts_LabelEntry_Label_Union()
Documentation_for_Afts_LabelEntry_Label_Union ensures that UnionUint32 implements the Afts_LabelEntry_Label_Union interface.
func (UnionUint32) Documentation_for_Afts_LabelEntry_PoppedMplsLabelStack_Union ¶
func (UnionUint32) Documentation_for_Afts_LabelEntry_PoppedMplsLabelStack_Union()
Documentation_for_Afts_LabelEntry_PoppedMplsLabelStack_Union ensures that UnionUint32 implements the Afts_LabelEntry_PoppedMplsLabelStack_Union interface.
func (UnionUint32) Documentation_for_Afts_NextHop_PushedMplsLabelStack_Union ¶
func (UnionUint32) Documentation_for_Afts_NextHop_PushedMplsLabelStack_Union()
Documentation_for_Afts_NextHop_PushedMplsLabelStack_Union ensures that UnionUint32 implements the Afts_NextHop_PushedMplsLabelStack_Union interface.
func (UnionUint32) Documentation_for_Afts_PolicyForwardingEntry_MplsLabel_Union ¶
func (UnionUint32) Documentation_for_Afts_PolicyForwardingEntry_MplsLabel_Union()
Documentation_for_Afts_PolicyForwardingEntry_MplsLabel_Union ensures that UnionUint32 implements the Afts_PolicyForwardingEntry_MplsLabel_Union interface.
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.
func (UnionUint8) Documentation_for_Afts_PolicyForwardingEntry_IpProtocol_Union ¶
func (UnionUint8) Documentation_for_Afts_PolicyForwardingEntry_IpProtocol_Union()
Documentation_for_Afts_PolicyForwardingEntry_IpProtocol_Union ensures that UnionUint8 implements the Afts_PolicyForwardingEntry_IpProtocol_Union interface.
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.