otg

package
v0.12.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2025 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Overview

Package otg 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 ygnmi version: v0.11.1: (ygot: v0.29.20) using the following YANG input files:

  • models-yang/models/bgp/open-traffic-generator-bgp.yang
  • models-yang/models/dhcp/v4client/open-traffic-generator-dhcpv4client.yang
  • models-yang/models/dhcp/v4server/open-traffic-generator-dhcpv4server.yang
  • models-yang/models/dhcp/v6client/open-traffic-generator-dhcpv6client.yang
  • models-yang/models/dhcp/v6server/open-traffic-generator-dhcpv6server.yang
  • models-yang/models/discovery/open-traffic-generator-discovery.yang
  • models-yang/models/discovery/open-traffic-generator-discovery-interfaces.yang
  • models-yang/models/flow/open-traffic-generator-flow.yang
  • models-yang/models/interface/open-traffic-generator-port.yang
  • models-yang/models/isis/open-traffic-generator-isis.yang
  • models-yang/models/lacp/open-traffic-generator-lacp.yang
  • models-yang/models/lag/open-traffic-generator-lag.yang
  • models-yang/models/lldp/open-traffic-generator-lldp.yang
  • models-yang/models/ospfv2/open-traffic-generator-ospfv2.yang
  • models-yang/models/ospfv3/open-traffic-generator-ospfv3.yang
  • models-yang/models/platform/open-traffic-generator-platform.yang
  • models-yang/models/rsvp/open-traffic-generator-rsvp.yang
  • models-yang/models/types/open-traffic-generator-types.yang

Imported modules were sourced from:

  • models-yang/models/...

Package otg 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 ygnmi version: v0.11.1: (ygot: v0.29.20) using the following YANG input files:

  • models-yang/models/bgp/open-traffic-generator-bgp.yang
  • models-yang/models/dhcp/v4client/open-traffic-generator-dhcpv4client.yang
  • models-yang/models/dhcp/v4server/open-traffic-generator-dhcpv4server.yang
  • models-yang/models/dhcp/v6client/open-traffic-generator-dhcpv6client.yang
  • models-yang/models/dhcp/v6server/open-traffic-generator-dhcpv6server.yang
  • models-yang/models/discovery/open-traffic-generator-discovery.yang
  • models-yang/models/discovery/open-traffic-generator-discovery-interfaces.yang
  • models-yang/models/flow/open-traffic-generator-flow.yang
  • models-yang/models/interface/open-traffic-generator-port.yang
  • models-yang/models/isis/open-traffic-generator-isis.yang
  • models-yang/models/lacp/open-traffic-generator-lacp.yang
  • models-yang/models/lag/open-traffic-generator-lag.yang
  • models-yang/models/lldp/open-traffic-generator-lldp.yang
  • models-yang/models/ospfv2/open-traffic-generator-ospfv2.yang
  • models-yang/models/ospfv3/open-traffic-generator-ospfv3.yang
  • models-yang/models/platform/open-traffic-generator-platform.yang
  • models-yang/models/rsvp/open-traffic-generator-rsvp.yang
  • models-yang/models/types/open-traffic-generator-types.yang

Imported modules were sourced from:

  • models-yang/models/...

Package otg 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 ygnmi version: v0.11.1: (ygot: v0.29.20) using the following YANG input files:

  • models-yang/models/bgp/open-traffic-generator-bgp.yang
  • models-yang/models/dhcp/v4client/open-traffic-generator-dhcpv4client.yang
  • models-yang/models/dhcp/v4server/open-traffic-generator-dhcpv4server.yang
  • models-yang/models/dhcp/v6client/open-traffic-generator-dhcpv6client.yang
  • models-yang/models/dhcp/v6server/open-traffic-generator-dhcpv6server.yang
  • models-yang/models/discovery/open-traffic-generator-discovery.yang
  • models-yang/models/discovery/open-traffic-generator-discovery-interfaces.yang
  • models-yang/models/flow/open-traffic-generator-flow.yang
  • models-yang/models/interface/open-traffic-generator-port.yang
  • models-yang/models/isis/open-traffic-generator-isis.yang
  • models-yang/models/lacp/open-traffic-generator-lacp.yang
  • models-yang/models/lag/open-traffic-generator-lag.yang
  • models-yang/models/lldp/open-traffic-generator-lldp.yang
  • models-yang/models/ospfv2/open-traffic-generator-ospfv2.yang
  • models-yang/models/ospfv3/open-traffic-generator-ospfv3.yang
  • models-yang/models/platform/open-traffic-generator-platform.yang
  • models-yang/models/rsvp/open-traffic-generator-rsvp.yang
  • models-yang/models/types/open-traffic-generator-types.yang

Imported modules were sourced from:

  • models-yang/models/...

Package otg 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 ygnmi version: v0.11.1: (ygot: v0.29.20) using the following YANG input files:

  • models-yang/models/bgp/open-traffic-generator-bgp.yang
  • models-yang/models/dhcp/v4client/open-traffic-generator-dhcpv4client.yang
  • models-yang/models/dhcp/v4server/open-traffic-generator-dhcpv4server.yang
  • models-yang/models/dhcp/v6client/open-traffic-generator-dhcpv6client.yang
  • models-yang/models/dhcp/v6server/open-traffic-generator-dhcpv6server.yang
  • models-yang/models/discovery/open-traffic-generator-discovery.yang
  • models-yang/models/discovery/open-traffic-generator-discovery-interfaces.yang
  • models-yang/models/flow/open-traffic-generator-flow.yang
  • models-yang/models/interface/open-traffic-generator-port.yang
  • models-yang/models/isis/open-traffic-generator-isis.yang
  • models-yang/models/lacp/open-traffic-generator-lacp.yang
  • models-yang/models/lag/open-traffic-generator-lag.yang
  • models-yang/models/lldp/open-traffic-generator-lldp.yang
  • models-yang/models/ospfv2/open-traffic-generator-ospfv2.yang
  • models-yang/models/ospfv3/open-traffic-generator-ospfv3.yang
  • models-yang/models/platform/open-traffic-generator-platform.yang
  • models-yang/models/rsvp/open-traffic-generator-rsvp.yang
  • models-yang/models/types/open-traffic-generator-types.yang

Imported modules were sourced from:

  • models-yang/models/...

Package otg 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 ygnmi version: v0.11.1: (ygot: v0.29.20) using the following YANG input files:

  • models-yang/models/bgp/open-traffic-generator-bgp.yang
  • models-yang/models/dhcp/v4client/open-traffic-generator-dhcpv4client.yang
  • models-yang/models/dhcp/v4server/open-traffic-generator-dhcpv4server.yang
  • models-yang/models/dhcp/v6client/open-traffic-generator-dhcpv6client.yang
  • models-yang/models/dhcp/v6server/open-traffic-generator-dhcpv6server.yang
  • models-yang/models/discovery/open-traffic-generator-discovery.yang
  • models-yang/models/discovery/open-traffic-generator-discovery-interfaces.yang
  • models-yang/models/flow/open-traffic-generator-flow.yang
  • models-yang/models/interface/open-traffic-generator-port.yang
  • models-yang/models/isis/open-traffic-generator-isis.yang
  • models-yang/models/lacp/open-traffic-generator-lacp.yang
  • models-yang/models/lag/open-traffic-generator-lag.yang
  • models-yang/models/lldp/open-traffic-generator-lldp.yang
  • models-yang/models/ospfv2/open-traffic-generator-ospfv2.yang
  • models-yang/models/ospfv3/open-traffic-generator-ospfv3.yang
  • models-yang/models/platform/open-traffic-generator-platform.yang
  • models-yang/models/rsvp/open-traffic-generator-rsvp.yang
  • models-yang/models/types/open-traffic-generator-types.yang

Imported modules were sourced from:

  • models-yang/models/...

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemaTree map[string]*yang.Entry
	ΛEnumTypes map[string][]reflect.Type
)
View Source
var ΛEnum = map[string]map[int64]ygot.EnumDefinition{
	"E_AdjacencySid_AdjacencyType": {
		1: {Name: "ADJ-SID"},
		2: {Name: "LAN-ADJ-SID"},
	},
	"E_AdjacencySid_Flags": {
		1: {Name: "ADDRESS_FAMILY"},
		2: {Name: "BACKUP"},
		3: {Name: "VALUE"},
		4: {Name: "LOCAL"},
		5: {Name: "SET"},
		6: {Name: "PERSISTENT"},
	},
	"E_BgpPeer_SessionState": {
		1: {Name: "IDLE"},
		2: {Name: "CONNECT"},
		3: {Name: "ACTIVE"},
		4: {Name: "OPEN_SENT"},
		5: {Name: "OPEN_CONFIRM"},
		6: {Name: "ESTABLISHED"},
	},
	"E_Capabilities_Name": {
		1:  {Name: "MAC_BRIDGE"},
		2:  {Name: "TWO_PORT_MAC_RELAY"},
		3:  {Name: "REPEATER"},
		4:  {Name: "DOCSIS_CABLE_DEVICE"},
		5:  {Name: "S_VLAN"},
		6:  {Name: "TELEPHONE"},
		7:  {Name: "OTHER"},
		8:  {Name: "ROUTER"},
		9:  {Name: "C_VLAN"},
		10: {Name: "STATION_ONLY"},
		11: {Name: "WLAN_ACCESS_POINT"},
	},
	"E_Capability_Flags": {
		1: {Name: "FLOOD"},
		2: {Name: "DOWN"},
	},
	"E_Component_Name": {
		1: {Name: "keng-controller"},
	},
	"E_Ero_Type": {
		1: {Name: "IPV4"},
		2: {Name: "IPV6"},
		3: {Name: "ASN"},
		4: {Name: "ASN4"},
		5: {Name: "LABEL"},
		6: {Name: "UNNUMBERED_INTERFACE"},
	},
	"E_ExtendedCommunity_BgpExtendedCommunityStructuredType": {
		1: {Name: "TRANSITIVE_2OCTET_AS_TYPE"},
		2: {Name: "TRANSITIVE_IPV4_ADDRESS_TYPE"},
		3: {Name: "TRANSITIVE_4OCTET_AS_TYPE"},
		4: {Name: "TRANSITIVE_OPAQUE_TYPE"},
		5: {Name: "NON_TRANSITIVE_2OCTET_AS_TYPE"},
	},
	"E_ExtendedIpv4Reachability_Prefix_RedistributionType": {
		1: {Name: "UP"},
		2: {Name: "DOWN"},
	},
	"E_Ipv4ExternalReachability_Prefix_OriginType": {
		1: {Name: "INTERNAL"},
		2: {Name: "EXTERNAL"},
	},
	"E_Ipv4ExternalReachability_Prefix_RedistributionType": {
		1: {Name: "UP"},
		2: {Name: "DOWN"},
	},
	"E_Ipv4Lsp_LastFlapReason": {
		1: {Name: "RESVTEAR"},
		2: {Name: "PATHTEAR"},
		3: {Name: "PATHTIMEOUT"},
	},
	"E_Ipv4Lsp_SessionStatus": {
		1: {Name: "UP"},
		2: {Name: "DOWN"},
	},
	"E_Ipv6Reachability_Prefix_OriginType": {
		1: {Name: "INTERNAL"},
		2: {Name: "EXTERNAL"},
	},
	"E_Ipv6Reachability_Prefix_RedistributionType": {
		1: {Name: "UP"},
		2: {Name: "DOWN"},
	},
	"E_Lacp_LacpActivityType": {
		1: {Name: "ACTIVE"},
		2: {Name: "PASSIVE"},
	},
	"E_Lacp_LacpSynchronizationType": {
		1: {Name: "IN_SYNC"},
		2: {Name: "OUT_SYNC"},
	},
	"E_Lacp_LacpTimeoutType": {
		1: {Name: "LONG"},
		2: {Name: "SHORT"},
	},
	"E_Lag_OperStatus": {
		1: {Name: "UP"},
		2: {Name: "DOWN"},
	},
	"E_Link_Type": {
		1: {Name: "POINT_TO_POINT"},
		2: {Name: "TRANSIT"},
		3: {Name: "STUB"},
		4: {Name: "VIRTUAL"},
	},
	"E_LldpNeighbor_ChassisIdType": {
		1: {Name: "PORT_COMPONENT"},
		2: {Name: "NETWORK_ADDRESS"},
		3: {Name: "CHASSIS_COMPONENT"},
		4: {Name: "MAC_ADDRESS"},
		5: {Name: "INTERFACE_NAME"},
		6: {Name: "LOCAL"},
		7: {Name: "INTERFACE_ALIAS"},
	},
	"E_LldpNeighbor_PortIdType": {
		1: {Name: "PORT_COMPONENT"},
		2: {Name: "NETWORK_ADDRESS"},
		3: {Name: "AGENT_CIRCUIT_ID"},
		4: {Name: "MAC_ADDRESS"},
		5: {Name: "INTERFACE_NAME"},
		6: {Name: "LOCAL"},
		7: {Name: "INTERFACE_ALIAS"},
	},
	"E_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType": {
		1: {Name: "SUCCEEDED"},
		2: {Name: "FAILED"},
		3: {Name: "INPROGRESS"},
		4: {Name: "UNAVAILABLE"},
	},
	"E_LocalRestartingStatus_CurrentState": {
		1: {Name: "RUNNING"},
		2: {Name: "RESTARTING"},
		3: {Name: "STARTING"},
	},
	"E_LocalState_LevelType": {
		1: {Name: "LEVEL_1"},
		2: {Name: "LEVEL_2"},
		3: {Name: "LEVEL_1_2"},
	},
	"E_Lsps_Flags": {
		1: {Name: "PARTITION_REPAIR"},
		2: {Name: "ATTACHED_ERROR"},
		3: {Name: "ATTACHED_EXPENSE"},
		4: {Name: "ATTACHED_DELAY"},
		5: {Name: "ATTACHED_DEFAULT"},
		6: {Name: "OVERLOAD"},
	},
	"E_Lsps_PduType": {
		1: {Name: "LEVEL_1"},
		2: {Name: "LEVEL_2"},
	},
	"E_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType": {
		1: {Name: "SUCCEEDED"},
		2: {Name: "FAILED"},
		3: {Name: "INPROGRESS"},
		4: {Name: "UNAVAILABLE"},
	},
	"E_NeighRestartingStatus_CurrentState": {
		1: {Name: "RUNNING"},
		2: {Name: "RESTARTING"},
		3: {Name: "STARTING"},
	},
	"E_NeighborState_LevelType": {
		1: {Name: "LEVEL_1"},
		2: {Name: "LEVEL_2"},
		3: {Name: "LEVEL_1_2"},
	},
	"E_OpaqueLsa_Type": {
		1: {Name: "LOCAL"},
		2: {Name: "AREA"},
		3: {Name: "DOMAIN"},
	},
	"E_Port_Link": {
		1: {Name: "UP"},
		2: {Name: "DOWN"},
	},
	"E_PrefixSid_Flags": {
		1: {Name: "READVERTISEMENT"},
		2: {Name: "NODE"},
		3: {Name: "NO_PHP"},
		4: {Name: "EXPLICIT_NULL"},
		5: {Name: "VALUE"},
		6: {Name: "LOCAL"},
	},
	"E_RestartTlv_Flags": {
		1: {Name: "RR_BIT"},
		2: {Name: "RA_BIT"},
		3: {Name: "SA_BIT"},
		4: {Name: "PR_BIT"},
		5: {Name: "PA_BIT"},
	},
	"E_SegmentRoutingCapability_Flags": {
		1: {Name: "IPV4_MPLS"},
		2: {Name: "IPV6_MPLS"},
	},
	"E_State_CommunityType": {
		1: {Name: "MANUAL_AS_NUMBER"},
		2: {Name: "NO_EXPORT"},
		3: {Name: "NO_ADVERTISE"},
		4: {Name: "NO_EXPORT_SUBCONFED"},
		5: {Name: "LLGR_STALE"},
		6: {Name: "NO_LLGR"},
	},
	"E_State_Flags": {
		1: {Name: "EXTERNAL_FLAG"},
		2: {Name: "READVERTISEMENT_FLAG"},
		3: {Name: "NODE_FLAG"},
	},
	"E_State_SegmentType": {
		1: {Name: "AS_SEQUENCE"},
		2: {Name: "AS_SET"},
		3: {Name: "AS_CONFED_SEQUENCE"},
		4: {Name: "AS_CONFED_SET"},
	},
	"E_State_Type": {
		1: {Name: "POINT_TO_POINT"},
		2: {Name: "TRANSIT"},
		3: {Name: "STUB"},
		4: {Name: "VIRTUAL"},
	},
	"E_Structured_NonTransitive_2OctetAsType": {
		1: {Name: "LINK_BANDWIDTH_SUBTYPE"},
	},
	"E_Structured_TransitiveIpv4AddressType": {
		1: {Name: "ROUTE_TARGET_SUBTYPE"},
		2: {Name: "ROUTE_ORIGIN_SUBTYPE"},
	},
	"E_Structured_TransitiveOpaqueType": {
		1: {Name: "COLOR_SUBTYPE"},
		2: {Name: "ENCAPSULATION_SUBTYPE"},
	},
	"E_Structured_Transitive_2OctetAsType": {
		1: {Name: "ROUTE_TARGET_SUBTYPE"},
		2: {Name: "ROUTE_ORIGIN_SUBTYPE"},
	},
	"E_Structured_Transitive_4OctetAsType": {
		1: {Name: "ROUTE_TARGET_SUBTYPE"},
		2: {Name: "ROUTE_ORIGIN_SUBTYPE"},
	},
	"E_Tags_ValueType": {
		1: {Name: "STRING"},
		2: {Name: "HEX"},
		3: {Name: "BOOL"},
		4: {Name: "COUNTER64"},
		5: {Name: "FLOAT32"},
		6: {Name: "IPV4"},
		7: {Name: "IPV6"},
		8: {Name: "MAC"},
	},
	"E_Types_MplsLabel_Enum": {
		1: {Name: "IPV4_EXPLICIT_NULL"},
		2: {Name: "ROUTER_ALERT"},
		3: {Name: "IPV6_EXPLICIT_NULL"},
		4: {Name: "IMPLICIT_NULL"},
		8: {Name: "ENTROPY_LABEL_INDICATOR"},
		9: {Name: "NO_LABEL"},
	},
	"E_UnicastIpv4Prefix_Origin": {
		1: {Name: "IGP"},
		2: {Name: "EGP"},
		3: {Name: "INCOMPLETE"},
	},
	"E_UnicastIpv6Prefix_Origin": {
		1: {Name: "IGP"},
		2: {Name: "EGP"},
		3: {Name: "INCOMPLETE"},
	},
}

Λ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 Schema

func Schema() (*ytypes.Schema, error)

Schema returns the details of the generated schema.

func Unmarshal

func Unmarshal(data []byte, destStruct ygot.GoStruct, opts ...ytypes.UnmarshalOpt) error

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.

func UnzipSchema

func UnzipSchema() (map[string]*yang.Entry, error)

UnzipSchema unzips the zipped schema and returns a map of yang.Entry nodes, keyed by the name of the struct that the yang.Entry describes the schema for.

Types

type BgpPeer

type BgpPeer struct {
	Counters          *BgpPeer_Counters                                            `path:"state/counters" module:"open-traffic-generator-bgp/open-traffic-generator-bgp"`
	Name              *string                                                      `` /* 174-byte string literal not displayed */
	SessionState      E_BgpPeer_SessionState                                       `path:"state/session-state" module:"open-traffic-generator-bgp/open-traffic-generator-bgp"`
	UnicastIpv4Prefix map[BgpPeer_UnicastIpv4Prefix_Key]*BgpPeer_UnicastIpv4Prefix `path:"unicast-ipv4-prefixes/unicast-ipv4-prefix" module:"open-traffic-generator-bgp/open-traffic-generator-bgp"`
	UnicastIpv6Prefix map[BgpPeer_UnicastIpv6Prefix_Key]*BgpPeer_UnicastIpv6Prefix `path:"unicast-ipv6-prefixes/unicast-ipv6-prefix" module:"open-traffic-generator-bgp/open-traffic-generator-bgp"`
}

BgpPeer represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer YANG schema element.

func (*BgpPeer) AppendUnicastIpv4Prefix

func (t *BgpPeer) AppendUnicastIpv4Prefix(v *BgpPeer_UnicastIpv4Prefix) error

AppendUnicastIpv4Prefix appends the supplied BgpPeer_UnicastIpv4Prefix struct to the list UnicastIpv4Prefix of BgpPeer. If the key value(s) specified in the supplied BgpPeer_UnicastIpv4Prefix already exist in the list, an error is returned.

func (*BgpPeer) AppendUnicastIpv6Prefix

func (t *BgpPeer) AppendUnicastIpv6Prefix(v *BgpPeer_UnicastIpv6Prefix) error

AppendUnicastIpv6Prefix appends the supplied BgpPeer_UnicastIpv6Prefix struct to the list UnicastIpv6Prefix of BgpPeer. If the key value(s) specified in the supplied BgpPeer_UnicastIpv6Prefix already exist in the list, an error is returned.

func (*BgpPeer) DeleteUnicastIpv4Prefix

func (t *BgpPeer) DeleteUnicastIpv4Prefix(Address string, PrefixLength uint32, Origin E_UnicastIpv4Prefix_Origin, PathId uint32)

DeleteUnicastIpv4Prefix deletes the value with the specified keys from the receiver BgpPeer. If there is no such element, the function is a no-op.

func (*BgpPeer) DeleteUnicastIpv6Prefix

func (t *BgpPeer) DeleteUnicastIpv6Prefix(Address string, PrefixLength uint32, Origin E_UnicastIpv6Prefix_Origin, PathId uint32)

DeleteUnicastIpv6Prefix deletes the value with the specified keys from the receiver BgpPeer. If there is no such element, the function is a no-op.

func (*BgpPeer) GetCounters

func (t *BgpPeer) GetCounters() *BgpPeer_Counters

GetCounters returns the value of the Counters struct pointer from BgpPeer. If the receiver or the field Counters is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer) GetName

func (t *BgpPeer) GetName() string

GetName retrieves the value of the leaf Name from the BgpPeer 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 (*BgpPeer) GetOrCreateCounters

func (t *BgpPeer) GetOrCreateCounters() *BgpPeer_Counters

GetOrCreateCounters retrieves the value of the Counters field or returns the existing field if it already exists.

func (*BgpPeer) GetOrCreateUnicastIpv4Prefix

func (t *BgpPeer) GetOrCreateUnicastIpv4Prefix(Address string, PrefixLength uint32, Origin E_UnicastIpv4Prefix_Origin, PathId uint32) *BgpPeer_UnicastIpv4Prefix

GetOrCreateUnicastIpv4Prefix retrieves the value with the specified keys from the receiver BgpPeer. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*BgpPeer) GetOrCreateUnicastIpv4PrefixMap added in v0.7.1

func (t *BgpPeer) GetOrCreateUnicastIpv4PrefixMap() map[BgpPeer_UnicastIpv4Prefix_Key]*BgpPeer_UnicastIpv4Prefix

GetOrCreateUnicastIpv4PrefixMap returns the list (map) from BgpPeer.

It initializes the field if not already initialized.

func (*BgpPeer) GetOrCreateUnicastIpv6Prefix

func (t *BgpPeer) GetOrCreateUnicastIpv6Prefix(Address string, PrefixLength uint32, Origin E_UnicastIpv6Prefix_Origin, PathId uint32) *BgpPeer_UnicastIpv6Prefix

GetOrCreateUnicastIpv6Prefix retrieves the value with the specified keys from the receiver BgpPeer. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*BgpPeer) GetOrCreateUnicastIpv6PrefixMap added in v0.7.1

func (t *BgpPeer) GetOrCreateUnicastIpv6PrefixMap() map[BgpPeer_UnicastIpv6Prefix_Key]*BgpPeer_UnicastIpv6Prefix

GetOrCreateUnicastIpv6PrefixMap returns the list (map) from BgpPeer.

It initializes the field if not already initialized.

func (*BgpPeer) GetSessionState

func (t *BgpPeer) GetSessionState() E_BgpPeer_SessionState

GetSessionState retrieves the value of the leaf SessionState from the BgpPeer 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 SessionState is set, it can safely use t.GetSessionState() 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.SessionState == nil' before retrieving the leaf's value.

func (*BgpPeer) GetUnicastIpv4Prefix

func (t *BgpPeer) GetUnicastIpv4Prefix(Address string, PrefixLength uint32, Origin E_UnicastIpv4Prefix_Origin, PathId uint32) *BgpPeer_UnicastIpv4Prefix

GetUnicastIpv4Prefix retrieves the value with the specified key from the UnicastIpv4Prefix map field of BgpPeer. 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 (*BgpPeer) GetUnicastIpv6Prefix

func (t *BgpPeer) GetUnicastIpv6Prefix(Address string, PrefixLength uint32, Origin E_UnicastIpv6Prefix_Origin, PathId uint32) *BgpPeer_UnicastIpv6Prefix

GetUnicastIpv6Prefix retrieves the value with the specified key from the UnicastIpv6Prefix map field of BgpPeer. 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 (*BgpPeer) IsYANGGoStruct

func (*BgpPeer) IsYANGGoStruct()

IsYANGGoStruct ensures that BgpPeer implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer) NewUnicastIpv4Prefix

func (t *BgpPeer) NewUnicastIpv4Prefix(Address string, PrefixLength uint32, Origin E_UnicastIpv4Prefix_Origin, PathId uint32) (*BgpPeer_UnicastIpv4Prefix, error)

NewUnicastIpv4Prefix creates a new entry in the UnicastIpv4Prefix list of the BgpPeer struct. The keys of the list are populated from the input arguments.

func (*BgpPeer) NewUnicastIpv6Prefix

func (t *BgpPeer) NewUnicastIpv6Prefix(Address string, PrefixLength uint32, Origin E_UnicastIpv6Prefix_Origin, PathId uint32) (*BgpPeer_UnicastIpv6Prefix, error)

NewUnicastIpv6Prefix creates a new entry in the UnicastIpv6Prefix list of the BgpPeer struct. The keys of the list are populated from the input arguments.

func (*BgpPeer) PopulateDefaults

func (t *BgpPeer) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the BgpPeer with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer) RenameUnicastIpv4Prefix added in v0.4.3

func (t *BgpPeer) RenameUnicastIpv4Prefix(oldK, newK BgpPeer_UnicastIpv4Prefix_Key) error

RenameUnicastIpv4Prefix renames an entry in the list UnicastIpv4Prefix within the BgpPeer struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*BgpPeer) RenameUnicastIpv6Prefix added in v0.4.3

func (t *BgpPeer) RenameUnicastIpv6Prefix(oldK, newK BgpPeer_UnicastIpv6Prefix_Key) error

RenameUnicastIpv6Prefix renames an entry in the list UnicastIpv6Prefix within the BgpPeer struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*BgpPeer) SetName

func (t *BgpPeer) SetName(v string)

SetName sets the value of the leaf Name in the BgpPeer struct.

func (*BgpPeer) SetSessionState

func (t *BgpPeer) SetSessionState(v E_BgpPeer_SessionState)

SetSessionState sets the value of the leaf SessionState in the BgpPeer struct.

func (*BgpPeer) Validate

func (t *BgpPeer) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer) ΛBelongingModule

func (*BgpPeer) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer.

func (*BgpPeer) ΛEnumTypeMap

func (t *BgpPeer) Λ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 (*BgpPeer) ΛListKeyMap

func (t *BgpPeer) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the BgpPeer struct, which is a YANG list entry.

func (*BgpPeer) ΛValidate

func (t *BgpPeer) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_Counters

type BgpPeer_Counters struct {
	Flaps            *uint64 `path:"flaps" module:"open-traffic-generator-bgp"`
	InEndOfRib       *uint64 `path:"in-end-of-rib" module:"open-traffic-generator-bgp"`
	InKeepalives     *uint64 `path:"in-keepalives" module:"open-traffic-generator-bgp"`
	InNotifications  *uint64 `path:"in-notifications" module:"open-traffic-generator-bgp"`
	InOpens          *uint64 `path:"in-opens" module:"open-traffic-generator-bgp"`
	InRouteWithdraw  *uint64 `path:"in-route-withdraw" module:"open-traffic-generator-bgp"`
	InRoutes         *uint64 `path:"in-routes" module:"open-traffic-generator-bgp"`
	InUpdates        *uint64 `path:"in-updates" module:"open-traffic-generator-bgp"`
	OutKeepalives    *uint64 `path:"out-keepalives" module:"open-traffic-generator-bgp"`
	OutNotifications *uint64 `path:"out-notifications" module:"open-traffic-generator-bgp"`
	OutOpens         *uint64 `path:"out-opens" module:"open-traffic-generator-bgp"`
	OutRouteWithdraw *uint64 `path:"out-route-withdraw" module:"open-traffic-generator-bgp"`
	OutRoutes        *uint64 `path:"out-routes" module:"open-traffic-generator-bgp"`
	OutUpdates       *uint64 `path:"out-updates" module:"open-traffic-generator-bgp"`
}

BgpPeer_Counters represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/state/counters YANG schema element.

func (*BgpPeer_Counters) GetFlaps

func (t *BgpPeer_Counters) GetFlaps() uint64

GetFlaps retrieves the value of the leaf Flaps from the BgpPeer_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 Flaps is set, it can safely use t.GetFlaps() 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.Flaps == nil' before retrieving the leaf's value.

func (*BgpPeer_Counters) GetInEndOfRib added in v0.2.2

func (t *BgpPeer_Counters) GetInEndOfRib() uint64

GetInEndOfRib retrieves the value of the leaf InEndOfRib from the BgpPeer_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 InEndOfRib is set, it can safely use t.GetInEndOfRib() 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.InEndOfRib == nil' before retrieving the leaf's value.

func (*BgpPeer_Counters) GetInKeepalives

func (t *BgpPeer_Counters) GetInKeepalives() uint64

GetInKeepalives retrieves the value of the leaf InKeepalives from the BgpPeer_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 InKeepalives is set, it can safely use t.GetInKeepalives() 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.InKeepalives == nil' before retrieving the leaf's value.

func (*BgpPeer_Counters) GetInNotifications

func (t *BgpPeer_Counters) GetInNotifications() uint64

GetInNotifications retrieves the value of the leaf InNotifications from the BgpPeer_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 InNotifications is set, it can safely use t.GetInNotifications() 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.InNotifications == nil' before retrieving the leaf's value.

func (*BgpPeer_Counters) GetInOpens

func (t *BgpPeer_Counters) GetInOpens() uint64

GetInOpens retrieves the value of the leaf InOpens from the BgpPeer_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 InOpens is set, it can safely use t.GetInOpens() 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.InOpens == nil' before retrieving the leaf's value.

func (*BgpPeer_Counters) GetInRouteWithdraw

func (t *BgpPeer_Counters) GetInRouteWithdraw() uint64

GetInRouteWithdraw retrieves the value of the leaf InRouteWithdraw from the BgpPeer_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 InRouteWithdraw is set, it can safely use t.GetInRouteWithdraw() 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.InRouteWithdraw == nil' before retrieving the leaf's value.

func (*BgpPeer_Counters) GetInRoutes

func (t *BgpPeer_Counters) GetInRoutes() uint64

GetInRoutes retrieves the value of the leaf InRoutes from the BgpPeer_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 InRoutes is set, it can safely use t.GetInRoutes() 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.InRoutes == nil' before retrieving the leaf's value.

func (*BgpPeer_Counters) GetInUpdates

func (t *BgpPeer_Counters) GetInUpdates() uint64

GetInUpdates retrieves the value of the leaf InUpdates from the BgpPeer_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 InUpdates is set, it can safely use t.GetInUpdates() 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.InUpdates == nil' before retrieving the leaf's value.

func (*BgpPeer_Counters) GetOutKeepalives

func (t *BgpPeer_Counters) GetOutKeepalives() uint64

GetOutKeepalives retrieves the value of the leaf OutKeepalives from the BgpPeer_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 OutKeepalives is set, it can safely use t.GetOutKeepalives() 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.OutKeepalives == nil' before retrieving the leaf's value.

func (*BgpPeer_Counters) GetOutNotifications

func (t *BgpPeer_Counters) GetOutNotifications() uint64

GetOutNotifications retrieves the value of the leaf OutNotifications from the BgpPeer_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 OutNotifications is set, it can safely use t.GetOutNotifications() 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.OutNotifications == nil' before retrieving the leaf's value.

func (*BgpPeer_Counters) GetOutOpens

func (t *BgpPeer_Counters) GetOutOpens() uint64

GetOutOpens retrieves the value of the leaf OutOpens from the BgpPeer_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 OutOpens is set, it can safely use t.GetOutOpens() 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.OutOpens == nil' before retrieving the leaf's value.

func (*BgpPeer_Counters) GetOutRouteWithdraw

func (t *BgpPeer_Counters) GetOutRouteWithdraw() uint64

GetOutRouteWithdraw retrieves the value of the leaf OutRouteWithdraw from the BgpPeer_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 OutRouteWithdraw is set, it can safely use t.GetOutRouteWithdraw() 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.OutRouteWithdraw == nil' before retrieving the leaf's value.

func (*BgpPeer_Counters) GetOutRoutes

func (t *BgpPeer_Counters) GetOutRoutes() uint64

GetOutRoutes retrieves the value of the leaf OutRoutes from the BgpPeer_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 OutRoutes is set, it can safely use t.GetOutRoutes() 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.OutRoutes == nil' before retrieving the leaf's value.

func (*BgpPeer_Counters) GetOutUpdates

func (t *BgpPeer_Counters) GetOutUpdates() uint64

GetOutUpdates retrieves the value of the leaf OutUpdates from the BgpPeer_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 OutUpdates is set, it can safely use t.GetOutUpdates() 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.OutUpdates == nil' before retrieving the leaf's value.

func (*BgpPeer_Counters) IsYANGGoStruct

func (*BgpPeer_Counters) IsYANGGoStruct()

IsYANGGoStruct ensures that BgpPeer_Counters implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_Counters) PopulateDefaults

func (t *BgpPeer_Counters) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_Counters with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_Counters) SetFlaps

func (t *BgpPeer_Counters) SetFlaps(v uint64)

SetFlaps sets the value of the leaf Flaps in the BgpPeer_Counters struct.

func (*BgpPeer_Counters) SetInEndOfRib added in v0.2.2

func (t *BgpPeer_Counters) SetInEndOfRib(v uint64)

SetInEndOfRib sets the value of the leaf InEndOfRib in the BgpPeer_Counters struct.

func (*BgpPeer_Counters) SetInKeepalives

func (t *BgpPeer_Counters) SetInKeepalives(v uint64)

SetInKeepalives sets the value of the leaf InKeepalives in the BgpPeer_Counters struct.

func (*BgpPeer_Counters) SetInNotifications

func (t *BgpPeer_Counters) SetInNotifications(v uint64)

SetInNotifications sets the value of the leaf InNotifications in the BgpPeer_Counters struct.

func (*BgpPeer_Counters) SetInOpens

func (t *BgpPeer_Counters) SetInOpens(v uint64)

SetInOpens sets the value of the leaf InOpens in the BgpPeer_Counters struct.

func (*BgpPeer_Counters) SetInRouteWithdraw

func (t *BgpPeer_Counters) SetInRouteWithdraw(v uint64)

SetInRouteWithdraw sets the value of the leaf InRouteWithdraw in the BgpPeer_Counters struct.

func (*BgpPeer_Counters) SetInRoutes

func (t *BgpPeer_Counters) SetInRoutes(v uint64)

SetInRoutes sets the value of the leaf InRoutes in the BgpPeer_Counters struct.

func (*BgpPeer_Counters) SetInUpdates

func (t *BgpPeer_Counters) SetInUpdates(v uint64)

SetInUpdates sets the value of the leaf InUpdates in the BgpPeer_Counters struct.

func (*BgpPeer_Counters) SetOutKeepalives

func (t *BgpPeer_Counters) SetOutKeepalives(v uint64)

SetOutKeepalives sets the value of the leaf OutKeepalives in the BgpPeer_Counters struct.

func (*BgpPeer_Counters) SetOutNotifications

func (t *BgpPeer_Counters) SetOutNotifications(v uint64)

SetOutNotifications sets the value of the leaf OutNotifications in the BgpPeer_Counters struct.

func (*BgpPeer_Counters) SetOutOpens

func (t *BgpPeer_Counters) SetOutOpens(v uint64)

SetOutOpens sets the value of the leaf OutOpens in the BgpPeer_Counters struct.

func (*BgpPeer_Counters) SetOutRouteWithdraw

func (t *BgpPeer_Counters) SetOutRouteWithdraw(v uint64)

SetOutRouteWithdraw sets the value of the leaf OutRouteWithdraw in the BgpPeer_Counters struct.

func (*BgpPeer_Counters) SetOutRoutes

func (t *BgpPeer_Counters) SetOutRoutes(v uint64)

SetOutRoutes sets the value of the leaf OutRoutes in the BgpPeer_Counters struct.

func (*BgpPeer_Counters) SetOutUpdates

func (t *BgpPeer_Counters) SetOutUpdates(v uint64)

SetOutUpdates sets the value of the leaf OutUpdates in the BgpPeer_Counters struct.

func (*BgpPeer_Counters) Validate

func (t *BgpPeer_Counters) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_Counters) ΛBelongingModule

func (*BgpPeer_Counters) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_Counters.

func (*BgpPeer_Counters) ΛEnumTypeMap

func (t *BgpPeer_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 (*BgpPeer_Counters) ΛValidate

func (t *BgpPeer_Counters) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv4Prefix

type BgpPeer_UnicastIpv4Prefix struct {
	Address                *string                                        `` /* 183-byte string literal not displayed */
	AsPath                 []*BgpPeer_UnicastIpv4Prefix_AsPath            `path:"state/as-path" module:"open-traffic-generator-bgp/open-traffic-generator-bgp"`
	Community              []*BgpPeer_UnicastIpv4Prefix_Community         `path:"state/community" module:"open-traffic-generator-bgp/open-traffic-generator-bgp"`
	ExtendedCommunity      []*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity `path:"state/extended-community" module:"open-traffic-generator-bgp/open-traffic-generator-bgp"`
	LocalPreference        *uint32                                        `path:"state/local-preference" module:"open-traffic-generator-bgp/open-traffic-generator-bgp"`
	MultiExitDiscriminator *uint32                                        `path:"state/multi-exit-discriminator" module:"open-traffic-generator-bgp/open-traffic-generator-bgp"`
	NextHopIpv4Address     *string                                        `path:"state/next-hop-ipv4-address" module:"open-traffic-generator-bgp/open-traffic-generator-bgp"`
	NextHopIpv6Address     *string                                        `path:"state/next-hop-ipv6-address" module:"open-traffic-generator-bgp/open-traffic-generator-bgp"`
	Origin                 E_UnicastIpv4Prefix_Origin                     `` /* 180-byte string literal not displayed */
	PathId                 *uint32                                        `` /* 183-byte string literal not displayed */
	PrefixLength           *uint32                                        `` /* 201-byte string literal not displayed */
}

BgpPeer_UnicastIpv4Prefix represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv4-prefixes/unicast-ipv4-prefix YANG schema element.

func (*BgpPeer_UnicastIpv4Prefix) GetAddress

func (t *BgpPeer_UnicastIpv4Prefix) GetAddress() string

GetAddress retrieves the value of the leaf Address from the BgpPeer_UnicastIpv4Prefix 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 Address is set, it can safely use t.GetAddress() 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.Address == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix) GetLocalPreference added in v0.2.2

func (t *BgpPeer_UnicastIpv4Prefix) GetLocalPreference() uint32

GetLocalPreference retrieves the value of the leaf LocalPreference from the BgpPeer_UnicastIpv4Prefix 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 LocalPreference is set, it can safely use t.GetLocalPreference() 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.LocalPreference == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix) GetMultiExitDiscriminator added in v0.2.2

func (t *BgpPeer_UnicastIpv4Prefix) GetMultiExitDiscriminator() uint32

GetMultiExitDiscriminator retrieves the value of the leaf MultiExitDiscriminator from the BgpPeer_UnicastIpv4Prefix 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 MultiExitDiscriminator is set, it can safely use t.GetMultiExitDiscriminator() 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.MultiExitDiscriminator == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix) GetNextHopIpv4Address

func (t *BgpPeer_UnicastIpv4Prefix) GetNextHopIpv4Address() string

GetNextHopIpv4Address retrieves the value of the leaf NextHopIpv4Address from the BgpPeer_UnicastIpv4Prefix 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 NextHopIpv4Address is set, it can safely use t.GetNextHopIpv4Address() 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.NextHopIpv4Address == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix) GetNextHopIpv6Address

func (t *BgpPeer_UnicastIpv4Prefix) GetNextHopIpv6Address() string

GetNextHopIpv6Address retrieves the value of the leaf NextHopIpv6Address from the BgpPeer_UnicastIpv4Prefix 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 NextHopIpv6Address is set, it can safely use t.GetNextHopIpv6Address() 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.NextHopIpv6Address == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix) GetOrigin

GetOrigin retrieves the value of the leaf Origin from the BgpPeer_UnicastIpv4Prefix 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 Origin is set, it can safely use t.GetOrigin() 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.Origin == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix) GetPathId

func (t *BgpPeer_UnicastIpv4Prefix) GetPathId() uint32

GetPathId retrieves the value of the leaf PathId from the BgpPeer_UnicastIpv4Prefix 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 PathId is set, it can safely use t.GetPathId() 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.PathId == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix) GetPrefixLength

func (t *BgpPeer_UnicastIpv4Prefix) GetPrefixLength() uint32

GetPrefixLength retrieves the value of the leaf PrefixLength from the BgpPeer_UnicastIpv4Prefix 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 PrefixLength is set, it can safely use t.GetPrefixLength() 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.PrefixLength == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix) IsYANGGoStruct

func (*BgpPeer_UnicastIpv4Prefix) IsYANGGoStruct()

IsYANGGoStruct ensures that BgpPeer_UnicastIpv4Prefix implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv4Prefix) PopulateDefaults

func (t *BgpPeer_UnicastIpv4Prefix) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv4Prefix with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv4Prefix) SetAddress

func (t *BgpPeer_UnicastIpv4Prefix) SetAddress(v string)

SetAddress sets the value of the leaf Address in the BgpPeer_UnicastIpv4Prefix struct.

func (*BgpPeer_UnicastIpv4Prefix) SetLocalPreference added in v0.2.2

func (t *BgpPeer_UnicastIpv4Prefix) SetLocalPreference(v uint32)

SetLocalPreference sets the value of the leaf LocalPreference in the BgpPeer_UnicastIpv4Prefix struct.

func (*BgpPeer_UnicastIpv4Prefix) SetMultiExitDiscriminator added in v0.2.2

func (t *BgpPeer_UnicastIpv4Prefix) SetMultiExitDiscriminator(v uint32)

SetMultiExitDiscriminator sets the value of the leaf MultiExitDiscriminator in the BgpPeer_UnicastIpv4Prefix struct.

func (*BgpPeer_UnicastIpv4Prefix) SetNextHopIpv4Address

func (t *BgpPeer_UnicastIpv4Prefix) SetNextHopIpv4Address(v string)

SetNextHopIpv4Address sets the value of the leaf NextHopIpv4Address in the BgpPeer_UnicastIpv4Prefix struct.

func (*BgpPeer_UnicastIpv4Prefix) SetNextHopIpv6Address

func (t *BgpPeer_UnicastIpv4Prefix) SetNextHopIpv6Address(v string)

SetNextHopIpv6Address sets the value of the leaf NextHopIpv6Address in the BgpPeer_UnicastIpv4Prefix struct.

func (*BgpPeer_UnicastIpv4Prefix) SetOrigin

SetOrigin sets the value of the leaf Origin in the BgpPeer_UnicastIpv4Prefix struct.

func (*BgpPeer_UnicastIpv4Prefix) SetPathId

func (t *BgpPeer_UnicastIpv4Prefix) SetPathId(v uint32)

SetPathId sets the value of the leaf PathId in the BgpPeer_UnicastIpv4Prefix struct.

func (*BgpPeer_UnicastIpv4Prefix) SetPrefixLength

func (t *BgpPeer_UnicastIpv4Prefix) SetPrefixLength(v uint32)

SetPrefixLength sets the value of the leaf PrefixLength in the BgpPeer_UnicastIpv4Prefix struct.

func (*BgpPeer_UnicastIpv4Prefix) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv4Prefix) ΛBelongingModule

func (*BgpPeer_UnicastIpv4Prefix) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv4Prefix.

func (*BgpPeer_UnicastIpv4Prefix) ΛEnumTypeMap

func (t *BgpPeer_UnicastIpv4Prefix) Λ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 (*BgpPeer_UnicastIpv4Prefix) ΛListKeyMap

func (t *BgpPeer_UnicastIpv4Prefix) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the BgpPeer_UnicastIpv4Prefix struct, which is a YANG list entry.

func (*BgpPeer_UnicastIpv4Prefix) ΛValidate

func (t *BgpPeer_UnicastIpv4Prefix) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv4Prefix_AsPath

type BgpPeer_UnicastIpv4Prefix_AsPath struct {
	AsNumbers   []uint32            `path:"as_numbers" module:"open-traffic-generator-bgp"`
	SegmentType E_State_SegmentType `path:"segment-type" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv4Prefix_AsPath represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv4-prefixes/unicast-ipv4-prefix/state/as-path YANG schema element.

func (*BgpPeer_UnicastIpv4Prefix_AsPath) GetAsNumbers

func (t *BgpPeer_UnicastIpv4Prefix_AsPath) GetAsNumbers() []uint32

GetAsNumbers retrieves the value of the leaf AsNumbers from the BgpPeer_UnicastIpv4Prefix_AsPath 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 AsNumbers is set, it can safely use t.GetAsNumbers() 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.AsNumbers == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_AsPath) GetSegmentType

GetSegmentType retrieves the value of the leaf SegmentType from the BgpPeer_UnicastIpv4Prefix_AsPath 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 SegmentType is set, it can safely use t.GetSegmentType() 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.SegmentType == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_AsPath) IsYANGGoStruct

func (*BgpPeer_UnicastIpv4Prefix_AsPath) IsYANGGoStruct()

IsYANGGoStruct ensures that BgpPeer_UnicastIpv4Prefix_AsPath implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv4Prefix_AsPath) PopulateDefaults

func (t *BgpPeer_UnicastIpv4Prefix_AsPath) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv4Prefix_AsPath with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv4Prefix_AsPath) SetAsNumbers

func (t *BgpPeer_UnicastIpv4Prefix_AsPath) SetAsNumbers(v []uint32)

SetAsNumbers sets the value of the leaf AsNumbers in the BgpPeer_UnicastIpv4Prefix_AsPath struct.

func (*BgpPeer_UnicastIpv4Prefix_AsPath) SetSegmentType

SetSegmentType sets the value of the leaf SegmentType in the BgpPeer_UnicastIpv4Prefix_AsPath struct.

func (*BgpPeer_UnicastIpv4Prefix_AsPath) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv4Prefix_AsPath) ΛBelongingModule

func (*BgpPeer_UnicastIpv4Prefix_AsPath) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv4Prefix_AsPath.

func (*BgpPeer_UnicastIpv4Prefix_AsPath) ΛEnumTypeMap

func (t *BgpPeer_UnicastIpv4Prefix_AsPath) Λ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 (*BgpPeer_UnicastIpv4Prefix_AsPath) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv4Prefix_Community

type BgpPeer_UnicastIpv4Prefix_Community struct {
	CommunityType  E_State_CommunityType `path:"community-type" module:"open-traffic-generator-bgp"`
	CustomAsNumber *uint16               `path:"custom-as-number" module:"open-traffic-generator-bgp"`
	CustomAsValue  *uint16               `path:"custom-as-value" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv4Prefix_Community represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv4-prefixes/unicast-ipv4-prefix/state/community YANG schema element.

func (*BgpPeer_UnicastIpv4Prefix_Community) GetCommunityType

GetCommunityType retrieves the value of the leaf CommunityType from the BgpPeer_UnicastIpv4Prefix_Community 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 CommunityType is set, it can safely use t.GetCommunityType() 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.CommunityType == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_Community) GetCustomAsNumber

func (t *BgpPeer_UnicastIpv4Prefix_Community) GetCustomAsNumber() uint16

GetCustomAsNumber retrieves the value of the leaf CustomAsNumber from the BgpPeer_UnicastIpv4Prefix_Community 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 CustomAsNumber is set, it can safely use t.GetCustomAsNumber() 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.CustomAsNumber == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_Community) GetCustomAsValue

func (t *BgpPeer_UnicastIpv4Prefix_Community) GetCustomAsValue() uint16

GetCustomAsValue retrieves the value of the leaf CustomAsValue from the BgpPeer_UnicastIpv4Prefix_Community 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 CustomAsValue is set, it can safely use t.GetCustomAsValue() 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.CustomAsValue == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_Community) IsYANGGoStruct

func (*BgpPeer_UnicastIpv4Prefix_Community) IsYANGGoStruct()

IsYANGGoStruct ensures that BgpPeer_UnicastIpv4Prefix_Community implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv4Prefix_Community) PopulateDefaults

func (t *BgpPeer_UnicastIpv4Prefix_Community) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv4Prefix_Community with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv4Prefix_Community) SetCommunityType

SetCommunityType sets the value of the leaf CommunityType in the BgpPeer_UnicastIpv4Prefix_Community struct.

func (*BgpPeer_UnicastIpv4Prefix_Community) SetCustomAsNumber

func (t *BgpPeer_UnicastIpv4Prefix_Community) SetCustomAsNumber(v uint16)

SetCustomAsNumber sets the value of the leaf CustomAsNumber in the BgpPeer_UnicastIpv4Prefix_Community struct.

func (*BgpPeer_UnicastIpv4Prefix_Community) SetCustomAsValue

func (t *BgpPeer_UnicastIpv4Prefix_Community) SetCustomAsValue(v uint16)

SetCustomAsValue sets the value of the leaf CustomAsValue in the BgpPeer_UnicastIpv4Prefix_Community struct.

func (*BgpPeer_UnicastIpv4Prefix_Community) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv4Prefix_Community) ΛBelongingModule

func (*BgpPeer_UnicastIpv4Prefix_Community) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv4Prefix_Community.

func (*BgpPeer_UnicastIpv4Prefix_Community) ΛEnumTypeMap

func (t *BgpPeer_UnicastIpv4Prefix_Community) Λ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 (*BgpPeer_UnicastIpv4Prefix_Community) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity added in v0.5.8

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity struct {
	Raw        *string                                                 `path:"raw" module:"open-traffic-generator-bgp"`
	Structured *BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured `path:"structured" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv4Prefix_ExtendedCommunity represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv4-prefixes/unicast-ipv4-prefix/state/extended-community YANG schema element.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity) GetOrCreateStructured added in v0.5.8

GetOrCreateStructured retrieves the value of the Structured field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity) GetRaw added in v0.5.8

GetRaw retrieves the value of the leaf Raw from the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity 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 Raw is set, it can safely use t.GetRaw() 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.Raw == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity) GetStructured added in v0.5.8

GetStructured returns the value of the Structured struct pointer from BgpPeer_UnicastIpv4Prefix_ExtendedCommunity. If the receiver or the field Structured is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv4Prefix_ExtendedCommunity implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity) PopulateDefaults added in v0.5.8

func (t *BgpPeer_UnicastIpv4Prefix_ExtendedCommunity) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity) SetRaw added in v0.5.8

SetRaw sets the value of the leaf Raw in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity struct.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv4Prefix_ExtendedCommunity.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured added in v0.5.8

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured struct {
	BgpExtendedCommunityStructuredType E_ExtendedCommunity_BgpExtendedCommunityStructuredType                             `path:"bgp-extended-community-structured_type" module:"open-traffic-generator-bgp"`
	NonTransitive_2OctetAsType         *BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType `path:"non_transitive_2octet_as_type" module:"open-traffic-generator-bgp"`
	Transitive_2OctetAsType            *BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType    `path:"transitive_2octet_as_type" module:"open-traffic-generator-bgp"`
	Transitive_4OctetAsType            *BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType    `path:"transitive_4octet_as_type" module:"open-traffic-generator-bgp"`
	TransitiveIpv4AddressType          *BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType  `path:"transitive_ipv4_address_type" module:"open-traffic-generator-bgp"`
	TransitiveOpaqueType               *BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType       `path:"transitive_opaque_type" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv4-prefixes/unicast-ipv4-prefix/state/extended-community/structured YANG schema element.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured) GetBgpExtendedCommunityStructuredType added in v0.5.8

GetBgpExtendedCommunityStructuredType retrieves the value of the leaf BgpExtendedCommunityStructuredType from the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured 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 BgpExtendedCommunityStructuredType is set, it can safely use t.GetBgpExtendedCommunityStructuredType() 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.BgpExtendedCommunityStructuredType == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured) GetNonTransitive_2OctetAsType added in v0.5.8

GetNonTransitive_2OctetAsType returns the value of the NonTransitive_2OctetAsType struct pointer from BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured. If the receiver or the field NonTransitive_2OctetAsType is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured) GetOrCreateNonTransitive_2OctetAsType added in v0.5.8

GetOrCreateNonTransitive_2OctetAsType retrieves the value of the NonTransitive_2OctetAsType field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured) GetOrCreateTransitiveIpv4AddressType added in v0.5.8

GetOrCreateTransitiveIpv4AddressType retrieves the value of the TransitiveIpv4AddressType field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured) GetOrCreateTransitiveOpaqueType added in v0.5.8

GetOrCreateTransitiveOpaqueType retrieves the value of the TransitiveOpaqueType field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured) GetOrCreateTransitive_2OctetAsType added in v0.5.8

GetOrCreateTransitive_2OctetAsType retrieves the value of the Transitive_2OctetAsType field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured) GetOrCreateTransitive_4OctetAsType added in v0.5.8

GetOrCreateTransitive_4OctetAsType retrieves the value of the Transitive_4OctetAsType field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured) GetTransitiveIpv4AddressType added in v0.5.8

GetTransitiveIpv4AddressType returns the value of the TransitiveIpv4AddressType struct pointer from BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured. If the receiver or the field TransitiveIpv4AddressType is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured) GetTransitiveOpaqueType added in v0.5.8

GetTransitiveOpaqueType returns the value of the TransitiveOpaqueType struct pointer from BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured. If the receiver or the field TransitiveOpaqueType is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured) GetTransitive_2OctetAsType added in v0.5.8

GetTransitive_2OctetAsType returns the value of the Transitive_2OctetAsType struct pointer from BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured. If the receiver or the field Transitive_2OctetAsType is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured) GetTransitive_4OctetAsType added in v0.5.8

GetTransitive_4OctetAsType returns the value of the Transitive_4OctetAsType struct pointer from BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured. If the receiver or the field Transitive_4OctetAsType is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured) SetBgpExtendedCommunityStructuredType added in v0.5.8

SetBgpExtendedCommunityStructuredType sets the value of the leaf BgpExtendedCommunityStructuredType in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured struct.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType added in v0.5.8

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType struct {
	LinkBandwidthSubtype       *BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype `path:"link_bandwidth_subtype" module:"open-traffic-generator-bgp"`
	NonTransitive_2OctetAsType E_Structured_NonTransitive_2OctetAsType                                                                 `path:"non_transitive_2octet_as_type" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv4-prefixes/unicast-ipv4-prefix/state/extended-community/structured/non_transitive_2octet_as_type YANG schema element.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType) GetLinkBandwidthSubtype added in v0.5.8

GetLinkBandwidthSubtype returns the value of the LinkBandwidthSubtype struct pointer from BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType. If the receiver or the field LinkBandwidthSubtype is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType) GetNonTransitive_2OctetAsType added in v0.5.8

GetNonTransitive_2OctetAsType retrieves the value of the leaf NonTransitive_2OctetAsType from the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType 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 NonTransitive_2OctetAsType is set, it can safely use t.GetNonTransitive_2OctetAsType() 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.NonTransitive_2OctetAsType == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType) GetOrCreateLinkBandwidthSubtype added in v0.5.8

GetOrCreateLinkBandwidthSubtype retrieves the value of the LinkBandwidthSubtype field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType) SetNonTransitive_2OctetAsType added in v0.5.8

SetNonTransitive_2OctetAsType sets the value of the leaf NonTransitive_2OctetAsType in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType struct.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype added in v0.5.8

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype struct {
	Bandwidth      Binary  `path:"bandwidth" module:"open-traffic-generator-bgp"`
	Global_2ByteAs *uint16 `path:"global_2byte_as" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv4-prefixes/unicast-ipv4-prefix/state/extended-community/structured/non_transitive_2octet_as_type/link_bandwidth_subtype YANG schema element.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype) GetBandwidth added in v0.5.8

GetBandwidth retrieves the value of the leaf Bandwidth from the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype 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 Bandwidth is set, it can safely use t.GetBandwidth() 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.Bandwidth == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype) GetGlobal_2ByteAs added in v0.5.8

GetGlobal_2ByteAs retrieves the value of the leaf Global_2ByteAs from the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype 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 Global_2ByteAs is set, it can safely use t.GetGlobal_2ByteAs() 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.Global_2ByteAs == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype) SetBandwidth added in v0.5.8

SetBandwidth sets the value of the leaf Bandwidth in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype struct.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype) SetGlobal_2ByteAs added in v0.5.8

SetGlobal_2ByteAs sets the value of the leaf Global_2ByteAs in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype struct.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType added in v0.5.8

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType struct {
	RouteOriginSubtype        *BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype `path:"route_origin_subtype" module:"open-traffic-generator-bgp"`
	RouteTargetSubtype        *BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype `path:"route_target_subtype" module:"open-traffic-generator-bgp"`
	TransitiveIpv4AddressType E_Structured_TransitiveIpv4AddressType                                                               `path:"transitive_ipv4_address_type" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv4-prefixes/unicast-ipv4-prefix/state/extended-community/structured/transitive_ipv4_address_type YANG schema element.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType) GetOrCreateRouteOriginSubtype added in v0.5.8

GetOrCreateRouteOriginSubtype retrieves the value of the RouteOriginSubtype field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType) GetOrCreateRouteTargetSubtype added in v0.5.8

GetOrCreateRouteTargetSubtype retrieves the value of the RouteTargetSubtype field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType) GetRouteOriginSubtype added in v0.5.8

GetRouteOriginSubtype returns the value of the RouteOriginSubtype struct pointer from BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType. If the receiver or the field RouteOriginSubtype is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType) GetRouteTargetSubtype added in v0.5.8

GetRouteTargetSubtype returns the value of the RouteTargetSubtype struct pointer from BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType. If the receiver or the field RouteTargetSubtype is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType) GetTransitiveIpv4AddressType added in v0.5.8

GetTransitiveIpv4AddressType retrieves the value of the leaf TransitiveIpv4AddressType from the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType 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 TransitiveIpv4AddressType is set, it can safely use t.GetTransitiveIpv4AddressType() 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.TransitiveIpv4AddressType == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType) SetTransitiveIpv4AddressType added in v0.5.8

SetTransitiveIpv4AddressType sets the value of the leaf TransitiveIpv4AddressType in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType struct.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype added in v0.5.8

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype struct {
	GlobalIpv4Admin  *string `path:"global_ipv4_admin" module:"open-traffic-generator-bgp"`
	Local_2ByteAdmin *uint16 `path:"local_2byte_admin" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv4-prefixes/unicast-ipv4-prefix/state/extended-community/structured/transitive_ipv4_address_type/route_origin_subtype YANG schema element.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype) GetGlobalIpv4Admin added in v0.5.8

GetGlobalIpv4Admin retrieves the value of the leaf GlobalIpv4Admin from the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype 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 GlobalIpv4Admin is set, it can safely use t.GetGlobalIpv4Admin() 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.GlobalIpv4Admin == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype) GetLocal_2ByteAdmin added in v0.5.8

GetLocal_2ByteAdmin retrieves the value of the leaf Local_2ByteAdmin from the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype 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 Local_2ByteAdmin is set, it can safely use t.GetLocal_2ByteAdmin() 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.Local_2ByteAdmin == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype) SetGlobalIpv4Admin added in v0.5.8

SetGlobalIpv4Admin sets the value of the leaf GlobalIpv4Admin in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype struct.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype) SetLocal_2ByteAdmin added in v0.5.8

SetLocal_2ByteAdmin sets the value of the leaf Local_2ByteAdmin in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype struct.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype added in v0.5.8

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype struct {
	GlobalIpv4Admin  *string `path:"global_ipv4_admin" module:"open-traffic-generator-bgp"`
	Local_2ByteAdmin *uint16 `path:"local_2byte_admin" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv4-prefixes/unicast-ipv4-prefix/state/extended-community/structured/transitive_ipv4_address_type/route_target_subtype YANG schema element.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype) GetGlobalIpv4Admin added in v0.5.8

GetGlobalIpv4Admin retrieves the value of the leaf GlobalIpv4Admin from the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype 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 GlobalIpv4Admin is set, it can safely use t.GetGlobalIpv4Admin() 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.GlobalIpv4Admin == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype) GetLocal_2ByteAdmin added in v0.5.8

GetLocal_2ByteAdmin retrieves the value of the leaf Local_2ByteAdmin from the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype 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 Local_2ByteAdmin is set, it can safely use t.GetLocal_2ByteAdmin() 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.Local_2ByteAdmin == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype) SetGlobalIpv4Admin added in v0.5.8

SetGlobalIpv4Admin sets the value of the leaf GlobalIpv4Admin in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype struct.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype) SetLocal_2ByteAdmin added in v0.5.8

SetLocal_2ByteAdmin sets the value of the leaf Local_2ByteAdmin in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype struct.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType added in v0.5.8

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType struct {
	ColorSubtype         *BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype         `path:"color_subtype" module:"open-traffic-generator-bgp"`
	EncapsulationSubtype *BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype `path:"encapsulation_subtype" module:"open-traffic-generator-bgp"`
	TransitiveOpaqueType E_Structured_TransitiveOpaqueType                                                                 `path:"transitive_opaque_type" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv4-prefixes/unicast-ipv4-prefix/state/extended-community/structured/transitive_opaque_type YANG schema element.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType) GetColorSubtype added in v0.5.8

GetColorSubtype returns the value of the ColorSubtype struct pointer from BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType. If the receiver or the field ColorSubtype is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType) GetEncapsulationSubtype added in v0.5.8

GetEncapsulationSubtype returns the value of the EncapsulationSubtype struct pointer from BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType. If the receiver or the field EncapsulationSubtype is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType) GetOrCreateColorSubtype added in v0.5.8

GetOrCreateColorSubtype retrieves the value of the ColorSubtype field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType) GetOrCreateEncapsulationSubtype added in v0.5.8

GetOrCreateEncapsulationSubtype retrieves the value of the EncapsulationSubtype field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType) GetTransitiveOpaqueType added in v0.5.8

GetTransitiveOpaqueType retrieves the value of the leaf TransitiveOpaqueType from the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType 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 TransitiveOpaqueType is set, it can safely use t.GetTransitiveOpaqueType() 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.TransitiveOpaqueType == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType) SetTransitiveOpaqueType added in v0.5.8

SetTransitiveOpaqueType sets the value of the leaf TransitiveOpaqueType in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType struct.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype added in v0.5.8

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype struct {
	Color *uint32 `path:"color" module:"open-traffic-generator-bgp"`
	Flags *uint16 `path:"flags" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv4-prefixes/unicast-ipv4-prefix/state/extended-community/structured/transitive_opaque_type/color_subtype YANG schema element.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype) GetColor added in v0.5.8

GetColor retrieves the value of the leaf Color from the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype 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 (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype) GetFlags added in v0.5.8

GetFlags retrieves the value of the leaf Flags from the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype 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 Flags is set, it can safely use t.GetFlags() 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.Flags == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype) SetColor added in v0.5.8

SetColor sets the value of the leaf Color in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype struct.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype) SetFlags added in v0.5.8

SetFlags sets the value of the leaf Flags in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype struct.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype added in v0.5.8

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype struct {
	Reserved   *uint32 `path:"reserved" module:"open-traffic-generator-bgp"`
	TunnelType *uint16 `path:"tunnel_type" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv4-prefixes/unicast-ipv4-prefix/state/extended-community/structured/transitive_opaque_type/encapsulation_subtype YANG schema element.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype) GetReserved added in v0.5.8

GetReserved retrieves the value of the leaf Reserved from the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype 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 Reserved is set, it can safely use t.GetReserved() 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.Reserved == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype) GetTunnelType added in v0.5.8

GetTunnelType retrieves the value of the leaf TunnelType from the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype 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 TunnelType is set, it can safely use t.GetTunnelType() 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.TunnelType == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype) SetReserved added in v0.5.8

SetReserved sets the value of the leaf Reserved in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype struct.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype) SetTunnelType added in v0.5.8

SetTunnelType sets the value of the leaf TunnelType in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype struct.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType added in v0.5.8

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType struct {
	RouteOriginSubtype      *BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype `path:"route_origin_subtype" module:"open-traffic-generator-bgp"`
	RouteTargetSubtype      *BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype `path:"route_target_subtype" module:"open-traffic-generator-bgp"`
	Transitive_2OctetAsType E_Structured_Transitive_2OctetAsType                                                               `path:"transitive_2octet_as_type" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv4-prefixes/unicast-ipv4-prefix/state/extended-community/structured/transitive_2octet_as_type YANG schema element.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType) GetOrCreateRouteOriginSubtype added in v0.5.8

GetOrCreateRouteOriginSubtype retrieves the value of the RouteOriginSubtype field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType) GetOrCreateRouteTargetSubtype added in v0.5.8

GetOrCreateRouteTargetSubtype retrieves the value of the RouteTargetSubtype field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType) GetRouteOriginSubtype added in v0.5.8

GetRouteOriginSubtype returns the value of the RouteOriginSubtype struct pointer from BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType. If the receiver or the field RouteOriginSubtype is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType) GetRouteTargetSubtype added in v0.5.8

GetRouteTargetSubtype returns the value of the RouteTargetSubtype struct pointer from BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType. If the receiver or the field RouteTargetSubtype is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType) GetTransitive_2OctetAsType added in v0.5.8

GetTransitive_2OctetAsType retrieves the value of the leaf Transitive_2OctetAsType from the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType 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 Transitive_2OctetAsType is set, it can safely use t.GetTransitive_2OctetAsType() 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.Transitive_2OctetAsType == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType) SetTransitive_2OctetAsType added in v0.5.8

SetTransitive_2OctetAsType sets the value of the leaf Transitive_2OctetAsType in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType struct.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype added in v0.5.8

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype struct {
	Global_2ByteAs   *uint16 `path:"global_2byte_as" module:"open-traffic-generator-bgp"`
	Local_4ByteAdmin *uint32 `path:"local_4byte_admin" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv4-prefixes/unicast-ipv4-prefix/state/extended-community/structured/transitive_2octet_as_type/route_origin_subtype YANG schema element.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype) GetGlobal_2ByteAs added in v0.5.8

GetGlobal_2ByteAs retrieves the value of the leaf Global_2ByteAs from the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype 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 Global_2ByteAs is set, it can safely use t.GetGlobal_2ByteAs() 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.Global_2ByteAs == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype) GetLocal_4ByteAdmin added in v0.5.8

GetLocal_4ByteAdmin retrieves the value of the leaf Local_4ByteAdmin from the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype 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 Local_4ByteAdmin is set, it can safely use t.GetLocal_4ByteAdmin() 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.Local_4ByteAdmin == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype) SetGlobal_2ByteAs added in v0.5.8

SetGlobal_2ByteAs sets the value of the leaf Global_2ByteAs in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype struct.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype) SetLocal_4ByteAdmin added in v0.5.8

SetLocal_4ByteAdmin sets the value of the leaf Local_4ByteAdmin in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype struct.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype added in v0.5.8

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype struct {
	Global_2ByteAs   *uint16 `path:"global_2byte_as" module:"open-traffic-generator-bgp"`
	Local_4ByteAdmin *uint32 `path:"local_4byte_admin" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv4-prefixes/unicast-ipv4-prefix/state/extended-community/structured/transitive_2octet_as_type/route_target_subtype YANG schema element.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype) GetGlobal_2ByteAs added in v0.5.8

GetGlobal_2ByteAs retrieves the value of the leaf Global_2ByteAs from the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype 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 Global_2ByteAs is set, it can safely use t.GetGlobal_2ByteAs() 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.Global_2ByteAs == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype) GetLocal_4ByteAdmin added in v0.5.8

GetLocal_4ByteAdmin retrieves the value of the leaf Local_4ByteAdmin from the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype 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 Local_4ByteAdmin is set, it can safely use t.GetLocal_4ByteAdmin() 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.Local_4ByteAdmin == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype) SetGlobal_2ByteAs added in v0.5.8

SetGlobal_2ByteAs sets the value of the leaf Global_2ByteAs in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype struct.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype) SetLocal_4ByteAdmin added in v0.5.8

SetLocal_4ByteAdmin sets the value of the leaf Local_4ByteAdmin in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype struct.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType added in v0.5.8

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType struct {
	RouteOriginSubtype      *BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype `path:"route_origin_subtype" module:"open-traffic-generator-bgp"`
	RouteTargetSubtype      *BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype `path:"route_target_subtype" module:"open-traffic-generator-bgp"`
	Transitive_4OctetAsType E_Structured_Transitive_4OctetAsType                                                               `path:"transitive_4octet_as_type" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv4-prefixes/unicast-ipv4-prefix/state/extended-community/structured/transitive_4octet_as_type YANG schema element.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType) GetOrCreateRouteOriginSubtype added in v0.5.8

GetOrCreateRouteOriginSubtype retrieves the value of the RouteOriginSubtype field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType) GetOrCreateRouteTargetSubtype added in v0.5.8

GetOrCreateRouteTargetSubtype retrieves the value of the RouteTargetSubtype field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType) GetRouteOriginSubtype added in v0.5.8

GetRouteOriginSubtype returns the value of the RouteOriginSubtype struct pointer from BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType. If the receiver or the field RouteOriginSubtype is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType) GetRouteTargetSubtype added in v0.5.8

GetRouteTargetSubtype returns the value of the RouteTargetSubtype struct pointer from BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType. If the receiver or the field RouteTargetSubtype is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType) GetTransitive_4OctetAsType added in v0.5.8

GetTransitive_4OctetAsType retrieves the value of the leaf Transitive_4OctetAsType from the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType 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 Transitive_4OctetAsType is set, it can safely use t.GetTransitive_4OctetAsType() 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.Transitive_4OctetAsType == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType) SetTransitive_4OctetAsType added in v0.5.8

SetTransitive_4OctetAsType sets the value of the leaf Transitive_4OctetAsType in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType struct.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype added in v0.5.8

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype struct {
	Global_4ByteAs   *uint32 `path:"global_4byte_as" module:"open-traffic-generator-bgp"`
	Local_2ByteAdmin *uint16 `path:"local_2byte_admin" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv4-prefixes/unicast-ipv4-prefix/state/extended-community/structured/transitive_4octet_as_type/route_origin_subtype YANG schema element.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype) GetGlobal_4ByteAs added in v0.5.8

GetGlobal_4ByteAs retrieves the value of the leaf Global_4ByteAs from the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype 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 Global_4ByteAs is set, it can safely use t.GetGlobal_4ByteAs() 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.Global_4ByteAs == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype) GetLocal_2ByteAdmin added in v0.5.8

GetLocal_2ByteAdmin retrieves the value of the leaf Local_2ByteAdmin from the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype 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 Local_2ByteAdmin is set, it can safely use t.GetLocal_2ByteAdmin() 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.Local_2ByteAdmin == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype) SetGlobal_4ByteAs added in v0.5.8

SetGlobal_4ByteAs sets the value of the leaf Global_4ByteAs in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype struct.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype) SetLocal_2ByteAdmin added in v0.5.8

SetLocal_2ByteAdmin sets the value of the leaf Local_2ByteAdmin in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype struct.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype added in v0.5.8

type BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype struct {
	Global_4ByteAs   *uint32 `path:"global_4byte_as" module:"open-traffic-generator-bgp"`
	Local_2ByteAdmin *uint16 `path:"local_2byte_admin" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv4-prefixes/unicast-ipv4-prefix/state/extended-community/structured/transitive_4octet_as_type/route_target_subtype YANG schema element.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype) GetGlobal_4ByteAs added in v0.5.8

GetGlobal_4ByteAs retrieves the value of the leaf Global_4ByteAs from the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype 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 Global_4ByteAs is set, it can safely use t.GetGlobal_4ByteAs() 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.Global_4ByteAs == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype) GetLocal_2ByteAdmin added in v0.5.8

GetLocal_2ByteAdmin retrieves the value of the leaf Local_2ByteAdmin from the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype 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 Local_2ByteAdmin is set, it can safely use t.GetLocal_2ByteAdmin() 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.Local_2ByteAdmin == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype) SetGlobal_4ByteAs added in v0.5.8

SetGlobal_4ByteAs sets the value of the leaf Global_4ByteAs in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype struct.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype) SetLocal_2ByteAdmin added in v0.5.8

SetLocal_2ByteAdmin sets the value of the leaf Local_2ByteAdmin in the BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype struct.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv4Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv4Prefix_Key

type BgpPeer_UnicastIpv4Prefix_Key struct {
	Address      string                     `path:"address"`
	PrefixLength uint32                     `path:"prefix-length"`
	Origin       E_UnicastIpv4Prefix_Origin `path:"origin"`
	PathId       uint32                     `path:"path-id"`
}

BgpPeer_UnicastIpv4Prefix_Key represents the key for list UnicastIpv4Prefix of element /open-traffic-generator-bgp/bgp-peers/bgp-peer.

func (BgpPeer_UnicastIpv4Prefix_Key) IsYANGGoKeyStruct

func (BgpPeer_UnicastIpv4Prefix_Key) IsYANGGoKeyStruct()

IsYANGGoKeyStruct ensures that BgpPeer_UnicastIpv4Prefix_Key partially implements the yang.GoKeyStruct interface. This allows functions that need to handle this key struct to identify it as being generated by gogen.

func (BgpPeer_UnicastIpv4Prefix_Key) ΛListKeyMap

func (t BgpPeer_UnicastIpv4Prefix_Key) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the values of the BgpPeer_UnicastIpv4Prefix_Key key struct.

type BgpPeer_UnicastIpv6Prefix

type BgpPeer_UnicastIpv6Prefix struct {
	Address                *string                                        `` /* 183-byte string literal not displayed */
	AsPath                 []*BgpPeer_UnicastIpv6Prefix_AsPath            `path:"state/as-path" module:"open-traffic-generator-bgp/open-traffic-generator-bgp"`
	Community              []*BgpPeer_UnicastIpv6Prefix_Community         `path:"state/community" module:"open-traffic-generator-bgp/open-traffic-generator-bgp"`
	ExtendedCommunity      []*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity `path:"state/extended-community" module:"open-traffic-generator-bgp/open-traffic-generator-bgp"`
	LocalPreference        *uint32                                        `path:"state/local-preference" module:"open-traffic-generator-bgp/open-traffic-generator-bgp"`
	MultiExitDiscriminator *uint32                                        `path:"state/multi-exit-discriminator" module:"open-traffic-generator-bgp/open-traffic-generator-bgp"`
	NextHopIpv4Address     *string                                        `path:"state/next-hop-ipv4-address" module:"open-traffic-generator-bgp/open-traffic-generator-bgp"`
	NextHopIpv6Address     *string                                        `path:"state/next-hop-ipv6-address" module:"open-traffic-generator-bgp/open-traffic-generator-bgp"`
	Origin                 E_UnicastIpv6Prefix_Origin                     `` /* 180-byte string literal not displayed */
	PathId                 *uint32                                        `` /* 183-byte string literal not displayed */
	PrefixLength           *uint32                                        `` /* 201-byte string literal not displayed */
}

BgpPeer_UnicastIpv6Prefix represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv6-prefixes/unicast-ipv6-prefix YANG schema element.

func (*BgpPeer_UnicastIpv6Prefix) GetAddress

func (t *BgpPeer_UnicastIpv6Prefix) GetAddress() string

GetAddress retrieves the value of the leaf Address from the BgpPeer_UnicastIpv6Prefix 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 Address is set, it can safely use t.GetAddress() 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.Address == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix) GetLocalPreference added in v0.2.2

func (t *BgpPeer_UnicastIpv6Prefix) GetLocalPreference() uint32

GetLocalPreference retrieves the value of the leaf LocalPreference from the BgpPeer_UnicastIpv6Prefix 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 LocalPreference is set, it can safely use t.GetLocalPreference() 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.LocalPreference == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix) GetMultiExitDiscriminator added in v0.2.2

func (t *BgpPeer_UnicastIpv6Prefix) GetMultiExitDiscriminator() uint32

GetMultiExitDiscriminator retrieves the value of the leaf MultiExitDiscriminator from the BgpPeer_UnicastIpv6Prefix 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 MultiExitDiscriminator is set, it can safely use t.GetMultiExitDiscriminator() 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.MultiExitDiscriminator == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix) GetNextHopIpv4Address

func (t *BgpPeer_UnicastIpv6Prefix) GetNextHopIpv4Address() string

GetNextHopIpv4Address retrieves the value of the leaf NextHopIpv4Address from the BgpPeer_UnicastIpv6Prefix 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 NextHopIpv4Address is set, it can safely use t.GetNextHopIpv4Address() 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.NextHopIpv4Address == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix) GetNextHopIpv6Address

func (t *BgpPeer_UnicastIpv6Prefix) GetNextHopIpv6Address() string

GetNextHopIpv6Address retrieves the value of the leaf NextHopIpv6Address from the BgpPeer_UnicastIpv6Prefix 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 NextHopIpv6Address is set, it can safely use t.GetNextHopIpv6Address() 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.NextHopIpv6Address == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix) GetOrigin

GetOrigin retrieves the value of the leaf Origin from the BgpPeer_UnicastIpv6Prefix 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 Origin is set, it can safely use t.GetOrigin() 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.Origin == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix) GetPathId

func (t *BgpPeer_UnicastIpv6Prefix) GetPathId() uint32

GetPathId retrieves the value of the leaf PathId from the BgpPeer_UnicastIpv6Prefix 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 PathId is set, it can safely use t.GetPathId() 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.PathId == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix) GetPrefixLength

func (t *BgpPeer_UnicastIpv6Prefix) GetPrefixLength() uint32

GetPrefixLength retrieves the value of the leaf PrefixLength from the BgpPeer_UnicastIpv6Prefix 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 PrefixLength is set, it can safely use t.GetPrefixLength() 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.PrefixLength == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix) IsYANGGoStruct

func (*BgpPeer_UnicastIpv6Prefix) IsYANGGoStruct()

IsYANGGoStruct ensures that BgpPeer_UnicastIpv6Prefix implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv6Prefix) PopulateDefaults

func (t *BgpPeer_UnicastIpv6Prefix) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv6Prefix with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv6Prefix) SetAddress

func (t *BgpPeer_UnicastIpv6Prefix) SetAddress(v string)

SetAddress sets the value of the leaf Address in the BgpPeer_UnicastIpv6Prefix struct.

func (*BgpPeer_UnicastIpv6Prefix) SetLocalPreference added in v0.2.2

func (t *BgpPeer_UnicastIpv6Prefix) SetLocalPreference(v uint32)

SetLocalPreference sets the value of the leaf LocalPreference in the BgpPeer_UnicastIpv6Prefix struct.

func (*BgpPeer_UnicastIpv6Prefix) SetMultiExitDiscriminator added in v0.2.2

func (t *BgpPeer_UnicastIpv6Prefix) SetMultiExitDiscriminator(v uint32)

SetMultiExitDiscriminator sets the value of the leaf MultiExitDiscriminator in the BgpPeer_UnicastIpv6Prefix struct.

func (*BgpPeer_UnicastIpv6Prefix) SetNextHopIpv4Address

func (t *BgpPeer_UnicastIpv6Prefix) SetNextHopIpv4Address(v string)

SetNextHopIpv4Address sets the value of the leaf NextHopIpv4Address in the BgpPeer_UnicastIpv6Prefix struct.

func (*BgpPeer_UnicastIpv6Prefix) SetNextHopIpv6Address

func (t *BgpPeer_UnicastIpv6Prefix) SetNextHopIpv6Address(v string)

SetNextHopIpv6Address sets the value of the leaf NextHopIpv6Address in the BgpPeer_UnicastIpv6Prefix struct.

func (*BgpPeer_UnicastIpv6Prefix) SetOrigin

SetOrigin sets the value of the leaf Origin in the BgpPeer_UnicastIpv6Prefix struct.

func (*BgpPeer_UnicastIpv6Prefix) SetPathId

func (t *BgpPeer_UnicastIpv6Prefix) SetPathId(v uint32)

SetPathId sets the value of the leaf PathId in the BgpPeer_UnicastIpv6Prefix struct.

func (*BgpPeer_UnicastIpv6Prefix) SetPrefixLength

func (t *BgpPeer_UnicastIpv6Prefix) SetPrefixLength(v uint32)

SetPrefixLength sets the value of the leaf PrefixLength in the BgpPeer_UnicastIpv6Prefix struct.

func (*BgpPeer_UnicastIpv6Prefix) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv6Prefix) ΛBelongingModule

func (*BgpPeer_UnicastIpv6Prefix) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv6Prefix.

func (*BgpPeer_UnicastIpv6Prefix) ΛEnumTypeMap

func (t *BgpPeer_UnicastIpv6Prefix) Λ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 (*BgpPeer_UnicastIpv6Prefix) ΛListKeyMap

func (t *BgpPeer_UnicastIpv6Prefix) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the BgpPeer_UnicastIpv6Prefix struct, which is a YANG list entry.

func (*BgpPeer_UnicastIpv6Prefix) ΛValidate

func (t *BgpPeer_UnicastIpv6Prefix) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv6Prefix_AsPath

type BgpPeer_UnicastIpv6Prefix_AsPath struct {
	AsNumbers   []uint32            `path:"as_numbers" module:"open-traffic-generator-bgp"`
	SegmentType E_State_SegmentType `path:"segment-type" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv6Prefix_AsPath represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv6-prefixes/unicast-ipv6-prefix/state/as-path YANG schema element.

func (*BgpPeer_UnicastIpv6Prefix_AsPath) GetAsNumbers

func (t *BgpPeer_UnicastIpv6Prefix_AsPath) GetAsNumbers() []uint32

GetAsNumbers retrieves the value of the leaf AsNumbers from the BgpPeer_UnicastIpv6Prefix_AsPath 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 AsNumbers is set, it can safely use t.GetAsNumbers() 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.AsNumbers == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_AsPath) GetSegmentType

GetSegmentType retrieves the value of the leaf SegmentType from the BgpPeer_UnicastIpv6Prefix_AsPath 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 SegmentType is set, it can safely use t.GetSegmentType() 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.SegmentType == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_AsPath) IsYANGGoStruct

func (*BgpPeer_UnicastIpv6Prefix_AsPath) IsYANGGoStruct()

IsYANGGoStruct ensures that BgpPeer_UnicastIpv6Prefix_AsPath implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv6Prefix_AsPath) PopulateDefaults

func (t *BgpPeer_UnicastIpv6Prefix_AsPath) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv6Prefix_AsPath with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv6Prefix_AsPath) SetAsNumbers

func (t *BgpPeer_UnicastIpv6Prefix_AsPath) SetAsNumbers(v []uint32)

SetAsNumbers sets the value of the leaf AsNumbers in the BgpPeer_UnicastIpv6Prefix_AsPath struct.

func (*BgpPeer_UnicastIpv6Prefix_AsPath) SetSegmentType

SetSegmentType sets the value of the leaf SegmentType in the BgpPeer_UnicastIpv6Prefix_AsPath struct.

func (*BgpPeer_UnicastIpv6Prefix_AsPath) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv6Prefix_AsPath) ΛBelongingModule

func (*BgpPeer_UnicastIpv6Prefix_AsPath) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv6Prefix_AsPath.

func (*BgpPeer_UnicastIpv6Prefix_AsPath) ΛEnumTypeMap

func (t *BgpPeer_UnicastIpv6Prefix_AsPath) Λ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 (*BgpPeer_UnicastIpv6Prefix_AsPath) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv6Prefix_Community

type BgpPeer_UnicastIpv6Prefix_Community struct {
	CommunityType  E_State_CommunityType `path:"community-type" module:"open-traffic-generator-bgp"`
	CustomAsNumber *uint16               `path:"custom-as-number" module:"open-traffic-generator-bgp"`
	CustomAsValue  *uint16               `path:"custom-as-value" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv6Prefix_Community represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv6-prefixes/unicast-ipv6-prefix/state/community YANG schema element.

func (*BgpPeer_UnicastIpv6Prefix_Community) GetCommunityType

GetCommunityType retrieves the value of the leaf CommunityType from the BgpPeer_UnicastIpv6Prefix_Community 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 CommunityType is set, it can safely use t.GetCommunityType() 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.CommunityType == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_Community) GetCustomAsNumber

func (t *BgpPeer_UnicastIpv6Prefix_Community) GetCustomAsNumber() uint16

GetCustomAsNumber retrieves the value of the leaf CustomAsNumber from the BgpPeer_UnicastIpv6Prefix_Community 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 CustomAsNumber is set, it can safely use t.GetCustomAsNumber() 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.CustomAsNumber == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_Community) GetCustomAsValue

func (t *BgpPeer_UnicastIpv6Prefix_Community) GetCustomAsValue() uint16

GetCustomAsValue retrieves the value of the leaf CustomAsValue from the BgpPeer_UnicastIpv6Prefix_Community 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 CustomAsValue is set, it can safely use t.GetCustomAsValue() 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.CustomAsValue == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_Community) IsYANGGoStruct

func (*BgpPeer_UnicastIpv6Prefix_Community) IsYANGGoStruct()

IsYANGGoStruct ensures that BgpPeer_UnicastIpv6Prefix_Community implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv6Prefix_Community) PopulateDefaults

func (t *BgpPeer_UnicastIpv6Prefix_Community) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv6Prefix_Community with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv6Prefix_Community) SetCommunityType

SetCommunityType sets the value of the leaf CommunityType in the BgpPeer_UnicastIpv6Prefix_Community struct.

func (*BgpPeer_UnicastIpv6Prefix_Community) SetCustomAsNumber

func (t *BgpPeer_UnicastIpv6Prefix_Community) SetCustomAsNumber(v uint16)

SetCustomAsNumber sets the value of the leaf CustomAsNumber in the BgpPeer_UnicastIpv6Prefix_Community struct.

func (*BgpPeer_UnicastIpv6Prefix_Community) SetCustomAsValue

func (t *BgpPeer_UnicastIpv6Prefix_Community) SetCustomAsValue(v uint16)

SetCustomAsValue sets the value of the leaf CustomAsValue in the BgpPeer_UnicastIpv6Prefix_Community struct.

func (*BgpPeer_UnicastIpv6Prefix_Community) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv6Prefix_Community) ΛBelongingModule

func (*BgpPeer_UnicastIpv6Prefix_Community) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv6Prefix_Community.

func (*BgpPeer_UnicastIpv6Prefix_Community) ΛEnumTypeMap

func (t *BgpPeer_UnicastIpv6Prefix_Community) Λ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 (*BgpPeer_UnicastIpv6Prefix_Community) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity added in v0.5.8

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity struct {
	Raw        *string                                                 `path:"raw" module:"open-traffic-generator-bgp"`
	Structured *BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured `path:"structured" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv6Prefix_ExtendedCommunity represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv6-prefixes/unicast-ipv6-prefix/state/extended-community YANG schema element.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity) GetOrCreateStructured added in v0.5.8

GetOrCreateStructured retrieves the value of the Structured field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity) GetRaw added in v0.5.8

GetRaw retrieves the value of the leaf Raw from the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity 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 Raw is set, it can safely use t.GetRaw() 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.Raw == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity) GetStructured added in v0.5.8

GetStructured returns the value of the Structured struct pointer from BgpPeer_UnicastIpv6Prefix_ExtendedCommunity. If the receiver or the field Structured is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv6Prefix_ExtendedCommunity implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity) PopulateDefaults added in v0.5.8

func (t *BgpPeer_UnicastIpv6Prefix_ExtendedCommunity) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity) SetRaw added in v0.5.8

SetRaw sets the value of the leaf Raw in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity struct.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv6Prefix_ExtendedCommunity.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured added in v0.5.8

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured struct {
	BgpExtendedCommunityStructuredType E_ExtendedCommunity_BgpExtendedCommunityStructuredType                             `path:"bgp-extended-community-structured_type" module:"open-traffic-generator-bgp"`
	NonTransitive_2OctetAsType         *BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType `path:"non_transitive_2octet_as_type" module:"open-traffic-generator-bgp"`
	Transitive_2OctetAsType            *BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType    `path:"transitive_2octet_as_type" module:"open-traffic-generator-bgp"`
	Transitive_4OctetAsType            *BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType    `path:"transitive_4octet_as_type" module:"open-traffic-generator-bgp"`
	TransitiveIpv4AddressType          *BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType  `path:"transitive_ipv4_address_type" module:"open-traffic-generator-bgp"`
	TransitiveOpaqueType               *BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType       `path:"transitive_opaque_type" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv6-prefixes/unicast-ipv6-prefix/state/extended-community/structured YANG schema element.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured) GetBgpExtendedCommunityStructuredType added in v0.5.8

GetBgpExtendedCommunityStructuredType retrieves the value of the leaf BgpExtendedCommunityStructuredType from the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured 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 BgpExtendedCommunityStructuredType is set, it can safely use t.GetBgpExtendedCommunityStructuredType() 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.BgpExtendedCommunityStructuredType == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured) GetNonTransitive_2OctetAsType added in v0.5.8

GetNonTransitive_2OctetAsType returns the value of the NonTransitive_2OctetAsType struct pointer from BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured. If the receiver or the field NonTransitive_2OctetAsType is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured) GetOrCreateNonTransitive_2OctetAsType added in v0.5.8

GetOrCreateNonTransitive_2OctetAsType retrieves the value of the NonTransitive_2OctetAsType field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured) GetOrCreateTransitiveIpv4AddressType added in v0.5.8

GetOrCreateTransitiveIpv4AddressType retrieves the value of the TransitiveIpv4AddressType field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured) GetOrCreateTransitiveOpaqueType added in v0.5.8

GetOrCreateTransitiveOpaqueType retrieves the value of the TransitiveOpaqueType field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured) GetOrCreateTransitive_2OctetAsType added in v0.5.8

GetOrCreateTransitive_2OctetAsType retrieves the value of the Transitive_2OctetAsType field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured) GetOrCreateTransitive_4OctetAsType added in v0.5.8

GetOrCreateTransitive_4OctetAsType retrieves the value of the Transitive_4OctetAsType field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured) GetTransitiveIpv4AddressType added in v0.5.8

GetTransitiveIpv4AddressType returns the value of the TransitiveIpv4AddressType struct pointer from BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured. If the receiver or the field TransitiveIpv4AddressType is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured) GetTransitiveOpaqueType added in v0.5.8

GetTransitiveOpaqueType returns the value of the TransitiveOpaqueType struct pointer from BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured. If the receiver or the field TransitiveOpaqueType is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured) GetTransitive_2OctetAsType added in v0.5.8

GetTransitive_2OctetAsType returns the value of the Transitive_2OctetAsType struct pointer from BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured. If the receiver or the field Transitive_2OctetAsType is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured) GetTransitive_4OctetAsType added in v0.5.8

GetTransitive_4OctetAsType returns the value of the Transitive_4OctetAsType struct pointer from BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured. If the receiver or the field Transitive_4OctetAsType is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured) SetBgpExtendedCommunityStructuredType added in v0.5.8

SetBgpExtendedCommunityStructuredType sets the value of the leaf BgpExtendedCommunityStructuredType in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured struct.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType added in v0.5.8

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType struct {
	LinkBandwidthSubtype       *BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype `path:"link_bandwidth_subtype" module:"open-traffic-generator-bgp"`
	NonTransitive_2OctetAsType E_Structured_NonTransitive_2OctetAsType                                                                 `path:"non_transitive_2octet_as_type" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv6-prefixes/unicast-ipv6-prefix/state/extended-community/structured/non_transitive_2octet_as_type YANG schema element.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType) GetLinkBandwidthSubtype added in v0.5.8

GetLinkBandwidthSubtype returns the value of the LinkBandwidthSubtype struct pointer from BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType. If the receiver or the field LinkBandwidthSubtype is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType) GetNonTransitive_2OctetAsType added in v0.5.8

GetNonTransitive_2OctetAsType retrieves the value of the leaf NonTransitive_2OctetAsType from the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType 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 NonTransitive_2OctetAsType is set, it can safely use t.GetNonTransitive_2OctetAsType() 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.NonTransitive_2OctetAsType == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType) GetOrCreateLinkBandwidthSubtype added in v0.5.8

GetOrCreateLinkBandwidthSubtype retrieves the value of the LinkBandwidthSubtype field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType) SetNonTransitive_2OctetAsType added in v0.5.8

SetNonTransitive_2OctetAsType sets the value of the leaf NonTransitive_2OctetAsType in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType struct.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype added in v0.5.8

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype struct {
	Bandwidth      Binary  `path:"bandwidth" module:"open-traffic-generator-bgp"`
	Global_2ByteAs *uint16 `path:"global_2byte_as" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv6-prefixes/unicast-ipv6-prefix/state/extended-community/structured/non_transitive_2octet_as_type/link_bandwidth_subtype YANG schema element.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype) GetBandwidth added in v0.5.8

GetBandwidth retrieves the value of the leaf Bandwidth from the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype 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 Bandwidth is set, it can safely use t.GetBandwidth() 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.Bandwidth == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype) GetGlobal_2ByteAs added in v0.5.8

GetGlobal_2ByteAs retrieves the value of the leaf Global_2ByteAs from the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype 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 Global_2ByteAs is set, it can safely use t.GetGlobal_2ByteAs() 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.Global_2ByteAs == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype) SetBandwidth added in v0.5.8

SetBandwidth sets the value of the leaf Bandwidth in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype struct.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype) SetGlobal_2ByteAs added in v0.5.8

SetGlobal_2ByteAs sets the value of the leaf Global_2ByteAs in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype struct.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_NonTransitive_2OctetAsType_LinkBandwidthSubtype) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType added in v0.5.8

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType struct {
	RouteOriginSubtype        *BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype `path:"route_origin_subtype" module:"open-traffic-generator-bgp"`
	RouteTargetSubtype        *BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype `path:"route_target_subtype" module:"open-traffic-generator-bgp"`
	TransitiveIpv4AddressType E_Structured_TransitiveIpv4AddressType                                                               `path:"transitive_ipv4_address_type" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv6-prefixes/unicast-ipv6-prefix/state/extended-community/structured/transitive_ipv4_address_type YANG schema element.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType) GetOrCreateRouteOriginSubtype added in v0.5.8

GetOrCreateRouteOriginSubtype retrieves the value of the RouteOriginSubtype field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType) GetOrCreateRouteTargetSubtype added in v0.5.8

GetOrCreateRouteTargetSubtype retrieves the value of the RouteTargetSubtype field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType) GetRouteOriginSubtype added in v0.5.8

GetRouteOriginSubtype returns the value of the RouteOriginSubtype struct pointer from BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType. If the receiver or the field RouteOriginSubtype is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType) GetRouteTargetSubtype added in v0.5.8

GetRouteTargetSubtype returns the value of the RouteTargetSubtype struct pointer from BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType. If the receiver or the field RouteTargetSubtype is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType) GetTransitiveIpv4AddressType added in v0.5.8

GetTransitiveIpv4AddressType retrieves the value of the leaf TransitiveIpv4AddressType from the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType 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 TransitiveIpv4AddressType is set, it can safely use t.GetTransitiveIpv4AddressType() 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.TransitiveIpv4AddressType == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType) SetTransitiveIpv4AddressType added in v0.5.8

SetTransitiveIpv4AddressType sets the value of the leaf TransitiveIpv4AddressType in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType struct.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype added in v0.5.8

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype struct {
	GlobalIpv4Admin  *string `path:"global_ipv4_admin" module:"open-traffic-generator-bgp"`
	Local_2ByteAdmin *uint16 `path:"local_2byte_admin" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv6-prefixes/unicast-ipv6-prefix/state/extended-community/structured/transitive_ipv4_address_type/route_origin_subtype YANG schema element.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype) GetGlobalIpv4Admin added in v0.5.8

GetGlobalIpv4Admin retrieves the value of the leaf GlobalIpv4Admin from the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype 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 GlobalIpv4Admin is set, it can safely use t.GetGlobalIpv4Admin() 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.GlobalIpv4Admin == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype) GetLocal_2ByteAdmin added in v0.5.8

GetLocal_2ByteAdmin retrieves the value of the leaf Local_2ByteAdmin from the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype 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 Local_2ByteAdmin is set, it can safely use t.GetLocal_2ByteAdmin() 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.Local_2ByteAdmin == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype) SetGlobalIpv4Admin added in v0.5.8

SetGlobalIpv4Admin sets the value of the leaf GlobalIpv4Admin in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype struct.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype) SetLocal_2ByteAdmin added in v0.5.8

SetLocal_2ByteAdmin sets the value of the leaf Local_2ByteAdmin in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype struct.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteOriginSubtype) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype added in v0.5.8

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype struct {
	GlobalIpv4Admin  *string `path:"global_ipv4_admin" module:"open-traffic-generator-bgp"`
	Local_2ByteAdmin *uint16 `path:"local_2byte_admin" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv6-prefixes/unicast-ipv6-prefix/state/extended-community/structured/transitive_ipv4_address_type/route_target_subtype YANG schema element.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype) GetGlobalIpv4Admin added in v0.5.8

GetGlobalIpv4Admin retrieves the value of the leaf GlobalIpv4Admin from the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype 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 GlobalIpv4Admin is set, it can safely use t.GetGlobalIpv4Admin() 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.GlobalIpv4Admin == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype) GetLocal_2ByteAdmin added in v0.5.8

GetLocal_2ByteAdmin retrieves the value of the leaf Local_2ByteAdmin from the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype 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 Local_2ByteAdmin is set, it can safely use t.GetLocal_2ByteAdmin() 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.Local_2ByteAdmin == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype) SetGlobalIpv4Admin added in v0.5.8

SetGlobalIpv4Admin sets the value of the leaf GlobalIpv4Admin in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype struct.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype) SetLocal_2ByteAdmin added in v0.5.8

SetLocal_2ByteAdmin sets the value of the leaf Local_2ByteAdmin in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype struct.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveIpv4AddressType_RouteTargetSubtype) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType added in v0.5.8

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType struct {
	ColorSubtype         *BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype         `path:"color_subtype" module:"open-traffic-generator-bgp"`
	EncapsulationSubtype *BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype `path:"encapsulation_subtype" module:"open-traffic-generator-bgp"`
	TransitiveOpaqueType E_Structured_TransitiveOpaqueType                                                                 `path:"transitive_opaque_type" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv6-prefixes/unicast-ipv6-prefix/state/extended-community/structured/transitive_opaque_type YANG schema element.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType) GetColorSubtype added in v0.5.8

GetColorSubtype returns the value of the ColorSubtype struct pointer from BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType. If the receiver or the field ColorSubtype is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType) GetEncapsulationSubtype added in v0.5.8

GetEncapsulationSubtype returns the value of the EncapsulationSubtype struct pointer from BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType. If the receiver or the field EncapsulationSubtype is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType) GetOrCreateColorSubtype added in v0.5.8

GetOrCreateColorSubtype retrieves the value of the ColorSubtype field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType) GetOrCreateEncapsulationSubtype added in v0.5.8

GetOrCreateEncapsulationSubtype retrieves the value of the EncapsulationSubtype field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType) GetTransitiveOpaqueType added in v0.5.8

GetTransitiveOpaqueType retrieves the value of the leaf TransitiveOpaqueType from the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType 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 TransitiveOpaqueType is set, it can safely use t.GetTransitiveOpaqueType() 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.TransitiveOpaqueType == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType) SetTransitiveOpaqueType added in v0.5.8

SetTransitiveOpaqueType sets the value of the leaf TransitiveOpaqueType in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType struct.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype added in v0.5.8

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype struct {
	Color *uint32 `path:"color" module:"open-traffic-generator-bgp"`
	Flags *uint16 `path:"flags" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv6-prefixes/unicast-ipv6-prefix/state/extended-community/structured/transitive_opaque_type/color_subtype YANG schema element.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype) GetColor added in v0.5.8

GetColor retrieves the value of the leaf Color from the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype 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 (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype) GetFlags added in v0.5.8

GetFlags retrieves the value of the leaf Flags from the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype 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 Flags is set, it can safely use t.GetFlags() 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.Flags == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype) SetColor added in v0.5.8

SetColor sets the value of the leaf Color in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype struct.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype) SetFlags added in v0.5.8

SetFlags sets the value of the leaf Flags in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype struct.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_ColorSubtype) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype added in v0.5.8

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype struct {
	Reserved   *uint32 `path:"reserved" module:"open-traffic-generator-bgp"`
	TunnelType *uint16 `path:"tunnel_type" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv6-prefixes/unicast-ipv6-prefix/state/extended-community/structured/transitive_opaque_type/encapsulation_subtype YANG schema element.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype) GetReserved added in v0.5.8

GetReserved retrieves the value of the leaf Reserved from the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype 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 Reserved is set, it can safely use t.GetReserved() 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.Reserved == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype) GetTunnelType added in v0.5.8

GetTunnelType retrieves the value of the leaf TunnelType from the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype 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 TunnelType is set, it can safely use t.GetTunnelType() 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.TunnelType == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype) SetReserved added in v0.5.8

SetReserved sets the value of the leaf Reserved in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype struct.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype) SetTunnelType added in v0.5.8

SetTunnelType sets the value of the leaf TunnelType in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype struct.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_TransitiveOpaqueType_EncapsulationSubtype) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType added in v0.5.8

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType struct {
	RouteOriginSubtype      *BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype `path:"route_origin_subtype" module:"open-traffic-generator-bgp"`
	RouteTargetSubtype      *BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype `path:"route_target_subtype" module:"open-traffic-generator-bgp"`
	Transitive_2OctetAsType E_Structured_Transitive_2OctetAsType                                                               `path:"transitive_2octet_as_type" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv6-prefixes/unicast-ipv6-prefix/state/extended-community/structured/transitive_2octet_as_type YANG schema element.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType) GetOrCreateRouteOriginSubtype added in v0.5.8

GetOrCreateRouteOriginSubtype retrieves the value of the RouteOriginSubtype field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType) GetOrCreateRouteTargetSubtype added in v0.5.8

GetOrCreateRouteTargetSubtype retrieves the value of the RouteTargetSubtype field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType) GetRouteOriginSubtype added in v0.5.8

GetRouteOriginSubtype returns the value of the RouteOriginSubtype struct pointer from BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType. If the receiver or the field RouteOriginSubtype is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType) GetRouteTargetSubtype added in v0.5.8

GetRouteTargetSubtype returns the value of the RouteTargetSubtype struct pointer from BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType. If the receiver or the field RouteTargetSubtype is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType) GetTransitive_2OctetAsType added in v0.5.8

GetTransitive_2OctetAsType retrieves the value of the leaf Transitive_2OctetAsType from the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType 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 Transitive_2OctetAsType is set, it can safely use t.GetTransitive_2OctetAsType() 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.Transitive_2OctetAsType == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType) SetTransitive_2OctetAsType added in v0.5.8

SetTransitive_2OctetAsType sets the value of the leaf Transitive_2OctetAsType in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType struct.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype added in v0.5.8

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype struct {
	Global_2ByteAs   *uint16 `path:"global_2byte_as" module:"open-traffic-generator-bgp"`
	Local_4ByteAdmin *uint32 `path:"local_4byte_admin" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv6-prefixes/unicast-ipv6-prefix/state/extended-community/structured/transitive_2octet_as_type/route_origin_subtype YANG schema element.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype) GetGlobal_2ByteAs added in v0.5.8

GetGlobal_2ByteAs retrieves the value of the leaf Global_2ByteAs from the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype 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 Global_2ByteAs is set, it can safely use t.GetGlobal_2ByteAs() 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.Global_2ByteAs == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype) GetLocal_4ByteAdmin added in v0.5.8

GetLocal_4ByteAdmin retrieves the value of the leaf Local_4ByteAdmin from the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype 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 Local_4ByteAdmin is set, it can safely use t.GetLocal_4ByteAdmin() 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.Local_4ByteAdmin == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype) SetGlobal_2ByteAs added in v0.5.8

SetGlobal_2ByteAs sets the value of the leaf Global_2ByteAs in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype struct.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype) SetLocal_4ByteAdmin added in v0.5.8

SetLocal_4ByteAdmin sets the value of the leaf Local_4ByteAdmin in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype struct.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteOriginSubtype) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype added in v0.5.8

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype struct {
	Global_2ByteAs   *uint16 `path:"global_2byte_as" module:"open-traffic-generator-bgp"`
	Local_4ByteAdmin *uint32 `path:"local_4byte_admin" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv6-prefixes/unicast-ipv6-prefix/state/extended-community/structured/transitive_2octet_as_type/route_target_subtype YANG schema element.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype) GetGlobal_2ByteAs added in v0.5.8

GetGlobal_2ByteAs retrieves the value of the leaf Global_2ByteAs from the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype 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 Global_2ByteAs is set, it can safely use t.GetGlobal_2ByteAs() 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.Global_2ByteAs == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype) GetLocal_4ByteAdmin added in v0.5.8

GetLocal_4ByteAdmin retrieves the value of the leaf Local_4ByteAdmin from the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype 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 Local_4ByteAdmin is set, it can safely use t.GetLocal_4ByteAdmin() 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.Local_4ByteAdmin == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype) SetGlobal_2ByteAs added in v0.5.8

SetGlobal_2ByteAs sets the value of the leaf Global_2ByteAs in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype struct.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype) SetLocal_4ByteAdmin added in v0.5.8

SetLocal_4ByteAdmin sets the value of the leaf Local_4ByteAdmin in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype struct.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_2OctetAsType_RouteTargetSubtype) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType added in v0.5.8

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType struct {
	RouteOriginSubtype      *BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype `path:"route_origin_subtype" module:"open-traffic-generator-bgp"`
	RouteTargetSubtype      *BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype `path:"route_target_subtype" module:"open-traffic-generator-bgp"`
	Transitive_4OctetAsType E_Structured_Transitive_4OctetAsType                                                               `path:"transitive_4octet_as_type" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv6-prefixes/unicast-ipv6-prefix/state/extended-community/structured/transitive_4octet_as_type YANG schema element.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType) GetOrCreateRouteOriginSubtype added in v0.5.8

GetOrCreateRouteOriginSubtype retrieves the value of the RouteOriginSubtype field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType) GetOrCreateRouteTargetSubtype added in v0.5.8

GetOrCreateRouteTargetSubtype retrieves the value of the RouteTargetSubtype field or returns the existing field if it already exists.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType) GetRouteOriginSubtype added in v0.5.8

GetRouteOriginSubtype returns the value of the RouteOriginSubtype struct pointer from BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType. If the receiver or the field RouteOriginSubtype is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType) GetRouteTargetSubtype added in v0.5.8

GetRouteTargetSubtype returns the value of the RouteTargetSubtype struct pointer from BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType. If the receiver or the field RouteTargetSubtype is nil, nil is returned such that the Get* methods can be safely chained.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType) GetTransitive_4OctetAsType added in v0.5.8

GetTransitive_4OctetAsType retrieves the value of the leaf Transitive_4OctetAsType from the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType 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 Transitive_4OctetAsType is set, it can safely use t.GetTransitive_4OctetAsType() 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.Transitive_4OctetAsType == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType) SetTransitive_4OctetAsType added in v0.5.8

SetTransitive_4OctetAsType sets the value of the leaf Transitive_4OctetAsType in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType struct.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype added in v0.5.8

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype struct {
	Global_4ByteAs   *uint32 `path:"global_4byte_as" module:"open-traffic-generator-bgp"`
	Local_2ByteAdmin *uint16 `path:"local_2byte_admin" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv6-prefixes/unicast-ipv6-prefix/state/extended-community/structured/transitive_4octet_as_type/route_origin_subtype YANG schema element.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype) GetGlobal_4ByteAs added in v0.5.8

GetGlobal_4ByteAs retrieves the value of the leaf Global_4ByteAs from the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype 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 Global_4ByteAs is set, it can safely use t.GetGlobal_4ByteAs() 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.Global_4ByteAs == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype) GetLocal_2ByteAdmin added in v0.5.8

GetLocal_2ByteAdmin retrieves the value of the leaf Local_2ByteAdmin from the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype 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 Local_2ByteAdmin is set, it can safely use t.GetLocal_2ByteAdmin() 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.Local_2ByteAdmin == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype) SetGlobal_4ByteAs added in v0.5.8

SetGlobal_4ByteAs sets the value of the leaf Global_4ByteAs in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype struct.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype) SetLocal_2ByteAdmin added in v0.5.8

SetLocal_2ByteAdmin sets the value of the leaf Local_2ByteAdmin in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype struct.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteOriginSubtype) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype added in v0.5.8

type BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype struct {
	Global_4ByteAs   *uint32 `path:"global_4byte_as" module:"open-traffic-generator-bgp"`
	Local_2ByteAdmin *uint16 `path:"local_2byte_admin" module:"open-traffic-generator-bgp"`
}

BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype represents the /open-traffic-generator-bgp/bgp-peers/bgp-peer/unicast-ipv6-prefixes/unicast-ipv6-prefix/state/extended-community/structured/transitive_4octet_as_type/route_target_subtype YANG schema element.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype) GetGlobal_4ByteAs added in v0.5.8

GetGlobal_4ByteAs retrieves the value of the leaf Global_4ByteAs from the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype 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 Global_4ByteAs is set, it can safely use t.GetGlobal_4ByteAs() 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.Global_4ByteAs == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype) GetLocal_2ByteAdmin added in v0.5.8

GetLocal_2ByteAdmin retrieves the value of the leaf Local_2ByteAdmin from the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype 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 Local_2ByteAdmin is set, it can safely use t.GetLocal_2ByteAdmin() 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.Local_2ByteAdmin == nil' before retrieving the leaf's value.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype) IsYANGGoStruct added in v0.5.8

IsYANGGoStruct ensures that BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype) PopulateDefaults added in v0.5.8

PopulateDefaults recursively populates unset leaf fields in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype with default values as specified in the YANG schema, instantiating any nil container fields.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype) SetGlobal_4ByteAs added in v0.5.8

SetGlobal_4ByteAs sets the value of the leaf Global_4ByteAs in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype struct.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype) SetLocal_2ByteAdmin added in v0.5.8

SetLocal_2ByteAdmin sets the value of the leaf Local_2ByteAdmin in the BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype struct.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype) Validate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype) ΛBelongingModule added in v0.5.8

ΛBelongingModule returns the name of the module that defines the namespace of BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype) ΛEnumTypeMap added in v0.5.8

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*BgpPeer_UnicastIpv6Prefix_ExtendedCommunity_Structured_Transitive_4OctetAsType_RouteTargetSubtype) ΛValidate added in v0.5.8

Validate validates s against the YANG schema corresponding to its type.

type BgpPeer_UnicastIpv6Prefix_Key

type BgpPeer_UnicastIpv6Prefix_Key struct {
	Address      string                     `path:"address"`
	PrefixLength uint32                     `path:"prefix-length"`
	Origin       E_UnicastIpv6Prefix_Origin `path:"origin"`
	PathId       uint32                     `path:"path-id"`
}

BgpPeer_UnicastIpv6Prefix_Key represents the key for list UnicastIpv6Prefix of element /open-traffic-generator-bgp/bgp-peers/bgp-peer.

func (BgpPeer_UnicastIpv6Prefix_Key) IsYANGGoKeyStruct

func (BgpPeer_UnicastIpv6Prefix_Key) IsYANGGoKeyStruct()

IsYANGGoKeyStruct ensures that BgpPeer_UnicastIpv6Prefix_Key partially implements the yang.GoKeyStruct interface. This allows functions that need to handle this key struct to identify it as being generated by gogen.

func (BgpPeer_UnicastIpv6Prefix_Key) ΛListKeyMap

func (t BgpPeer_UnicastIpv6Prefix_Key) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the values of the BgpPeer_UnicastIpv6Prefix_Key key struct.

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 Component added in v0.7.1

type Component struct {
	Name            E_Component_Name `` /* 194-byte string literal not displayed */
	SdkVersion      *string          `path:"state/sdk-version" module:"open-traffic-generator-platform/open-traffic-generator-platform"`
	SoftwareVersion *string          `path:"state/software-version" module:"open-traffic-generator-platform/open-traffic-generator-platform"`
}

Component represents the /open-traffic-generator-platform/components/component YANG schema element.

func (*Component) GetName added in v0.7.1

func (t *Component) GetName() E_Component_Name

GetName retrieves the value of the leaf Name from the Component 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 (*Component) GetSdkVersion added in v0.7.1

func (t *Component) GetSdkVersion() string

GetSdkVersion retrieves the value of the leaf SdkVersion from the Component 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 SdkVersion is set, it can safely use t.GetSdkVersion() 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.SdkVersion == nil' before retrieving the leaf's value.

func (*Component) GetSoftwareVersion added in v0.7.1

func (t *Component) GetSoftwareVersion() string

GetSoftwareVersion retrieves the value of the leaf SoftwareVersion from the Component 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 SoftwareVersion is set, it can safely use t.GetSoftwareVersion() 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.SoftwareVersion == nil' before retrieving the leaf's value.

func (*Component) IsYANGGoStruct added in v0.7.1

func (*Component) IsYANGGoStruct()

IsYANGGoStruct ensures that Component implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Component) PopulateDefaults added in v0.7.1

func (t *Component) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Component with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Component) SetName added in v0.7.1

func (t *Component) SetName(v E_Component_Name)

SetName sets the value of the leaf Name in the Component struct.

func (*Component) SetSdkVersion added in v0.7.1

func (t *Component) SetSdkVersion(v string)

SetSdkVersion sets the value of the leaf SdkVersion in the Component struct.

func (*Component) SetSoftwareVersion added in v0.7.1

func (t *Component) SetSoftwareVersion(v string)

SetSoftwareVersion sets the value of the leaf SoftwareVersion in the Component struct.

func (*Component) Validate added in v0.7.1

func (t *Component) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Component) ΛBelongingModule added in v0.7.1

func (*Component) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Component.

func (*Component) ΛEnumTypeMap added in v0.7.1

func (t *Component) Λ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 (*Component) ΛListKeyMap added in v0.7.1

func (t *Component) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Component struct, which is a YANG list entry.

func (*Component) ΛValidate added in v0.7.1

func (t *Component) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Dhcpv4Client added in v0.7.1

type Dhcpv4Client struct {
	Counters  *Dhcpv4Client_Counters  `path:"state/counters" module:"open-traffic-generator-dhcpv4client/open-traffic-generator-dhcpv4client"`
	Interface *Dhcpv4Client_Interface `path:"state/interface" module:"open-traffic-generator-dhcpv4client/open-traffic-generator-dhcpv4client"`
	Name      *string                 `` /* 210-byte string literal not displayed */
}

Dhcpv4Client represents the /open-traffic-generator-dhcpv4client/dhcpv4-clients/dhcpv4-client YANG schema element.

func (*Dhcpv4Client) GetCounters added in v0.7.1

func (t *Dhcpv4Client) GetCounters() *Dhcpv4Client_Counters

GetCounters returns the value of the Counters struct pointer from Dhcpv4Client. If the receiver or the field Counters is nil, nil is returned such that the Get* methods can be safely chained.

func (*Dhcpv4Client) GetInterface added in v0.7.1

func (t *Dhcpv4Client) GetInterface() *Dhcpv4Client_Interface

GetInterface returns the value of the Interface struct pointer from Dhcpv4Client. If the receiver or the field Interface is nil, nil is returned such that the Get* methods can be safely chained.

func (*Dhcpv4Client) GetName added in v0.7.1

func (t *Dhcpv4Client) GetName() string

GetName retrieves the value of the leaf Name from the Dhcpv4Client 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 (*Dhcpv4Client) GetOrCreateCounters added in v0.7.1

func (t *Dhcpv4Client) GetOrCreateCounters() *Dhcpv4Client_Counters

GetOrCreateCounters retrieves the value of the Counters field or returns the existing field if it already exists.

func (*Dhcpv4Client) GetOrCreateInterface added in v0.7.1

func (t *Dhcpv4Client) GetOrCreateInterface() *Dhcpv4Client_Interface

GetOrCreateInterface retrieves the value of the Interface field or returns the existing field if it already exists.

func (*Dhcpv4Client) IsYANGGoStruct added in v0.7.1

func (*Dhcpv4Client) IsYANGGoStruct()

IsYANGGoStruct ensures that Dhcpv4Client implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Dhcpv4Client) PopulateDefaults added in v0.7.1

func (t *Dhcpv4Client) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Dhcpv4Client with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Dhcpv4Client) SetName added in v0.7.1

func (t *Dhcpv4Client) SetName(v string)

SetName sets the value of the leaf Name in the Dhcpv4Client struct.

func (*Dhcpv4Client) Validate added in v0.7.1

func (t *Dhcpv4Client) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Dhcpv4Client) ΛBelongingModule added in v0.7.1

func (*Dhcpv4Client) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Dhcpv4Client.

func (*Dhcpv4Client) ΛEnumTypeMap added in v0.7.1

func (t *Dhcpv4Client) Λ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 (*Dhcpv4Client) ΛListKeyMap added in v0.7.1

func (t *Dhcpv4Client) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Dhcpv4Client struct, which is a YANG list entry.

func (*Dhcpv4Client) ΛValidate added in v0.7.1

func (t *Dhcpv4Client) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Dhcpv4Client_Counters added in v0.7.1

type Dhcpv4Client_Counters struct {
	AcksReceived   *uint64 `path:"acks-received" module:"open-traffic-generator-dhcpv4client"`
	DeclinesSent   *uint64 `path:"declines-sent" module:"open-traffic-generator-dhcpv4client"`
	DiscoversSent  *uint64 `path:"discovers-sent" module:"open-traffic-generator-dhcpv4client"`
	NacksReceived  *uint64 `path:"nacks-received" module:"open-traffic-generator-dhcpv4client"`
	OffersReceived *uint64 `path:"offers-received" module:"open-traffic-generator-dhcpv4client"`
	ReleasesSent   *uint64 `path:"releases-sent" module:"open-traffic-generator-dhcpv4client"`
	RequestsSent   *uint64 `path:"requests-sent" module:"open-traffic-generator-dhcpv4client"`
}

Dhcpv4Client_Counters represents the /open-traffic-generator-dhcpv4client/dhcpv4-clients/dhcpv4-client/state/counters YANG schema element.

func (*Dhcpv4Client_Counters) GetAcksReceived added in v0.7.1

func (t *Dhcpv4Client_Counters) GetAcksReceived() uint64

GetAcksReceived retrieves the value of the leaf AcksReceived from the Dhcpv4Client_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 AcksReceived is set, it can safely use t.GetAcksReceived() 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.AcksReceived == nil' before retrieving the leaf's value.

func (*Dhcpv4Client_Counters) GetDeclinesSent added in v0.7.1

func (t *Dhcpv4Client_Counters) GetDeclinesSent() uint64

GetDeclinesSent retrieves the value of the leaf DeclinesSent from the Dhcpv4Client_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 DeclinesSent is set, it can safely use t.GetDeclinesSent() 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.DeclinesSent == nil' before retrieving the leaf's value.

func (*Dhcpv4Client_Counters) GetDiscoversSent added in v0.7.1

func (t *Dhcpv4Client_Counters) GetDiscoversSent() uint64

GetDiscoversSent retrieves the value of the leaf DiscoversSent from the Dhcpv4Client_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 DiscoversSent is set, it can safely use t.GetDiscoversSent() 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.DiscoversSent == nil' before retrieving the leaf's value.

func (*Dhcpv4Client_Counters) GetNacksReceived added in v0.7.1

func (t *Dhcpv4Client_Counters) GetNacksReceived() uint64

GetNacksReceived retrieves the value of the leaf NacksReceived from the Dhcpv4Client_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 NacksReceived is set, it can safely use t.GetNacksReceived() 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.NacksReceived == nil' before retrieving the leaf's value.

func (*Dhcpv4Client_Counters) GetOffersReceived added in v0.7.1

func (t *Dhcpv4Client_Counters) GetOffersReceived() uint64

GetOffersReceived retrieves the value of the leaf OffersReceived from the Dhcpv4Client_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 OffersReceived is set, it can safely use t.GetOffersReceived() 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.OffersReceived == nil' before retrieving the leaf's value.

func (*Dhcpv4Client_Counters) GetReleasesSent added in v0.7.1

func (t *Dhcpv4Client_Counters) GetReleasesSent() uint64

GetReleasesSent retrieves the value of the leaf ReleasesSent from the Dhcpv4Client_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 ReleasesSent is set, it can safely use t.GetReleasesSent() 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.ReleasesSent == nil' before retrieving the leaf's value.

func (*Dhcpv4Client_Counters) GetRequestsSent added in v0.7.1

func (t *Dhcpv4Client_Counters) GetRequestsSent() uint64

GetRequestsSent retrieves the value of the leaf RequestsSent from the Dhcpv4Client_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 RequestsSent is set, it can safely use t.GetRequestsSent() 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.RequestsSent == nil' before retrieving the leaf's value.

func (*Dhcpv4Client_Counters) IsYANGGoStruct added in v0.7.1

func (*Dhcpv4Client_Counters) IsYANGGoStruct()

IsYANGGoStruct ensures that Dhcpv4Client_Counters implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Dhcpv4Client_Counters) PopulateDefaults added in v0.7.1

func (t *Dhcpv4Client_Counters) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Dhcpv4Client_Counters with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Dhcpv4Client_Counters) SetAcksReceived added in v0.7.1

func (t *Dhcpv4Client_Counters) SetAcksReceived(v uint64)

SetAcksReceived sets the value of the leaf AcksReceived in the Dhcpv4Client_Counters struct.

func (*Dhcpv4Client_Counters) SetDeclinesSent added in v0.7.1

func (t *Dhcpv4Client_Counters) SetDeclinesSent(v uint64)

SetDeclinesSent sets the value of the leaf DeclinesSent in the Dhcpv4Client_Counters struct.

func (*Dhcpv4Client_Counters) SetDiscoversSent added in v0.7.1

func (t *Dhcpv4Client_Counters) SetDiscoversSent(v uint64)

SetDiscoversSent sets the value of the leaf DiscoversSent in the Dhcpv4Client_Counters struct.

func (*Dhcpv4Client_Counters) SetNacksReceived added in v0.7.1

func (t *Dhcpv4Client_Counters) SetNacksReceived(v uint64)

SetNacksReceived sets the value of the leaf NacksReceived in the Dhcpv4Client_Counters struct.

func (*Dhcpv4Client_Counters) SetOffersReceived added in v0.7.1

func (t *Dhcpv4Client_Counters) SetOffersReceived(v uint64)

SetOffersReceived sets the value of the leaf OffersReceived in the Dhcpv4Client_Counters struct.

func (*Dhcpv4Client_Counters) SetReleasesSent added in v0.7.1

func (t *Dhcpv4Client_Counters) SetReleasesSent(v uint64)

SetReleasesSent sets the value of the leaf ReleasesSent in the Dhcpv4Client_Counters struct.

func (*Dhcpv4Client_Counters) SetRequestsSent added in v0.7.1

func (t *Dhcpv4Client_Counters) SetRequestsSent(v uint64)

SetRequestsSent sets the value of the leaf RequestsSent in the Dhcpv4Client_Counters struct.

func (*Dhcpv4Client_Counters) Validate added in v0.7.1

func (t *Dhcpv4Client_Counters) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Dhcpv4Client_Counters) ΛBelongingModule added in v0.7.1

func (*Dhcpv4Client_Counters) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Dhcpv4Client_Counters.

func (*Dhcpv4Client_Counters) ΛEnumTypeMap added in v0.7.1

func (t *Dhcpv4Client_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 (*Dhcpv4Client_Counters) ΛValidate added in v0.7.1

func (t *Dhcpv4Client_Counters) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Dhcpv4Client_Interface added in v0.7.1

type Dhcpv4Client_Interface struct {
	Address        *string `path:"address" module:"open-traffic-generator-dhcpv4client"`
	GatewayAddress *string `path:"gateway_address" module:"open-traffic-generator-dhcpv4client"`
	LeaseTime      *uint32 `path:"lease_time" module:"open-traffic-generator-dhcpv4client"`
	PrefixLength   *uint32 `path:"prefix-length" module:"open-traffic-generator-dhcpv4client"`
	RebindTime     *uint32 `path:"rebind_time" module:"open-traffic-generator-dhcpv4client"`
	RenewTime      *uint32 `path:"renew_time" module:"open-traffic-generator-dhcpv4client"`
}

Dhcpv4Client_Interface represents the /open-traffic-generator-dhcpv4client/dhcpv4-clients/dhcpv4-client/state/interface YANG schema element.

func (*Dhcpv4Client_Interface) GetAddress added in v0.7.1

func (t *Dhcpv4Client_Interface) GetAddress() string

GetAddress retrieves the value of the leaf Address from the Dhcpv4Client_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 Address is set, it can safely use t.GetAddress() 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.Address == nil' before retrieving the leaf's value.

func (*Dhcpv4Client_Interface) GetGatewayAddress added in v0.7.1

func (t *Dhcpv4Client_Interface) GetGatewayAddress() string

GetGatewayAddress retrieves the value of the leaf GatewayAddress from the Dhcpv4Client_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 GatewayAddress is set, it can safely use t.GetGatewayAddress() 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.GatewayAddress == nil' before retrieving the leaf's value.

func (*Dhcpv4Client_Interface) GetLeaseTime added in v0.7.1

func (t *Dhcpv4Client_Interface) GetLeaseTime() uint32

GetLeaseTime retrieves the value of the leaf LeaseTime from the Dhcpv4Client_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 LeaseTime is set, it can safely use t.GetLeaseTime() 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.LeaseTime == nil' before retrieving the leaf's value.

func (*Dhcpv4Client_Interface) GetPrefixLength added in v0.7.1

func (t *Dhcpv4Client_Interface) GetPrefixLength() uint32

GetPrefixLength retrieves the value of the leaf PrefixLength from the Dhcpv4Client_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 PrefixLength is set, it can safely use t.GetPrefixLength() 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.PrefixLength == nil' before retrieving the leaf's value.

func (*Dhcpv4Client_Interface) GetRebindTime added in v0.7.1

func (t *Dhcpv4Client_Interface) GetRebindTime() uint32

GetRebindTime retrieves the value of the leaf RebindTime from the Dhcpv4Client_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 RebindTime is set, it can safely use t.GetRebindTime() 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.RebindTime == nil' before retrieving the leaf's value.

func (*Dhcpv4Client_Interface) GetRenewTime added in v0.7.1

func (t *Dhcpv4Client_Interface) GetRenewTime() uint32

GetRenewTime retrieves the value of the leaf RenewTime from the Dhcpv4Client_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 RenewTime is set, it can safely use t.GetRenewTime() 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.RenewTime == nil' before retrieving the leaf's value.

func (*Dhcpv4Client_Interface) IsYANGGoStruct added in v0.7.1

func (*Dhcpv4Client_Interface) IsYANGGoStruct()

IsYANGGoStruct ensures that Dhcpv4Client_Interface implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Dhcpv4Client_Interface) PopulateDefaults added in v0.7.1

func (t *Dhcpv4Client_Interface) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Dhcpv4Client_Interface with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Dhcpv4Client_Interface) SetAddress added in v0.7.1

func (t *Dhcpv4Client_Interface) SetAddress(v string)

SetAddress sets the value of the leaf Address in the Dhcpv4Client_Interface struct.

func (*Dhcpv4Client_Interface) SetGatewayAddress added in v0.7.1

func (t *Dhcpv4Client_Interface) SetGatewayAddress(v string)

SetGatewayAddress sets the value of the leaf GatewayAddress in the Dhcpv4Client_Interface struct.

func (*Dhcpv4Client_Interface) SetLeaseTime added in v0.7.1

func (t *Dhcpv4Client_Interface) SetLeaseTime(v uint32)

SetLeaseTime sets the value of the leaf LeaseTime in the Dhcpv4Client_Interface struct.

func (*Dhcpv4Client_Interface) SetPrefixLength added in v0.7.1

func (t *Dhcpv4Client_Interface) SetPrefixLength(v uint32)

SetPrefixLength sets the value of the leaf PrefixLength in the Dhcpv4Client_Interface struct.

func (*Dhcpv4Client_Interface) SetRebindTime added in v0.7.1

func (t *Dhcpv4Client_Interface) SetRebindTime(v uint32)

SetRebindTime sets the value of the leaf RebindTime in the Dhcpv4Client_Interface struct.

func (*Dhcpv4Client_Interface) SetRenewTime added in v0.7.1

func (t *Dhcpv4Client_Interface) SetRenewTime(v uint32)

SetRenewTime sets the value of the leaf RenewTime in the Dhcpv4Client_Interface struct.

func (*Dhcpv4Client_Interface) Validate added in v0.7.1

func (t *Dhcpv4Client_Interface) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Dhcpv4Client_Interface) ΛBelongingModule added in v0.7.1

func (*Dhcpv4Client_Interface) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Dhcpv4Client_Interface.

func (*Dhcpv4Client_Interface) ΛEnumTypeMap added in v0.7.1

func (t *Dhcpv4Client_Interface) Λ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 (*Dhcpv4Client_Interface) ΛValidate added in v0.7.1

func (t *Dhcpv4Client_Interface) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Dhcpv4Server added in v0.7.1

type Dhcpv4Server struct {
	Counters *Dhcpv4Server_Counters `path:"state/counters" module:"open-traffic-generator-dhcpv4server/open-traffic-generator-dhcpv4server"`
	Leases   *Dhcpv4Server_Leases   `path:"state/leases" module:"open-traffic-generator-dhcpv4server/open-traffic-generator-dhcpv4server"`
	Name     *string                `` /* 210-byte string literal not displayed */
}

Dhcpv4Server represents the /open-traffic-generator-dhcpv4server/dhcpv4-servers/dhcpv4-server YANG schema element.

func (*Dhcpv4Server) GetCounters added in v0.7.1

func (t *Dhcpv4Server) GetCounters() *Dhcpv4Server_Counters

GetCounters returns the value of the Counters struct pointer from Dhcpv4Server. If the receiver or the field Counters is nil, nil is returned such that the Get* methods can be safely chained.

func (*Dhcpv4Server) GetLeases added in v0.7.1

func (t *Dhcpv4Server) GetLeases() *Dhcpv4Server_Leases

GetLeases returns the value of the Leases struct pointer from Dhcpv4Server. If the receiver or the field Leases is nil, nil is returned such that the Get* methods can be safely chained.

func (*Dhcpv4Server) GetName added in v0.7.1

func (t *Dhcpv4Server) GetName() string

GetName retrieves the value of the leaf Name from the Dhcpv4Server 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 (*Dhcpv4Server) GetOrCreateCounters added in v0.7.1

func (t *Dhcpv4Server) GetOrCreateCounters() *Dhcpv4Server_Counters

GetOrCreateCounters retrieves the value of the Counters field or returns the existing field if it already exists.

func (*Dhcpv4Server) GetOrCreateLeases added in v0.7.1

func (t *Dhcpv4Server) GetOrCreateLeases() *Dhcpv4Server_Leases

GetOrCreateLeases retrieves the value of the Leases field or returns the existing field if it already exists.

func (*Dhcpv4Server) IsYANGGoStruct added in v0.7.1

func (*Dhcpv4Server) IsYANGGoStruct()

IsYANGGoStruct ensures that Dhcpv4Server implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Dhcpv4Server) PopulateDefaults added in v0.7.1

func (t *Dhcpv4Server) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Dhcpv4Server with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Dhcpv4Server) SetName added in v0.7.1

func (t *Dhcpv4Server) SetName(v string)

SetName sets the value of the leaf Name in the Dhcpv4Server struct.

func (*Dhcpv4Server) Validate added in v0.7.1

func (t *Dhcpv4Server) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Dhcpv4Server) ΛBelongingModule added in v0.7.1

func (*Dhcpv4Server) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Dhcpv4Server.

func (*Dhcpv4Server) ΛEnumTypeMap added in v0.7.1

func (t *Dhcpv4Server) Λ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 (*Dhcpv4Server) ΛListKeyMap added in v0.7.1

func (t *Dhcpv4Server) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Dhcpv4Server struct, which is a YANG list entry.

func (*Dhcpv4Server) ΛValidate added in v0.7.1

func (t *Dhcpv4Server) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Dhcpv4Server_Counters added in v0.7.1

type Dhcpv4Server_Counters struct {
	AcksSent          *uint64 `path:"acks-sent" module:"open-traffic-generator-dhcpv4server"`
	DeclinesReceived  *uint64 `path:"declines-received" module:"open-traffic-generator-dhcpv4server"`
	DiscoversReceived *uint64 `path:"discovers-received" module:"open-traffic-generator-dhcpv4server"`
	NacksSent         *uint64 `path:"nacks-sent" module:"open-traffic-generator-dhcpv4server"`
	OffersSent        *uint64 `path:"offers-sent" module:"open-traffic-generator-dhcpv4server"`
	ReleasesReceived  *uint64 `path:"releases-received" module:"open-traffic-generator-dhcpv4server"`
	RequestsReceived  *uint64 `path:"requests-received" module:"open-traffic-generator-dhcpv4server"`
}

Dhcpv4Server_Counters represents the /open-traffic-generator-dhcpv4server/dhcpv4-servers/dhcpv4-server/state/counters YANG schema element.

func (*Dhcpv4Server_Counters) GetAcksSent added in v0.7.1

func (t *Dhcpv4Server_Counters) GetAcksSent() uint64

GetAcksSent retrieves the value of the leaf AcksSent from the Dhcpv4Server_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 AcksSent is set, it can safely use t.GetAcksSent() 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.AcksSent == nil' before retrieving the leaf's value.

func (*Dhcpv4Server_Counters) GetDeclinesReceived added in v0.7.1

func (t *Dhcpv4Server_Counters) GetDeclinesReceived() uint64

GetDeclinesReceived retrieves the value of the leaf DeclinesReceived from the Dhcpv4Server_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 DeclinesReceived is set, it can safely use t.GetDeclinesReceived() 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.DeclinesReceived == nil' before retrieving the leaf's value.

func (*Dhcpv4Server_Counters) GetDiscoversReceived added in v0.7.1

func (t *Dhcpv4Server_Counters) GetDiscoversReceived() uint64

GetDiscoversReceived retrieves the value of the leaf DiscoversReceived from the Dhcpv4Server_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 DiscoversReceived is set, it can safely use t.GetDiscoversReceived() 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.DiscoversReceived == nil' before retrieving the leaf's value.

func (*Dhcpv4Server_Counters) GetNacksSent added in v0.7.1

func (t *Dhcpv4Server_Counters) GetNacksSent() uint64

GetNacksSent retrieves the value of the leaf NacksSent from the Dhcpv4Server_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 NacksSent is set, it can safely use t.GetNacksSent() 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.NacksSent == nil' before retrieving the leaf's value.

func (*Dhcpv4Server_Counters) GetOffersSent added in v0.7.1

func (t *Dhcpv4Server_Counters) GetOffersSent() uint64

GetOffersSent retrieves the value of the leaf OffersSent from the Dhcpv4Server_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 OffersSent is set, it can safely use t.GetOffersSent() 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.OffersSent == nil' before retrieving the leaf's value.

func (*Dhcpv4Server_Counters) GetReleasesReceived added in v0.7.1

func (t *Dhcpv4Server_Counters) GetReleasesReceived() uint64

GetReleasesReceived retrieves the value of the leaf ReleasesReceived from the Dhcpv4Server_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 ReleasesReceived is set, it can safely use t.GetReleasesReceived() 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.ReleasesReceived == nil' before retrieving the leaf's value.

func (*Dhcpv4Server_Counters) GetRequestsReceived added in v0.7.1

func (t *Dhcpv4Server_Counters) GetRequestsReceived() uint64

GetRequestsReceived retrieves the value of the leaf RequestsReceived from the Dhcpv4Server_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 RequestsReceived is set, it can safely use t.GetRequestsReceived() 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.RequestsReceived == nil' before retrieving the leaf's value.

func (*Dhcpv4Server_Counters) IsYANGGoStruct added in v0.7.1

func (*Dhcpv4Server_Counters) IsYANGGoStruct()

IsYANGGoStruct ensures that Dhcpv4Server_Counters implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Dhcpv4Server_Counters) PopulateDefaults added in v0.7.1

func (t *Dhcpv4Server_Counters) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Dhcpv4Server_Counters with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Dhcpv4Server_Counters) SetAcksSent added in v0.7.1

func (t *Dhcpv4Server_Counters) SetAcksSent(v uint64)

SetAcksSent sets the value of the leaf AcksSent in the Dhcpv4Server_Counters struct.

func (*Dhcpv4Server_Counters) SetDeclinesReceived added in v0.7.1

func (t *Dhcpv4Server_Counters) SetDeclinesReceived(v uint64)

SetDeclinesReceived sets the value of the leaf DeclinesReceived in the Dhcpv4Server_Counters struct.

func (*Dhcpv4Server_Counters) SetDiscoversReceived added in v0.7.1

func (t *Dhcpv4Server_Counters) SetDiscoversReceived(v uint64)

SetDiscoversReceived sets the value of the leaf DiscoversReceived in the Dhcpv4Server_Counters struct.

func (*Dhcpv4Server_Counters) SetNacksSent added in v0.7.1

func (t *Dhcpv4Server_Counters) SetNacksSent(v uint64)

SetNacksSent sets the value of the leaf NacksSent in the Dhcpv4Server_Counters struct.

func (*Dhcpv4Server_Counters) SetOffersSent added in v0.7.1

func (t *Dhcpv4Server_Counters) SetOffersSent(v uint64)

SetOffersSent sets the value of the leaf OffersSent in the Dhcpv4Server_Counters struct.

func (*Dhcpv4Server_Counters) SetReleasesReceived added in v0.7.1

func (t *Dhcpv4Server_Counters) SetReleasesReceived(v uint64)

SetReleasesReceived sets the value of the leaf ReleasesReceived in the Dhcpv4Server_Counters struct.

func (*Dhcpv4Server_Counters) SetRequestsReceived added in v0.7.1

func (t *Dhcpv4Server_Counters) SetRequestsReceived(v uint64)

SetRequestsReceived sets the value of the leaf RequestsReceived in the Dhcpv4Server_Counters struct.

func (*Dhcpv4Server_Counters) Validate added in v0.7.1

func (t *Dhcpv4Server_Counters) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Dhcpv4Server_Counters) ΛBelongingModule added in v0.7.1

func (*Dhcpv4Server_Counters) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Dhcpv4Server_Counters.

func (*Dhcpv4Server_Counters) ΛEnumTypeMap added in v0.7.1

func (t *Dhcpv4Server_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 (*Dhcpv4Server_Counters) ΛValidate added in v0.7.1

func (t *Dhcpv4Server_Counters) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Dhcpv4Server_Leases added in v0.7.1

type Dhcpv4Server_Leases struct {
	Hosts map[string]*Dhcpv4Server_Leases_Hosts `path:"leases-states/hosts" module:"open-traffic-generator-dhcpv4server/open-traffic-generator-dhcpv4server"`
}

Dhcpv4Server_Leases represents the /open-traffic-generator-dhcpv4server/dhcpv4-servers/dhcpv4-server/state/leases YANG schema element.

func (*Dhcpv4Server_Leases) AppendHosts added in v0.7.1

AppendHosts appends the supplied Dhcpv4Server_Leases_Hosts struct to the list Hosts of Dhcpv4Server_Leases. If the key value(s) specified in the supplied Dhcpv4Server_Leases_Hosts already exist in the list, an error is returned.

func (*Dhcpv4Server_Leases) DeleteHosts added in v0.7.1

func (t *Dhcpv4Server_Leases) DeleteHosts(Address string)

DeleteHosts deletes the value with the specified keys from the receiver Dhcpv4Server_Leases. If there is no such element, the function is a no-op.

func (*Dhcpv4Server_Leases) GetHosts added in v0.7.1

GetHosts retrieves the value with the specified key from the Hosts map field of Dhcpv4Server_Leases. 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 (*Dhcpv4Server_Leases) GetOrCreateHosts added in v0.7.1

func (t *Dhcpv4Server_Leases) GetOrCreateHosts(Address string) *Dhcpv4Server_Leases_Hosts

GetOrCreateHosts retrieves the value with the specified keys from the receiver Dhcpv4Server_Leases. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Dhcpv4Server_Leases) GetOrCreateHostsMap added in v0.7.1

func (t *Dhcpv4Server_Leases) GetOrCreateHostsMap() map[string]*Dhcpv4Server_Leases_Hosts

GetOrCreateHostsMap returns the list (map) from Dhcpv4Server_Leases.

It initializes the field if not already initialized.

func (*Dhcpv4Server_Leases) IsYANGGoStruct added in v0.7.1

func (*Dhcpv4Server_Leases) IsYANGGoStruct()

IsYANGGoStruct ensures that Dhcpv4Server_Leases implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Dhcpv4Server_Leases) NewHosts added in v0.7.1

func (t *Dhcpv4Server_Leases) NewHosts(Address string) (*Dhcpv4Server_Leases_Hosts, error)

NewHosts creates a new entry in the Hosts list of the Dhcpv4Server_Leases struct. The keys of the list are populated from the input arguments.

func (*Dhcpv4Server_Leases) PopulateDefaults added in v0.7.1

func (t *Dhcpv4Server_Leases) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Dhcpv4Server_Leases with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Dhcpv4Server_Leases) RenameHosts added in v0.7.1

func (t *Dhcpv4Server_Leases) RenameHosts(oldK, newK string) error

RenameHosts renames an entry in the list Hosts within the Dhcpv4Server_Leases struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Dhcpv4Server_Leases) Validate added in v0.7.1

func (t *Dhcpv4Server_Leases) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Dhcpv4Server_Leases) ΛBelongingModule added in v0.7.1

func (*Dhcpv4Server_Leases) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Dhcpv4Server_Leases.

func (*Dhcpv4Server_Leases) ΛEnumTypeMap added in v0.7.1

func (t *Dhcpv4Server_Leases) Λ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 (*Dhcpv4Server_Leases) ΛValidate added in v0.7.1

func (t *Dhcpv4Server_Leases) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Dhcpv4Server_Leases_Hosts added in v0.7.1

type Dhcpv4Server_Leases_Hosts struct {
	Address       *string `` /* 219-byte string literal not displayed */
	CircuitId     *string `path:"state/circuit-id" module:"open-traffic-generator-dhcpv4server/open-traffic-generator-dhcpv4server"`
	ClientId      *string `path:"state/client-id" module:"open-traffic-generator-dhcpv4server/open-traffic-generator-dhcpv4server"`
	PreferredTime *uint32 `path:"state/preferred_time" module:"open-traffic-generator-dhcpv4server/open-traffic-generator-dhcpv4server"`
	RebindTime    *uint32 `path:"state/rebind_time" module:"open-traffic-generator-dhcpv4server/open-traffic-generator-dhcpv4server"`
	RemoteId      *string `path:"state/remote-id" module:"open-traffic-generator-dhcpv4server/open-traffic-generator-dhcpv4server"`
	RenewTime     *uint32 `path:"state/renew_time" module:"open-traffic-generator-dhcpv4server/open-traffic-generator-dhcpv4server"`
	ValidTime     *uint32 `path:"state/valid-time" module:"open-traffic-generator-dhcpv4server/open-traffic-generator-dhcpv4server"`
}

Dhcpv4Server_Leases_Hosts represents the /open-traffic-generator-dhcpv4server/dhcpv4-servers/dhcpv4-server/state/leases/leases-states/hosts YANG schema element.

func (*Dhcpv4Server_Leases_Hosts) GetAddress added in v0.7.1

func (t *Dhcpv4Server_Leases_Hosts) GetAddress() string

GetAddress retrieves the value of the leaf Address from the Dhcpv4Server_Leases_Hosts 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 Address is set, it can safely use t.GetAddress() 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.Address == nil' before retrieving the leaf's value.

func (*Dhcpv4Server_Leases_Hosts) GetCircuitId added in v0.7.1

func (t *Dhcpv4Server_Leases_Hosts) GetCircuitId() string

GetCircuitId retrieves the value of the leaf CircuitId from the Dhcpv4Server_Leases_Hosts 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 CircuitId is set, it can safely use t.GetCircuitId() 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.CircuitId == nil' before retrieving the leaf's value.

func (*Dhcpv4Server_Leases_Hosts) GetClientId added in v0.7.1

func (t *Dhcpv4Server_Leases_Hosts) GetClientId() string

GetClientId retrieves the value of the leaf ClientId from the Dhcpv4Server_Leases_Hosts 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 ClientId is set, it can safely use t.GetClientId() 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.ClientId == nil' before retrieving the leaf's value.

func (*Dhcpv4Server_Leases_Hosts) GetPreferredTime added in v0.7.1

func (t *Dhcpv4Server_Leases_Hosts) GetPreferredTime() uint32

GetPreferredTime retrieves the value of the leaf PreferredTime from the Dhcpv4Server_Leases_Hosts 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 PreferredTime is set, it can safely use t.GetPreferredTime() 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.PreferredTime == nil' before retrieving the leaf's value.

func (*Dhcpv4Server_Leases_Hosts) GetRebindTime added in v0.7.1

func (t *Dhcpv4Server_Leases_Hosts) GetRebindTime() uint32

GetRebindTime retrieves the value of the leaf RebindTime from the Dhcpv4Server_Leases_Hosts 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 RebindTime is set, it can safely use t.GetRebindTime() 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.RebindTime == nil' before retrieving the leaf's value.

func (*Dhcpv4Server_Leases_Hosts) GetRemoteId added in v0.7.1

func (t *Dhcpv4Server_Leases_Hosts) GetRemoteId() string

GetRemoteId retrieves the value of the leaf RemoteId from the Dhcpv4Server_Leases_Hosts 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 RemoteId is set, it can safely use t.GetRemoteId() 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.RemoteId == nil' before retrieving the leaf's value.

func (*Dhcpv4Server_Leases_Hosts) GetRenewTime added in v0.7.1

func (t *Dhcpv4Server_Leases_Hosts) GetRenewTime() uint32

GetRenewTime retrieves the value of the leaf RenewTime from the Dhcpv4Server_Leases_Hosts 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 RenewTime is set, it can safely use t.GetRenewTime() 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.RenewTime == nil' before retrieving the leaf's value.

func (*Dhcpv4Server_Leases_Hosts) GetValidTime added in v0.7.1

func (t *Dhcpv4Server_Leases_Hosts) GetValidTime() uint32

GetValidTime retrieves the value of the leaf ValidTime from the Dhcpv4Server_Leases_Hosts 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 ValidTime is set, it can safely use t.GetValidTime() 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.ValidTime == nil' before retrieving the leaf's value.

func (*Dhcpv4Server_Leases_Hosts) IsYANGGoStruct added in v0.7.1

func (*Dhcpv4Server_Leases_Hosts) IsYANGGoStruct()

IsYANGGoStruct ensures that Dhcpv4Server_Leases_Hosts implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Dhcpv4Server_Leases_Hosts) PopulateDefaults added in v0.7.1

func (t *Dhcpv4Server_Leases_Hosts) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Dhcpv4Server_Leases_Hosts with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Dhcpv4Server_Leases_Hosts) SetAddress added in v0.7.1

func (t *Dhcpv4Server_Leases_Hosts) SetAddress(v string)

SetAddress sets the value of the leaf Address in the Dhcpv4Server_Leases_Hosts struct.

func (*Dhcpv4Server_Leases_Hosts) SetCircuitId added in v0.7.1

func (t *Dhcpv4Server_Leases_Hosts) SetCircuitId(v string)

SetCircuitId sets the value of the leaf CircuitId in the Dhcpv4Server_Leases_Hosts struct.

func (*Dhcpv4Server_Leases_Hosts) SetClientId added in v0.7.1

func (t *Dhcpv4Server_Leases_Hosts) SetClientId(v string)

SetClientId sets the value of the leaf ClientId in the Dhcpv4Server_Leases_Hosts struct.

func (*Dhcpv4Server_Leases_Hosts) SetPreferredTime added in v0.7.1

func (t *Dhcpv4Server_Leases_Hosts) SetPreferredTime(v uint32)

SetPreferredTime sets the value of the leaf PreferredTime in the Dhcpv4Server_Leases_Hosts struct.

func (*Dhcpv4Server_Leases_Hosts) SetRebindTime added in v0.7.1

func (t *Dhcpv4Server_Leases_Hosts) SetRebindTime(v uint32)

SetRebindTime sets the value of the leaf RebindTime in the Dhcpv4Server_Leases_Hosts struct.

func (*Dhcpv4Server_Leases_Hosts) SetRemoteId added in v0.7.1

func (t *Dhcpv4Server_Leases_Hosts) SetRemoteId(v string)

SetRemoteId sets the value of the leaf RemoteId in the Dhcpv4Server_Leases_Hosts struct.

func (*Dhcpv4Server_Leases_Hosts) SetRenewTime added in v0.7.1

func (t *Dhcpv4Server_Leases_Hosts) SetRenewTime(v uint32)

SetRenewTime sets the value of the leaf RenewTime in the Dhcpv4Server_Leases_Hosts struct.

func (*Dhcpv4Server_Leases_Hosts) SetValidTime added in v0.7.1

func (t *Dhcpv4Server_Leases_Hosts) SetValidTime(v uint32)

SetValidTime sets the value of the leaf ValidTime in the Dhcpv4Server_Leases_Hosts struct.

func (*Dhcpv4Server_Leases_Hosts) Validate added in v0.7.1

Validate validates s against the YANG schema corresponding to its type.

func (*Dhcpv4Server_Leases_Hosts) ΛBelongingModule added in v0.7.1

func (*Dhcpv4Server_Leases_Hosts) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Dhcpv4Server_Leases_Hosts.

func (*Dhcpv4Server_Leases_Hosts) ΛEnumTypeMap added in v0.7.1

func (t *Dhcpv4Server_Leases_Hosts) Λ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 (*Dhcpv4Server_Leases_Hosts) ΛListKeyMap added in v0.7.1

func (t *Dhcpv4Server_Leases_Hosts) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Dhcpv4Server_Leases_Hosts struct, which is a YANG list entry.

func (*Dhcpv4Server_Leases_Hosts) ΛValidate added in v0.7.1

func (t *Dhcpv4Server_Leases_Hosts) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Dhcpv6Client added in v0.7.1

type Dhcpv6Client struct {
	Counters  *Dhcpv6Client_Counters  `path:"state/counters" module:"open-traffic-generator-dhcpv6client/open-traffic-generator-dhcpv6client"`
	Interface *Dhcpv6Client_Interface `path:"state/interface" module:"open-traffic-generator-dhcpv6client/open-traffic-generator-dhcpv6client"`
	Name      *string                 `` /* 210-byte string literal not displayed */
}

Dhcpv6Client represents the /open-traffic-generator-dhcpv6client/dhcpv6-clients/dhcpv6-client YANG schema element.

func (*Dhcpv6Client) GetCounters added in v0.7.1

func (t *Dhcpv6Client) GetCounters() *Dhcpv6Client_Counters

GetCounters returns the value of the Counters struct pointer from Dhcpv6Client. If the receiver or the field Counters is nil, nil is returned such that the Get* methods can be safely chained.

func (*Dhcpv6Client) GetInterface added in v0.7.1

func (t *Dhcpv6Client) GetInterface() *Dhcpv6Client_Interface

GetInterface returns the value of the Interface struct pointer from Dhcpv6Client. If the receiver or the field Interface is nil, nil is returned such that the Get* methods can be safely chained.

func (*Dhcpv6Client) GetName added in v0.7.1

func (t *Dhcpv6Client) GetName() string

GetName retrieves the value of the leaf Name from the Dhcpv6Client 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 (*Dhcpv6Client) GetOrCreateCounters added in v0.7.1

func (t *Dhcpv6Client) GetOrCreateCounters() *Dhcpv6Client_Counters

GetOrCreateCounters retrieves the value of the Counters field or returns the existing field if it already exists.

func (*Dhcpv6Client) GetOrCreateInterface added in v0.7.1

func (t *Dhcpv6Client) GetOrCreateInterface() *Dhcpv6Client_Interface

GetOrCreateInterface retrieves the value of the Interface field or returns the existing field if it already exists.

func (*Dhcpv6Client) IsYANGGoStruct added in v0.7.1

func (*Dhcpv6Client) IsYANGGoStruct()

IsYANGGoStruct ensures that Dhcpv6Client implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Dhcpv6Client) PopulateDefaults added in v0.7.1

func (t *Dhcpv6Client) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Dhcpv6Client with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Dhcpv6Client) SetName added in v0.7.1

func (t *Dhcpv6Client) SetName(v string)

SetName sets the value of the leaf Name in the Dhcpv6Client struct.

func (*Dhcpv6Client) Validate added in v0.7.1

func (t *Dhcpv6Client) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Dhcpv6Client) ΛBelongingModule added in v0.7.1

func (*Dhcpv6Client) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Dhcpv6Client.

func (*Dhcpv6Client) ΛEnumTypeMap added in v0.7.1

func (t *Dhcpv6Client) Λ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 (*Dhcpv6Client) ΛListKeyMap added in v0.7.1

func (t *Dhcpv6Client) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Dhcpv6Client struct, which is a YANG list entry.

func (*Dhcpv6Client) ΛValidate added in v0.7.1

func (t *Dhcpv6Client) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Dhcpv6Client_Counters added in v0.7.1

type Dhcpv6Client_Counters struct {
	AdvertisementsIgnored      *uint64 `path:"advertisements-ignored" module:"open-traffic-generator-dhcpv6client"`
	AdvertisementsReceived     *uint64 `path:"advertisements-received" module:"open-traffic-generator-dhcpv6client"`
	InformationRequestsSent    *uint64 `path:"information-requests-sent" module:"open-traffic-generator-dhcpv6client"`
	NacksReceived              *uint64 `path:"nacks-received" module:"open-traffic-generator-dhcpv6client"`
	RapidCommitRepliesReceived *uint64 `path:"rapid-commit-replies-received" module:"open-traffic-generator-dhcpv6client"`
	RapidCommitSolicitsSent    *uint64 `path:"rapid-commit-solicits-sent" module:"open-traffic-generator-dhcpv6client"`
	RebindsSent                *uint64 `path:"rebinds-sent" module:"open-traffic-generator-dhcpv6client"`
	ReconfiguresReceived       *uint64 `path:"reconfigures-received" module:"open-traffic-generator-dhcpv6client"`
	ReleasesSent               *uint64 `path:"releases-sent" module:"open-traffic-generator-dhcpv6client"`
	RenewsSent                 *uint64 `path:"renews-sent" module:"open-traffic-generator-dhcpv6client"`
	RepliesReceived            *uint64 `path:"replies-received" module:"open-traffic-generator-dhcpv6client"`
	RequestsSent               *uint64 `path:"requests-sent" module:"open-traffic-generator-dhcpv6client"`
	SolicitsSent               *uint64 `path:"solicits-sent" module:"open-traffic-generator-dhcpv6client"`
}

Dhcpv6Client_Counters represents the /open-traffic-generator-dhcpv6client/dhcpv6-clients/dhcpv6-client/state/counters YANG schema element.

func (*Dhcpv6Client_Counters) GetAdvertisementsIgnored added in v0.7.1

func (t *Dhcpv6Client_Counters) GetAdvertisementsIgnored() uint64

GetAdvertisementsIgnored retrieves the value of the leaf AdvertisementsIgnored from the Dhcpv6Client_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 AdvertisementsIgnored is set, it can safely use t.GetAdvertisementsIgnored() 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.AdvertisementsIgnored == nil' before retrieving the leaf's value.

func (*Dhcpv6Client_Counters) GetAdvertisementsReceived added in v0.7.1

func (t *Dhcpv6Client_Counters) GetAdvertisementsReceived() uint64

GetAdvertisementsReceived retrieves the value of the leaf AdvertisementsReceived from the Dhcpv6Client_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 AdvertisementsReceived is set, it can safely use t.GetAdvertisementsReceived() 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.AdvertisementsReceived == nil' before retrieving the leaf's value.

func (*Dhcpv6Client_Counters) GetInformationRequestsSent added in v0.7.1

func (t *Dhcpv6Client_Counters) GetInformationRequestsSent() uint64

GetInformationRequestsSent retrieves the value of the leaf InformationRequestsSent from the Dhcpv6Client_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 InformationRequestsSent is set, it can safely use t.GetInformationRequestsSent() 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.InformationRequestsSent == nil' before retrieving the leaf's value.

func (*Dhcpv6Client_Counters) GetNacksReceived added in v0.7.1

func (t *Dhcpv6Client_Counters) GetNacksReceived() uint64

GetNacksReceived retrieves the value of the leaf NacksReceived from the Dhcpv6Client_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 NacksReceived is set, it can safely use t.GetNacksReceived() 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.NacksReceived == nil' before retrieving the leaf's value.

func (*Dhcpv6Client_Counters) GetRapidCommitRepliesReceived added in v0.7.1

func (t *Dhcpv6Client_Counters) GetRapidCommitRepliesReceived() uint64

GetRapidCommitRepliesReceived retrieves the value of the leaf RapidCommitRepliesReceived from the Dhcpv6Client_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 RapidCommitRepliesReceived is set, it can safely use t.GetRapidCommitRepliesReceived() 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.RapidCommitRepliesReceived == nil' before retrieving the leaf's value.

func (*Dhcpv6Client_Counters) GetRapidCommitSolicitsSent added in v0.7.1

func (t *Dhcpv6Client_Counters) GetRapidCommitSolicitsSent() uint64

GetRapidCommitSolicitsSent retrieves the value of the leaf RapidCommitSolicitsSent from the Dhcpv6Client_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 RapidCommitSolicitsSent is set, it can safely use t.GetRapidCommitSolicitsSent() 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.RapidCommitSolicitsSent == nil' before retrieving the leaf's value.

func (*Dhcpv6Client_Counters) GetRebindsSent added in v0.7.1

func (t *Dhcpv6Client_Counters) GetRebindsSent() uint64

GetRebindsSent retrieves the value of the leaf RebindsSent from the Dhcpv6Client_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 RebindsSent is set, it can safely use t.GetRebindsSent() 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.RebindsSent == nil' before retrieving the leaf's value.

func (*Dhcpv6Client_Counters) GetReconfiguresReceived added in v0.7.1

func (t *Dhcpv6Client_Counters) GetReconfiguresReceived() uint64

GetReconfiguresReceived retrieves the value of the leaf ReconfiguresReceived from the Dhcpv6Client_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 ReconfiguresReceived is set, it can safely use t.GetReconfiguresReceived() 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.ReconfiguresReceived == nil' before retrieving the leaf's value.

func (*Dhcpv6Client_Counters) GetReleasesSent added in v0.7.1

func (t *Dhcpv6Client_Counters) GetReleasesSent() uint64

GetReleasesSent retrieves the value of the leaf ReleasesSent from the Dhcpv6Client_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 ReleasesSent is set, it can safely use t.GetReleasesSent() 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.ReleasesSent == nil' before retrieving the leaf's value.

func (*Dhcpv6Client_Counters) GetRenewsSent added in v0.7.1

func (t *Dhcpv6Client_Counters) GetRenewsSent() uint64

GetRenewsSent retrieves the value of the leaf RenewsSent from the Dhcpv6Client_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 RenewsSent is set, it can safely use t.GetRenewsSent() 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.RenewsSent == nil' before retrieving the leaf's value.

func (*Dhcpv6Client_Counters) GetRepliesReceived added in v0.7.1

func (t *Dhcpv6Client_Counters) GetRepliesReceived() uint64

GetRepliesReceived retrieves the value of the leaf RepliesReceived from the Dhcpv6Client_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 RepliesReceived is set, it can safely use t.GetRepliesReceived() 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.RepliesReceived == nil' before retrieving the leaf's value.

func (*Dhcpv6Client_Counters) GetRequestsSent added in v0.7.1

func (t *Dhcpv6Client_Counters) GetRequestsSent() uint64

GetRequestsSent retrieves the value of the leaf RequestsSent from the Dhcpv6Client_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 RequestsSent is set, it can safely use t.GetRequestsSent() 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.RequestsSent == nil' before retrieving the leaf's value.

func (*Dhcpv6Client_Counters) GetSolicitsSent added in v0.7.1

func (t *Dhcpv6Client_Counters) GetSolicitsSent() uint64

GetSolicitsSent retrieves the value of the leaf SolicitsSent from the Dhcpv6Client_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 SolicitsSent is set, it can safely use t.GetSolicitsSent() 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.SolicitsSent == nil' before retrieving the leaf's value.

func (*Dhcpv6Client_Counters) IsYANGGoStruct added in v0.7.1

func (*Dhcpv6Client_Counters) IsYANGGoStruct()

IsYANGGoStruct ensures that Dhcpv6Client_Counters implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Dhcpv6Client_Counters) PopulateDefaults added in v0.7.1

func (t *Dhcpv6Client_Counters) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Dhcpv6Client_Counters with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Dhcpv6Client_Counters) SetAdvertisementsIgnored added in v0.7.1

func (t *Dhcpv6Client_Counters) SetAdvertisementsIgnored(v uint64)

SetAdvertisementsIgnored sets the value of the leaf AdvertisementsIgnored in the Dhcpv6Client_Counters struct.

func (*Dhcpv6Client_Counters) SetAdvertisementsReceived added in v0.7.1

func (t *Dhcpv6Client_Counters) SetAdvertisementsReceived(v uint64)

SetAdvertisementsReceived sets the value of the leaf AdvertisementsReceived in the Dhcpv6Client_Counters struct.

func (*Dhcpv6Client_Counters) SetInformationRequestsSent added in v0.7.1

func (t *Dhcpv6Client_Counters) SetInformationRequestsSent(v uint64)

SetInformationRequestsSent sets the value of the leaf InformationRequestsSent in the Dhcpv6Client_Counters struct.

func (*Dhcpv6Client_Counters) SetNacksReceived added in v0.7.1

func (t *Dhcpv6Client_Counters) SetNacksReceived(v uint64)

SetNacksReceived sets the value of the leaf NacksReceived in the Dhcpv6Client_Counters struct.

func (*Dhcpv6Client_Counters) SetRapidCommitRepliesReceived added in v0.7.1

func (t *Dhcpv6Client_Counters) SetRapidCommitRepliesReceived(v uint64)

SetRapidCommitRepliesReceived sets the value of the leaf RapidCommitRepliesReceived in the Dhcpv6Client_Counters struct.

func (*Dhcpv6Client_Counters) SetRapidCommitSolicitsSent added in v0.7.1

func (t *Dhcpv6Client_Counters) SetRapidCommitSolicitsSent(v uint64)

SetRapidCommitSolicitsSent sets the value of the leaf RapidCommitSolicitsSent in the Dhcpv6Client_Counters struct.

func (*Dhcpv6Client_Counters) SetRebindsSent added in v0.7.1

func (t *Dhcpv6Client_Counters) SetRebindsSent(v uint64)

SetRebindsSent sets the value of the leaf RebindsSent in the Dhcpv6Client_Counters struct.

func (*Dhcpv6Client_Counters) SetReconfiguresReceived added in v0.7.1

func (t *Dhcpv6Client_Counters) SetReconfiguresReceived(v uint64)

SetReconfiguresReceived sets the value of the leaf ReconfiguresReceived in the Dhcpv6Client_Counters struct.

func (*Dhcpv6Client_Counters) SetReleasesSent added in v0.7.1

func (t *Dhcpv6Client_Counters) SetReleasesSent(v uint64)

SetReleasesSent sets the value of the leaf ReleasesSent in the Dhcpv6Client_Counters struct.

func (*Dhcpv6Client_Counters) SetRenewsSent added in v0.7.1

func (t *Dhcpv6Client_Counters) SetRenewsSent(v uint64)

SetRenewsSent sets the value of the leaf RenewsSent in the Dhcpv6Client_Counters struct.

func (*Dhcpv6Client_Counters) SetRepliesReceived added in v0.7.1

func (t *Dhcpv6Client_Counters) SetRepliesReceived(v uint64)

SetRepliesReceived sets the value of the leaf RepliesReceived in the Dhcpv6Client_Counters struct.

func (*Dhcpv6Client_Counters) SetRequestsSent added in v0.7.1

func (t *Dhcpv6Client_Counters) SetRequestsSent(v uint64)

SetRequestsSent sets the value of the leaf RequestsSent in the Dhcpv6Client_Counters struct.

func (*Dhcpv6Client_Counters) SetSolicitsSent added in v0.7.1

func (t *Dhcpv6Client_Counters) SetSolicitsSent(v uint64)

SetSolicitsSent sets the value of the leaf SolicitsSent in the Dhcpv6Client_Counters struct.

func (*Dhcpv6Client_Counters) Validate added in v0.7.1

func (t *Dhcpv6Client_Counters) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Dhcpv6Client_Counters) ΛBelongingModule added in v0.7.1

func (*Dhcpv6Client_Counters) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Dhcpv6Client_Counters.

func (*Dhcpv6Client_Counters) ΛEnumTypeMap added in v0.7.1

func (t *Dhcpv6Client_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 (*Dhcpv6Client_Counters) ΛValidate added in v0.7.1

func (t *Dhcpv6Client_Counters) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Dhcpv6Client_Interface added in v0.7.1

type Dhcpv6Client_Interface struct {
	IaAddress   []*Dhcpv6Client_Interface_IaAddress   `path:"ia-addresses/ia-address" module:"open-traffic-generator-dhcpv6client/open-traffic-generator-dhcpv6client"`
	IapdAddress []*Dhcpv6Client_Interface_IapdAddress `path:"iapd-addresses/iapd-address" module:"open-traffic-generator-dhcpv6client/open-traffic-generator-dhcpv6client"`
}

Dhcpv6Client_Interface represents the /open-traffic-generator-dhcpv6client/dhcpv6-clients/dhcpv6-client/state/interface YANG schema element.

func (*Dhcpv6Client_Interface) IsYANGGoStruct added in v0.7.1

func (*Dhcpv6Client_Interface) IsYANGGoStruct()

IsYANGGoStruct ensures that Dhcpv6Client_Interface implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Dhcpv6Client_Interface) PopulateDefaults added in v0.7.1

func (t *Dhcpv6Client_Interface) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Dhcpv6Client_Interface with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Dhcpv6Client_Interface) Validate added in v0.7.1

func (t *Dhcpv6Client_Interface) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Dhcpv6Client_Interface) ΛBelongingModule added in v0.7.1

func (*Dhcpv6Client_Interface) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Dhcpv6Client_Interface.

func (*Dhcpv6Client_Interface) ΛEnumTypeMap added in v0.7.1

func (t *Dhcpv6Client_Interface) Λ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 (*Dhcpv6Client_Interface) ΛValidate added in v0.7.1

func (t *Dhcpv6Client_Interface) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Dhcpv6Client_Interface_IaAddress added in v0.7.1

type Dhcpv6Client_Interface_IaAddress struct {
	Address   *string `path:"address" module:"open-traffic-generator-dhcpv6client"`
	Gateway   *string `path:"gateway" module:"open-traffic-generator-dhcpv6client"`
	LeaseTime *uint32 `path:"lease-time" module:"open-traffic-generator-dhcpv6client"`
}

Dhcpv6Client_Interface_IaAddress represents the /open-traffic-generator-dhcpv6client/dhcpv6-clients/dhcpv6-client/state/interface/ia-addresses/ia-address YANG schema element.

func (*Dhcpv6Client_Interface_IaAddress) GetAddress added in v0.7.1

func (t *Dhcpv6Client_Interface_IaAddress) GetAddress() string

GetAddress retrieves the value of the leaf Address from the Dhcpv6Client_Interface_IaAddress 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 Address is set, it can safely use t.GetAddress() 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.Address == nil' before retrieving the leaf's value.

func (*Dhcpv6Client_Interface_IaAddress) GetGateway added in v0.7.1

func (t *Dhcpv6Client_Interface_IaAddress) GetGateway() string

GetGateway retrieves the value of the leaf Gateway from the Dhcpv6Client_Interface_IaAddress 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 Gateway is set, it can safely use t.GetGateway() 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.Gateway == nil' before retrieving the leaf's value.

func (*Dhcpv6Client_Interface_IaAddress) GetLeaseTime added in v0.7.1

func (t *Dhcpv6Client_Interface_IaAddress) GetLeaseTime() uint32

GetLeaseTime retrieves the value of the leaf LeaseTime from the Dhcpv6Client_Interface_IaAddress 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 LeaseTime is set, it can safely use t.GetLeaseTime() 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.LeaseTime == nil' before retrieving the leaf's value.

func (*Dhcpv6Client_Interface_IaAddress) IsYANGGoStruct added in v0.7.1

func (*Dhcpv6Client_Interface_IaAddress) IsYANGGoStruct()

IsYANGGoStruct ensures that Dhcpv6Client_Interface_IaAddress implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Dhcpv6Client_Interface_IaAddress) PopulateDefaults added in v0.7.1

func (t *Dhcpv6Client_Interface_IaAddress) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Dhcpv6Client_Interface_IaAddress with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Dhcpv6Client_Interface_IaAddress) SetAddress added in v0.7.1

func (t *Dhcpv6Client_Interface_IaAddress) SetAddress(v string)

SetAddress sets the value of the leaf Address in the Dhcpv6Client_Interface_IaAddress struct.

func (*Dhcpv6Client_Interface_IaAddress) SetGateway added in v0.7.1

func (t *Dhcpv6Client_Interface_IaAddress) SetGateway(v string)

SetGateway sets the value of the leaf Gateway in the Dhcpv6Client_Interface_IaAddress struct.

func (*Dhcpv6Client_Interface_IaAddress) SetLeaseTime added in v0.7.1

func (t *Dhcpv6Client_Interface_IaAddress) SetLeaseTime(v uint32)

SetLeaseTime sets the value of the leaf LeaseTime in the Dhcpv6Client_Interface_IaAddress struct.

func (*Dhcpv6Client_Interface_IaAddress) Validate added in v0.7.1

Validate validates s against the YANG schema corresponding to its type.

func (*Dhcpv6Client_Interface_IaAddress) ΛBelongingModule added in v0.7.1

func (*Dhcpv6Client_Interface_IaAddress) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Dhcpv6Client_Interface_IaAddress.

func (*Dhcpv6Client_Interface_IaAddress) ΛEnumTypeMap added in v0.7.1

func (t *Dhcpv6Client_Interface_IaAddress) Λ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 (*Dhcpv6Client_Interface_IaAddress) ΛValidate added in v0.7.1

Validate validates s against the YANG schema corresponding to its type.

type Dhcpv6Client_Interface_IapdAddress added in v0.7.1

type Dhcpv6Client_Interface_IapdAddress struct {
	Address      *string `path:"address" module:"open-traffic-generator-dhcpv6client"`
	LeaseTime    *uint32 `path:"lease-time" module:"open-traffic-generator-dhcpv6client"`
	PrefixLength *uint32 `path:"prefix-length" module:"open-traffic-generator-dhcpv6client"`
}

Dhcpv6Client_Interface_IapdAddress represents the /open-traffic-generator-dhcpv6client/dhcpv6-clients/dhcpv6-client/state/interface/iapd-addresses/iapd-address YANG schema element.

func (*Dhcpv6Client_Interface_IapdAddress) GetAddress added in v0.7.1

GetAddress retrieves the value of the leaf Address from the Dhcpv6Client_Interface_IapdAddress 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 Address is set, it can safely use t.GetAddress() 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.Address == nil' before retrieving the leaf's value.

func (*Dhcpv6Client_Interface_IapdAddress) GetLeaseTime added in v0.7.1

func (t *Dhcpv6Client_Interface_IapdAddress) GetLeaseTime() uint32

GetLeaseTime retrieves the value of the leaf LeaseTime from the Dhcpv6Client_Interface_IapdAddress 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 LeaseTime is set, it can safely use t.GetLeaseTime() 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.LeaseTime == nil' before retrieving the leaf's value.

func (*Dhcpv6Client_Interface_IapdAddress) GetPrefixLength added in v0.7.1

func (t *Dhcpv6Client_Interface_IapdAddress) GetPrefixLength() uint32

GetPrefixLength retrieves the value of the leaf PrefixLength from the Dhcpv6Client_Interface_IapdAddress 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 PrefixLength is set, it can safely use t.GetPrefixLength() 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.PrefixLength == nil' before retrieving the leaf's value.

func (*Dhcpv6Client_Interface_IapdAddress) IsYANGGoStruct added in v0.7.1

func (*Dhcpv6Client_Interface_IapdAddress) IsYANGGoStruct()

IsYANGGoStruct ensures that Dhcpv6Client_Interface_IapdAddress implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Dhcpv6Client_Interface_IapdAddress) PopulateDefaults added in v0.7.1

func (t *Dhcpv6Client_Interface_IapdAddress) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Dhcpv6Client_Interface_IapdAddress with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Dhcpv6Client_Interface_IapdAddress) SetAddress added in v0.7.1

func (t *Dhcpv6Client_Interface_IapdAddress) SetAddress(v string)

SetAddress sets the value of the leaf Address in the Dhcpv6Client_Interface_IapdAddress struct.

func (*Dhcpv6Client_Interface_IapdAddress) SetLeaseTime added in v0.7.1

func (t *Dhcpv6Client_Interface_IapdAddress) SetLeaseTime(v uint32)

SetLeaseTime sets the value of the leaf LeaseTime in the Dhcpv6Client_Interface_IapdAddress struct.

func (*Dhcpv6Client_Interface_IapdAddress) SetPrefixLength added in v0.7.1

func (t *Dhcpv6Client_Interface_IapdAddress) SetPrefixLength(v uint32)

SetPrefixLength sets the value of the leaf PrefixLength in the Dhcpv6Client_Interface_IapdAddress struct.

func (*Dhcpv6Client_Interface_IapdAddress) Validate added in v0.7.1

Validate validates s against the YANG schema corresponding to its type.

func (*Dhcpv6Client_Interface_IapdAddress) ΛBelongingModule added in v0.7.1

func (*Dhcpv6Client_Interface_IapdAddress) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Dhcpv6Client_Interface_IapdAddress.

func (*Dhcpv6Client_Interface_IapdAddress) ΛEnumTypeMap added in v0.7.1

func (t *Dhcpv6Client_Interface_IapdAddress) Λ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 (*Dhcpv6Client_Interface_IapdAddress) ΛValidate added in v0.7.1

Validate validates s against the YANG schema corresponding to its type.

type Dhcpv6Server added in v0.7.1

type Dhcpv6Server struct {
	Counters *Dhcpv6Server_Counters `path:"state/counters" module:"open-traffic-generator-dhcpv6server/open-traffic-generator-dhcpv6server"`
	Leases   *Dhcpv6Server_Leases   `path:"state/leases" module:"open-traffic-generator-dhcpv6server/open-traffic-generator-dhcpv6server"`
	Name     *string                `` /* 210-byte string literal not displayed */
}

Dhcpv6Server represents the /open-traffic-generator-dhcpv6server/dhcpv6-servers/dhcpv6-server YANG schema element.

func (*Dhcpv6Server) GetCounters added in v0.7.1

func (t *Dhcpv6Server) GetCounters() *Dhcpv6Server_Counters

GetCounters returns the value of the Counters struct pointer from Dhcpv6Server. If the receiver or the field Counters is nil, nil is returned such that the Get* methods can be safely chained.

func (*Dhcpv6Server) GetLeases added in v0.7.1

func (t *Dhcpv6Server) GetLeases() *Dhcpv6Server_Leases

GetLeases returns the value of the Leases struct pointer from Dhcpv6Server. If the receiver or the field Leases is nil, nil is returned such that the Get* methods can be safely chained.

func (*Dhcpv6Server) GetName added in v0.7.1

func (t *Dhcpv6Server) GetName() string

GetName retrieves the value of the leaf Name from the Dhcpv6Server 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 (*Dhcpv6Server) GetOrCreateCounters added in v0.7.1

func (t *Dhcpv6Server) GetOrCreateCounters() *Dhcpv6Server_Counters

GetOrCreateCounters retrieves the value of the Counters field or returns the existing field if it already exists.

func (*Dhcpv6Server) GetOrCreateLeases added in v0.7.1

func (t *Dhcpv6Server) GetOrCreateLeases() *Dhcpv6Server_Leases

GetOrCreateLeases retrieves the value of the Leases field or returns the existing field if it already exists.

func (*Dhcpv6Server) IsYANGGoStruct added in v0.7.1

func (*Dhcpv6Server) IsYANGGoStruct()

IsYANGGoStruct ensures that Dhcpv6Server implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Dhcpv6Server) PopulateDefaults added in v0.7.1

func (t *Dhcpv6Server) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Dhcpv6Server with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Dhcpv6Server) SetName added in v0.7.1

func (t *Dhcpv6Server) SetName(v string)

SetName sets the value of the leaf Name in the Dhcpv6Server struct.

func (*Dhcpv6Server) Validate added in v0.7.1

func (t *Dhcpv6Server) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Dhcpv6Server) ΛBelongingModule added in v0.7.1

func (*Dhcpv6Server) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Dhcpv6Server.

func (*Dhcpv6Server) ΛEnumTypeMap added in v0.7.1

func (t *Dhcpv6Server) Λ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 (*Dhcpv6Server) ΛListKeyMap added in v0.7.1

func (t *Dhcpv6Server) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Dhcpv6Server struct, which is a YANG list entry.

func (*Dhcpv6Server) ΛValidate added in v0.7.1

func (t *Dhcpv6Server) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Dhcpv6Server_Counters added in v0.7.1

type Dhcpv6Server_Counters struct {
	AdvertisementsSent          *uint64 `path:"advertisements-sent" module:"open-traffic-generator-dhcpv6server"`
	ConfirmsReceived            *uint64 `path:"confirms-received" module:"open-traffic-generator-dhcpv6server"`
	DeclinesReceived            *uint64 `path:"declines-received" module:"open-traffic-generator-dhcpv6server"`
	InformationRequestsReceived *uint64 `path:"information-requests-received" module:"open-traffic-generator-dhcpv6server"`
	NacksSent                   *uint64 `path:"nacks-sent" module:"open-traffic-generator-dhcpv6server"`
	RebindsReceived             *uint64 `path:"rebinds-received" module:"open-traffic-generator-dhcpv6server"`
	ReconfiguresSent            *uint64 `path:"reconfigures-sent" module:"open-traffic-generator-dhcpv6server"`
	RelayForwardsReceived       *uint64 `path:"relay-forwards-received" module:"open-traffic-generator-dhcpv6server"`
	RelayRepliesSent            *uint64 `path:"relay-replies-sent" module:"open-traffic-generator-dhcpv6server"`
	ReleasesReceived            *uint64 `path:"releases-received" module:"open-traffic-generator-dhcpv6server"`
	RenewalsReceived            *uint64 `path:"renewals-received" module:"open-traffic-generator-dhcpv6server"`
	RepliesSent                 *uint64 `path:"replies-sent" module:"open-traffic-generator-dhcpv6server"`
	RequestsReceived            *uint64 `path:"requests-received" module:"open-traffic-generator-dhcpv6server"`
	SolicitsIgnored             *uint64 `path:"solicits-ignored" module:"open-traffic-generator-dhcpv6server"`
	SolicitsReceived            *uint64 `path:"solicits-received" module:"open-traffic-generator-dhcpv6server"`
}

Dhcpv6Server_Counters represents the /open-traffic-generator-dhcpv6server/dhcpv6-servers/dhcpv6-server/state/counters YANG schema element.

func (*Dhcpv6Server_Counters) GetAdvertisementsSent added in v0.7.1

func (t *Dhcpv6Server_Counters) GetAdvertisementsSent() uint64

GetAdvertisementsSent retrieves the value of the leaf AdvertisementsSent from the Dhcpv6Server_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 AdvertisementsSent is set, it can safely use t.GetAdvertisementsSent() 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.AdvertisementsSent == nil' before retrieving the leaf's value.

func (*Dhcpv6Server_Counters) GetConfirmsReceived added in v0.7.1

func (t *Dhcpv6Server_Counters) GetConfirmsReceived() uint64

GetConfirmsReceived retrieves the value of the leaf ConfirmsReceived from the Dhcpv6Server_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 ConfirmsReceived is set, it can safely use t.GetConfirmsReceived() 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.ConfirmsReceived == nil' before retrieving the leaf's value.

func (*Dhcpv6Server_Counters) GetDeclinesReceived added in v0.7.1

func (t *Dhcpv6Server_Counters) GetDeclinesReceived() uint64

GetDeclinesReceived retrieves the value of the leaf DeclinesReceived from the Dhcpv6Server_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 DeclinesReceived is set, it can safely use t.GetDeclinesReceived() 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.DeclinesReceived == nil' before retrieving the leaf's value.

func (*Dhcpv6Server_Counters) GetInformationRequestsReceived added in v0.7.1

func (t *Dhcpv6Server_Counters) GetInformationRequestsReceived() uint64

GetInformationRequestsReceived retrieves the value of the leaf InformationRequestsReceived from the Dhcpv6Server_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 InformationRequestsReceived is set, it can safely use t.GetInformationRequestsReceived() 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.InformationRequestsReceived == nil' before retrieving the leaf's value.

func (*Dhcpv6Server_Counters) GetNacksSent added in v0.7.1

func (t *Dhcpv6Server_Counters) GetNacksSent() uint64

GetNacksSent retrieves the value of the leaf NacksSent from the Dhcpv6Server_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 NacksSent is set, it can safely use t.GetNacksSent() 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.NacksSent == nil' before retrieving the leaf's value.

func (*Dhcpv6Server_Counters) GetRebindsReceived added in v0.7.1

func (t *Dhcpv6Server_Counters) GetRebindsReceived() uint64

GetRebindsReceived retrieves the value of the leaf RebindsReceived from the Dhcpv6Server_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 RebindsReceived is set, it can safely use t.GetRebindsReceived() 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.RebindsReceived == nil' before retrieving the leaf's value.

func (*Dhcpv6Server_Counters) GetReconfiguresSent added in v0.7.1

func (t *Dhcpv6Server_Counters) GetReconfiguresSent() uint64

GetReconfiguresSent retrieves the value of the leaf ReconfiguresSent from the Dhcpv6Server_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 ReconfiguresSent is set, it can safely use t.GetReconfiguresSent() 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.ReconfiguresSent == nil' before retrieving the leaf's value.

func (*Dhcpv6Server_Counters) GetRelayForwardsReceived added in v0.7.1

func (t *Dhcpv6Server_Counters) GetRelayForwardsReceived() uint64

GetRelayForwardsReceived retrieves the value of the leaf RelayForwardsReceived from the Dhcpv6Server_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 RelayForwardsReceived is set, it can safely use t.GetRelayForwardsReceived() 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.RelayForwardsReceived == nil' before retrieving the leaf's value.

func (*Dhcpv6Server_Counters) GetRelayRepliesSent added in v0.7.1

func (t *Dhcpv6Server_Counters) GetRelayRepliesSent() uint64

GetRelayRepliesSent retrieves the value of the leaf RelayRepliesSent from the Dhcpv6Server_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 RelayRepliesSent is set, it can safely use t.GetRelayRepliesSent() 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.RelayRepliesSent == nil' before retrieving the leaf's value.

func (*Dhcpv6Server_Counters) GetReleasesReceived added in v0.7.1

func (t *Dhcpv6Server_Counters) GetReleasesReceived() uint64

GetReleasesReceived retrieves the value of the leaf ReleasesReceived from the Dhcpv6Server_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 ReleasesReceived is set, it can safely use t.GetReleasesReceived() 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.ReleasesReceived == nil' before retrieving the leaf's value.

func (*Dhcpv6Server_Counters) GetRenewalsReceived added in v0.7.1

func (t *Dhcpv6Server_Counters) GetRenewalsReceived() uint64

GetRenewalsReceived retrieves the value of the leaf RenewalsReceived from the Dhcpv6Server_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 RenewalsReceived is set, it can safely use t.GetRenewalsReceived() 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.RenewalsReceived == nil' before retrieving the leaf's value.

func (*Dhcpv6Server_Counters) GetRepliesSent added in v0.7.1

func (t *Dhcpv6Server_Counters) GetRepliesSent() uint64

GetRepliesSent retrieves the value of the leaf RepliesSent from the Dhcpv6Server_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 RepliesSent is set, it can safely use t.GetRepliesSent() 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.RepliesSent == nil' before retrieving the leaf's value.

func (*Dhcpv6Server_Counters) GetRequestsReceived added in v0.7.1

func (t *Dhcpv6Server_Counters) GetRequestsReceived() uint64

GetRequestsReceived retrieves the value of the leaf RequestsReceived from the Dhcpv6Server_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 RequestsReceived is set, it can safely use t.GetRequestsReceived() 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.RequestsReceived == nil' before retrieving the leaf's value.

func (*Dhcpv6Server_Counters) GetSolicitsIgnored added in v0.7.1

func (t *Dhcpv6Server_Counters) GetSolicitsIgnored() uint64

GetSolicitsIgnored retrieves the value of the leaf SolicitsIgnored from the Dhcpv6Server_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 SolicitsIgnored is set, it can safely use t.GetSolicitsIgnored() 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.SolicitsIgnored == nil' before retrieving the leaf's value.

func (*Dhcpv6Server_Counters) GetSolicitsReceived added in v0.7.1

func (t *Dhcpv6Server_Counters) GetSolicitsReceived() uint64

GetSolicitsReceived retrieves the value of the leaf SolicitsReceived from the Dhcpv6Server_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 SolicitsReceived is set, it can safely use t.GetSolicitsReceived() 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.SolicitsReceived == nil' before retrieving the leaf's value.

func (*Dhcpv6Server_Counters) IsYANGGoStruct added in v0.7.1

func (*Dhcpv6Server_Counters) IsYANGGoStruct()

IsYANGGoStruct ensures that Dhcpv6Server_Counters implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Dhcpv6Server_Counters) PopulateDefaults added in v0.7.1

func (t *Dhcpv6Server_Counters) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Dhcpv6Server_Counters with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Dhcpv6Server_Counters) SetAdvertisementsSent added in v0.7.1

func (t *Dhcpv6Server_Counters) SetAdvertisementsSent(v uint64)

SetAdvertisementsSent sets the value of the leaf AdvertisementsSent in the Dhcpv6Server_Counters struct.

func (*Dhcpv6Server_Counters) SetConfirmsReceived added in v0.7.1

func (t *Dhcpv6Server_Counters) SetConfirmsReceived(v uint64)

SetConfirmsReceived sets the value of the leaf ConfirmsReceived in the Dhcpv6Server_Counters struct.

func (*Dhcpv6Server_Counters) SetDeclinesReceived added in v0.7.1

func (t *Dhcpv6Server_Counters) SetDeclinesReceived(v uint64)

SetDeclinesReceived sets the value of the leaf DeclinesReceived in the Dhcpv6Server_Counters struct.

func (*Dhcpv6Server_Counters) SetInformationRequestsReceived added in v0.7.1

func (t *Dhcpv6Server_Counters) SetInformationRequestsReceived(v uint64)

SetInformationRequestsReceived sets the value of the leaf InformationRequestsReceived in the Dhcpv6Server_Counters struct.

func (*Dhcpv6Server_Counters) SetNacksSent added in v0.7.1

func (t *Dhcpv6Server_Counters) SetNacksSent(v uint64)

SetNacksSent sets the value of the leaf NacksSent in the Dhcpv6Server_Counters struct.

func (*Dhcpv6Server_Counters) SetRebindsReceived added in v0.7.1

func (t *Dhcpv6Server_Counters) SetRebindsReceived(v uint64)

SetRebindsReceived sets the value of the leaf RebindsReceived in the Dhcpv6Server_Counters struct.

func (*Dhcpv6Server_Counters) SetReconfiguresSent added in v0.7.1

func (t *Dhcpv6Server_Counters) SetReconfiguresSent(v uint64)

SetReconfiguresSent sets the value of the leaf ReconfiguresSent in the Dhcpv6Server_Counters struct.

func (*Dhcpv6Server_Counters) SetRelayForwardsReceived added in v0.7.1

func (t *Dhcpv6Server_Counters) SetRelayForwardsReceived(v uint64)

SetRelayForwardsReceived sets the value of the leaf RelayForwardsReceived in the Dhcpv6Server_Counters struct.

func (*Dhcpv6Server_Counters) SetRelayRepliesSent added in v0.7.1

func (t *Dhcpv6Server_Counters) SetRelayRepliesSent(v uint64)

SetRelayRepliesSent sets the value of the leaf RelayRepliesSent in the Dhcpv6Server_Counters struct.

func (*Dhcpv6Server_Counters) SetReleasesReceived added in v0.7.1

func (t *Dhcpv6Server_Counters) SetReleasesReceived(v uint64)

SetReleasesReceived sets the value of the leaf ReleasesReceived in the Dhcpv6Server_Counters struct.

func (*Dhcpv6Server_Counters) SetRenewalsReceived added in v0.7.1

func (t *Dhcpv6Server_Counters) SetRenewalsReceived(v uint64)

SetRenewalsReceived sets the value of the leaf RenewalsReceived in the Dhcpv6Server_Counters struct.

func (*Dhcpv6Server_Counters) SetRepliesSent added in v0.7.1

func (t *Dhcpv6Server_Counters) SetRepliesSent(v uint64)

SetRepliesSent sets the value of the leaf RepliesSent in the Dhcpv6Server_Counters struct.

func (*Dhcpv6Server_Counters) SetRequestsReceived added in v0.7.1

func (t *Dhcpv6Server_Counters) SetRequestsReceived(v uint64)

SetRequestsReceived sets the value of the leaf RequestsReceived in the Dhcpv6Server_Counters struct.

func (*Dhcpv6Server_Counters) SetSolicitsIgnored added in v0.7.1

func (t *Dhcpv6Server_Counters) SetSolicitsIgnored(v uint64)

SetSolicitsIgnored sets the value of the leaf SolicitsIgnored in the Dhcpv6Server_Counters struct.

func (*Dhcpv6Server_Counters) SetSolicitsReceived added in v0.7.1

func (t *Dhcpv6Server_Counters) SetSolicitsReceived(v uint64)

SetSolicitsReceived sets the value of the leaf SolicitsReceived in the Dhcpv6Server_Counters struct.

func (*Dhcpv6Server_Counters) Validate added in v0.7.1

func (t *Dhcpv6Server_Counters) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Dhcpv6Server_Counters) ΛBelongingModule added in v0.7.1

func (*Dhcpv6Server_Counters) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Dhcpv6Server_Counters.

func (*Dhcpv6Server_Counters) ΛEnumTypeMap added in v0.7.1

func (t *Dhcpv6Server_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 (*Dhcpv6Server_Counters) ΛValidate added in v0.7.1

func (t *Dhcpv6Server_Counters) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Dhcpv6Server_Leases added in v0.7.1

type Dhcpv6Server_Leases struct {
	Hosts map[string]*Dhcpv6Server_Leases_Hosts `path:"leases-states/hosts" module:"open-traffic-generator-dhcpv6server/open-traffic-generator-dhcpv6server"`
}

Dhcpv6Server_Leases represents the /open-traffic-generator-dhcpv6server/dhcpv6-servers/dhcpv6-server/state/leases YANG schema element.

func (*Dhcpv6Server_Leases) AppendHosts added in v0.7.1

AppendHosts appends the supplied Dhcpv6Server_Leases_Hosts struct to the list Hosts of Dhcpv6Server_Leases. If the key value(s) specified in the supplied Dhcpv6Server_Leases_Hosts already exist in the list, an error is returned.

func (*Dhcpv6Server_Leases) DeleteHosts added in v0.7.1

func (t *Dhcpv6Server_Leases) DeleteHosts(Address string)

DeleteHosts deletes the value with the specified keys from the receiver Dhcpv6Server_Leases. If there is no such element, the function is a no-op.

func (*Dhcpv6Server_Leases) GetHosts added in v0.7.1

GetHosts retrieves the value with the specified key from the Hosts map field of Dhcpv6Server_Leases. 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 (*Dhcpv6Server_Leases) GetOrCreateHosts added in v0.7.1

func (t *Dhcpv6Server_Leases) GetOrCreateHosts(Address string) *Dhcpv6Server_Leases_Hosts

GetOrCreateHosts retrieves the value with the specified keys from the receiver Dhcpv6Server_Leases. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Dhcpv6Server_Leases) GetOrCreateHostsMap added in v0.7.1

func (t *Dhcpv6Server_Leases) GetOrCreateHostsMap() map[string]*Dhcpv6Server_Leases_Hosts

GetOrCreateHostsMap returns the list (map) from Dhcpv6Server_Leases.

It initializes the field if not already initialized.

func (*Dhcpv6Server_Leases) IsYANGGoStruct added in v0.7.1

func (*Dhcpv6Server_Leases) IsYANGGoStruct()

IsYANGGoStruct ensures that Dhcpv6Server_Leases implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Dhcpv6Server_Leases) NewHosts added in v0.7.1

func (t *Dhcpv6Server_Leases) NewHosts(Address string) (*Dhcpv6Server_Leases_Hosts, error)

NewHosts creates a new entry in the Hosts list of the Dhcpv6Server_Leases struct. The keys of the list are populated from the input arguments.

func (*Dhcpv6Server_Leases) PopulateDefaults added in v0.7.1

func (t *Dhcpv6Server_Leases) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Dhcpv6Server_Leases with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Dhcpv6Server_Leases) RenameHosts added in v0.7.1

func (t *Dhcpv6Server_Leases) RenameHosts(oldK, newK string) error

RenameHosts renames an entry in the list Hosts within the Dhcpv6Server_Leases struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Dhcpv6Server_Leases) Validate added in v0.7.1

func (t *Dhcpv6Server_Leases) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Dhcpv6Server_Leases) ΛBelongingModule added in v0.7.1

func (*Dhcpv6Server_Leases) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Dhcpv6Server_Leases.

func (*Dhcpv6Server_Leases) ΛEnumTypeMap added in v0.7.1

func (t *Dhcpv6Server_Leases) Λ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 (*Dhcpv6Server_Leases) ΛValidate added in v0.7.1

func (t *Dhcpv6Server_Leases) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Dhcpv6Server_Leases_Hosts added in v0.7.1

type Dhcpv6Server_Leases_Hosts struct {
	Address       *string `` /* 219-byte string literal not displayed */
	ClientId      *string `path:"state/client-id" module:"open-traffic-generator-dhcpv6server/open-traffic-generator-dhcpv6server"`
	InterfaceId   *string `path:"state/interface-id" module:"open-traffic-generator-dhcpv6server/open-traffic-generator-dhcpv6server"`
	PreferredTime *uint32 `path:"state/preferred-time" module:"open-traffic-generator-dhcpv6server/open-traffic-generator-dhcpv6server"`
	RebindTime    *uint32 `path:"state/rebind-time" module:"open-traffic-generator-dhcpv6server/open-traffic-generator-dhcpv6server"`
	RemoteId      *string `path:"state/remote-id" module:"open-traffic-generator-dhcpv6server/open-traffic-generator-dhcpv6server"`
	RenewTime     *uint32 `path:"state/renew-time" module:"open-traffic-generator-dhcpv6server/open-traffic-generator-dhcpv6server"`
	ValidTime     *uint32 `path:"state/valid-time" module:"open-traffic-generator-dhcpv6server/open-traffic-generator-dhcpv6server"`
}

Dhcpv6Server_Leases_Hosts represents the /open-traffic-generator-dhcpv6server/dhcpv6-servers/dhcpv6-server/state/leases/leases-states/hosts YANG schema element.

func (*Dhcpv6Server_Leases_Hosts) GetAddress added in v0.7.1

func (t *Dhcpv6Server_Leases_Hosts) GetAddress() string

GetAddress retrieves the value of the leaf Address from the Dhcpv6Server_Leases_Hosts 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 Address is set, it can safely use t.GetAddress() 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.Address == nil' before retrieving the leaf's value.

func (*Dhcpv6Server_Leases_Hosts) GetClientId added in v0.7.1

func (t *Dhcpv6Server_Leases_Hosts) GetClientId() string

GetClientId retrieves the value of the leaf ClientId from the Dhcpv6Server_Leases_Hosts 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 ClientId is set, it can safely use t.GetClientId() 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.ClientId == nil' before retrieving the leaf's value.

func (*Dhcpv6Server_Leases_Hosts) GetInterfaceId added in v0.7.1

func (t *Dhcpv6Server_Leases_Hosts) GetInterfaceId() string

GetInterfaceId retrieves the value of the leaf InterfaceId from the Dhcpv6Server_Leases_Hosts 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 InterfaceId is set, it can safely use t.GetInterfaceId() 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.InterfaceId == nil' before retrieving the leaf's value.

func (*Dhcpv6Server_Leases_Hosts) GetPreferredTime added in v0.7.1

func (t *Dhcpv6Server_Leases_Hosts) GetPreferredTime() uint32

GetPreferredTime retrieves the value of the leaf PreferredTime from the Dhcpv6Server_Leases_Hosts 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 PreferredTime is set, it can safely use t.GetPreferredTime() 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.PreferredTime == nil' before retrieving the leaf's value.

func (*Dhcpv6Server_Leases_Hosts) GetRebindTime added in v0.7.1

func (t *Dhcpv6Server_Leases_Hosts) GetRebindTime() uint32

GetRebindTime retrieves the value of the leaf RebindTime from the Dhcpv6Server_Leases_Hosts 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 RebindTime is set, it can safely use t.GetRebindTime() 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.RebindTime == nil' before retrieving the leaf's value.

func (*Dhcpv6Server_Leases_Hosts) GetRemoteId added in v0.7.1

func (t *Dhcpv6Server_Leases_Hosts) GetRemoteId() string

GetRemoteId retrieves the value of the leaf RemoteId from the Dhcpv6Server_Leases_Hosts 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 RemoteId is set, it can safely use t.GetRemoteId() 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.RemoteId == nil' before retrieving the leaf's value.

func (*Dhcpv6Server_Leases_Hosts) GetRenewTime added in v0.7.1

func (t *Dhcpv6Server_Leases_Hosts) GetRenewTime() uint32

GetRenewTime retrieves the value of the leaf RenewTime from the Dhcpv6Server_Leases_Hosts 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 RenewTime is set, it can safely use t.GetRenewTime() 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.RenewTime == nil' before retrieving the leaf's value.

func (*Dhcpv6Server_Leases_Hosts) GetValidTime added in v0.7.1

func (t *Dhcpv6Server_Leases_Hosts) GetValidTime() uint32

GetValidTime retrieves the value of the leaf ValidTime from the Dhcpv6Server_Leases_Hosts 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 ValidTime is set, it can safely use t.GetValidTime() 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.ValidTime == nil' before retrieving the leaf's value.

func (*Dhcpv6Server_Leases_Hosts) IsYANGGoStruct added in v0.7.1

func (*Dhcpv6Server_Leases_Hosts) IsYANGGoStruct()

IsYANGGoStruct ensures that Dhcpv6Server_Leases_Hosts implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Dhcpv6Server_Leases_Hosts) PopulateDefaults added in v0.7.1

func (t *Dhcpv6Server_Leases_Hosts) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Dhcpv6Server_Leases_Hosts with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Dhcpv6Server_Leases_Hosts) SetAddress added in v0.7.1

func (t *Dhcpv6Server_Leases_Hosts) SetAddress(v string)

SetAddress sets the value of the leaf Address in the Dhcpv6Server_Leases_Hosts struct.

func (*Dhcpv6Server_Leases_Hosts) SetClientId added in v0.7.1

func (t *Dhcpv6Server_Leases_Hosts) SetClientId(v string)

SetClientId sets the value of the leaf ClientId in the Dhcpv6Server_Leases_Hosts struct.

func (*Dhcpv6Server_Leases_Hosts) SetInterfaceId added in v0.7.1

func (t *Dhcpv6Server_Leases_Hosts) SetInterfaceId(v string)

SetInterfaceId sets the value of the leaf InterfaceId in the Dhcpv6Server_Leases_Hosts struct.

func (*Dhcpv6Server_Leases_Hosts) SetPreferredTime added in v0.7.1

func (t *Dhcpv6Server_Leases_Hosts) SetPreferredTime(v uint32)

SetPreferredTime sets the value of the leaf PreferredTime in the Dhcpv6Server_Leases_Hosts struct.

func (*Dhcpv6Server_Leases_Hosts) SetRebindTime added in v0.7.1

func (t *Dhcpv6Server_Leases_Hosts) SetRebindTime(v uint32)

SetRebindTime sets the value of the leaf RebindTime in the Dhcpv6Server_Leases_Hosts struct.

func (*Dhcpv6Server_Leases_Hosts) SetRemoteId added in v0.7.1

func (t *Dhcpv6Server_Leases_Hosts) SetRemoteId(v string)

SetRemoteId sets the value of the leaf RemoteId in the Dhcpv6Server_Leases_Hosts struct.

func (*Dhcpv6Server_Leases_Hosts) SetRenewTime added in v0.7.1

func (t *Dhcpv6Server_Leases_Hosts) SetRenewTime(v uint32)

SetRenewTime sets the value of the leaf RenewTime in the Dhcpv6Server_Leases_Hosts struct.

func (*Dhcpv6Server_Leases_Hosts) SetValidTime added in v0.7.1

func (t *Dhcpv6Server_Leases_Hosts) SetValidTime(v uint32)

SetValidTime sets the value of the leaf ValidTime in the Dhcpv6Server_Leases_Hosts struct.

func (*Dhcpv6Server_Leases_Hosts) Validate added in v0.7.1

Validate validates s against the YANG schema corresponding to its type.

func (*Dhcpv6Server_Leases_Hosts) ΛBelongingModule added in v0.7.1

func (*Dhcpv6Server_Leases_Hosts) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Dhcpv6Server_Leases_Hosts.

func (*Dhcpv6Server_Leases_Hosts) ΛEnumTypeMap added in v0.7.1

func (t *Dhcpv6Server_Leases_Hosts) Λ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 (*Dhcpv6Server_Leases_Hosts) ΛListKeyMap added in v0.7.1

func (t *Dhcpv6Server_Leases_Hosts) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Dhcpv6Server_Leases_Hosts struct, which is a YANG list entry.

func (*Dhcpv6Server_Leases_Hosts) ΛValidate added in v0.7.1

func (t *Dhcpv6Server_Leases_Hosts) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type E_AdjacencySid_AdjacencyType added in v0.8.0

type E_AdjacencySid_AdjacencyType int64

E_AdjacencySid_AdjacencyType is a derived int64 type which is used to represent the enumerated node AdjacencySid_AdjacencyType. An additional value named AdjacencySid_AdjacencyType_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 (
	// AdjacencySid_AdjacencyType_UNSET corresponds to the value UNSET of AdjacencySid_AdjacencyType
	AdjacencySid_AdjacencyType_UNSET E_AdjacencySid_AdjacencyType = 0
	// AdjacencySid_AdjacencyType_ADJ_SID corresponds to the value ADJ_SID of AdjacencySid_AdjacencyType
	AdjacencySid_AdjacencyType_ADJ_SID E_AdjacencySid_AdjacencyType = 1
	// AdjacencySid_AdjacencyType_LAN_ADJ_SID corresponds to the value LAN_ADJ_SID of AdjacencySid_AdjacencyType
	AdjacencySid_AdjacencyType_LAN_ADJ_SID E_AdjacencySid_AdjacencyType = 2
)

func (E_AdjacencySid_AdjacencyType) IsYANGGoEnum added in v0.8.0

func (E_AdjacencySid_AdjacencyType) IsYANGGoEnum()

IsYANGGoEnum ensures that AdjacencySid_AdjacencyType implements the yang.GoEnum interface. This ensures that AdjacencySid_AdjacencyType can be identified as a mapped type for a YANG enumeration.

func (E_AdjacencySid_AdjacencyType) String added in v0.8.0

String returns a logging-friendly string for E_AdjacencySid_AdjacencyType.

func (E_AdjacencySid_AdjacencyType) ΛMap added in v0.8.0

ΛMap returns the value lookup map associated with AdjacencySid_AdjacencyType.

type E_AdjacencySid_Flags added in v0.8.0

type E_AdjacencySid_Flags int64

E_AdjacencySid_Flags is a derived int64 type which is used to represent the enumerated node AdjacencySid_Flags. An additional value named AdjacencySid_Flags_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 (
	// AdjacencySid_Flags_UNSET corresponds to the value UNSET of AdjacencySid_Flags
	AdjacencySid_Flags_UNSET E_AdjacencySid_Flags = 0
	// AdjacencySid_Flags_ADDRESS_FAMILY corresponds to the value ADDRESS_FAMILY of AdjacencySid_Flags
	AdjacencySid_Flags_ADDRESS_FAMILY E_AdjacencySid_Flags = 1
	// AdjacencySid_Flags_BACKUP corresponds to the value BACKUP of AdjacencySid_Flags
	AdjacencySid_Flags_BACKUP E_AdjacencySid_Flags = 2
	// AdjacencySid_Flags_VALUE corresponds to the value VALUE of AdjacencySid_Flags
	AdjacencySid_Flags_VALUE E_AdjacencySid_Flags = 3
	// AdjacencySid_Flags_LOCAL corresponds to the value LOCAL of AdjacencySid_Flags
	AdjacencySid_Flags_LOCAL E_AdjacencySid_Flags = 4
	// AdjacencySid_Flags_SET corresponds to the value SET of AdjacencySid_Flags
	AdjacencySid_Flags_SET E_AdjacencySid_Flags = 5
	// AdjacencySid_Flags_PERSISTENT corresponds to the value PERSISTENT of AdjacencySid_Flags
	AdjacencySid_Flags_PERSISTENT E_AdjacencySid_Flags = 6
)

func (E_AdjacencySid_Flags) IsYANGGoEnum added in v0.8.0

func (E_AdjacencySid_Flags) IsYANGGoEnum()

IsYANGGoEnum ensures that AdjacencySid_Flags implements the yang.GoEnum interface. This ensures that AdjacencySid_Flags can be identified as a mapped type for a YANG enumeration.

func (E_AdjacencySid_Flags) String added in v0.8.0

func (e E_AdjacencySid_Flags) String() string

String returns a logging-friendly string for E_AdjacencySid_Flags.

func (E_AdjacencySid_Flags) ΛMap added in v0.8.0

ΛMap returns the value lookup map associated with AdjacencySid_Flags.

type E_BgpPeer_SessionState

type E_BgpPeer_SessionState int64

E_BgpPeer_SessionState is a derived int64 type which is used to represent the enumerated node BgpPeer_SessionState. An additional value named BgpPeer_SessionState_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 (
	// BgpPeer_SessionState_UNSET corresponds to the value UNSET of BgpPeer_SessionState
	BgpPeer_SessionState_UNSET E_BgpPeer_SessionState = 0
	// BgpPeer_SessionState_IDLE corresponds to the value IDLE of BgpPeer_SessionState
	BgpPeer_SessionState_IDLE E_BgpPeer_SessionState = 1
	// BgpPeer_SessionState_CONNECT corresponds to the value CONNECT of BgpPeer_SessionState
	BgpPeer_SessionState_CONNECT E_BgpPeer_SessionState = 2
	// BgpPeer_SessionState_ACTIVE corresponds to the value ACTIVE of BgpPeer_SessionState
	BgpPeer_SessionState_ACTIVE E_BgpPeer_SessionState = 3
	// BgpPeer_SessionState_OPEN_SENT corresponds to the value OPEN_SENT of BgpPeer_SessionState
	BgpPeer_SessionState_OPEN_SENT E_BgpPeer_SessionState = 4
	// BgpPeer_SessionState_OPEN_CONFIRM corresponds to the value OPEN_CONFIRM of BgpPeer_SessionState
	BgpPeer_SessionState_OPEN_CONFIRM E_BgpPeer_SessionState = 5
	// BgpPeer_SessionState_ESTABLISHED corresponds to the value ESTABLISHED of BgpPeer_SessionState
	BgpPeer_SessionState_ESTABLISHED E_BgpPeer_SessionState = 6
)

func (E_BgpPeer_SessionState) IsYANGGoEnum

func (E_BgpPeer_SessionState) IsYANGGoEnum()

IsYANGGoEnum ensures that BgpPeer_SessionState implements the yang.GoEnum interface. This ensures that BgpPeer_SessionState can be identified as a mapped type for a YANG enumeration.

func (E_BgpPeer_SessionState) String

func (e E_BgpPeer_SessionState) String() string

String returns a logging-friendly string for E_BgpPeer_SessionState.

func (E_BgpPeer_SessionState) ΛMap

ΛMap returns the value lookup map associated with BgpPeer_SessionState.

type E_Capabilities_Name

type E_Capabilities_Name int64

E_Capabilities_Name is a derived int64 type which is used to represent the enumerated node Capabilities_Name. An additional value named Capabilities_Name_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 (
	// Capabilities_Name_UNSET corresponds to the value UNSET of Capabilities_Name
	Capabilities_Name_UNSET E_Capabilities_Name = 0
	// Capabilities_Name_MAC_BRIDGE corresponds to the value MAC_BRIDGE of Capabilities_Name
	Capabilities_Name_MAC_BRIDGE E_Capabilities_Name = 1
	// Capabilities_Name_TWO_PORT_MAC_RELAY corresponds to the value TWO_PORT_MAC_RELAY of Capabilities_Name
	Capabilities_Name_TWO_PORT_MAC_RELAY E_Capabilities_Name = 2
	// Capabilities_Name_REPEATER corresponds to the value REPEATER of Capabilities_Name
	Capabilities_Name_REPEATER E_Capabilities_Name = 3
	// Capabilities_Name_DOCSIS_CABLE_DEVICE corresponds to the value DOCSIS_CABLE_DEVICE of Capabilities_Name
	Capabilities_Name_DOCSIS_CABLE_DEVICE E_Capabilities_Name = 4
	// Capabilities_Name_S_VLAN corresponds to the value S_VLAN of Capabilities_Name
	Capabilities_Name_S_VLAN E_Capabilities_Name = 5
	// Capabilities_Name_TELEPHONE corresponds to the value TELEPHONE of Capabilities_Name
	Capabilities_Name_TELEPHONE E_Capabilities_Name = 6
	// Capabilities_Name_OTHER corresponds to the value OTHER of Capabilities_Name
	Capabilities_Name_OTHER E_Capabilities_Name = 7
	// Capabilities_Name_ROUTER corresponds to the value ROUTER of Capabilities_Name
	Capabilities_Name_ROUTER E_Capabilities_Name = 8
	// Capabilities_Name_C_VLAN corresponds to the value C_VLAN of Capabilities_Name
	Capabilities_Name_C_VLAN E_Capabilities_Name = 9
	// Capabilities_Name_STATION_ONLY corresponds to the value STATION_ONLY of Capabilities_Name
	Capabilities_Name_STATION_ONLY E_Capabilities_Name = 10
	// Capabilities_Name_WLAN_ACCESS_POINT corresponds to the value WLAN_ACCESS_POINT of Capabilities_Name
	Capabilities_Name_WLAN_ACCESS_POINT E_Capabilities_Name = 11
)

func (E_Capabilities_Name) IsYANGGoEnum

func (E_Capabilities_Name) IsYANGGoEnum()

IsYANGGoEnum ensures that Capabilities_Name implements the yang.GoEnum interface. This ensures that Capabilities_Name can be identified as a mapped type for a YANG enumeration.

func (E_Capabilities_Name) String

func (e E_Capabilities_Name) String() string

String returns a logging-friendly string for E_Capabilities_Name.

func (E_Capabilities_Name) ΛMap

ΛMap returns the value lookup map associated with Capabilities_Name.

type E_Capability_Flags added in v0.8.0

type E_Capability_Flags int64

E_Capability_Flags is a derived int64 type which is used to represent the enumerated node Capability_Flags. An additional value named Capability_Flags_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 (
	// Capability_Flags_UNSET corresponds to the value UNSET of Capability_Flags
	Capability_Flags_UNSET E_Capability_Flags = 0
	// Capability_Flags_FLOOD corresponds to the value FLOOD of Capability_Flags
	Capability_Flags_FLOOD E_Capability_Flags = 1
	// Capability_Flags_DOWN corresponds to the value DOWN of Capability_Flags
	Capability_Flags_DOWN E_Capability_Flags = 2
)

func (E_Capability_Flags) IsYANGGoEnum added in v0.8.0

func (E_Capability_Flags) IsYANGGoEnum()

IsYANGGoEnum ensures that Capability_Flags implements the yang.GoEnum interface. This ensures that Capability_Flags can be identified as a mapped type for a YANG enumeration.

func (E_Capability_Flags) String added in v0.8.0

func (e E_Capability_Flags) String() string

String returns a logging-friendly string for E_Capability_Flags.

func (E_Capability_Flags) ΛMap added in v0.8.0

ΛMap returns the value lookup map associated with Capability_Flags.

type E_Component_Name added in v0.7.1

type E_Component_Name int64

E_Component_Name is a derived int64 type which is used to represent the enumerated node Component_Name. An additional value named Component_Name_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 (
	// Component_Name_UNSET corresponds to the value UNSET of Component_Name
	Component_Name_UNSET E_Component_Name = 0
	// Component_Name_keng_controller corresponds to the value keng_controller of Component_Name
	Component_Name_keng_controller E_Component_Name = 1
)

func (E_Component_Name) IsYANGGoEnum added in v0.7.1

func (E_Component_Name) IsYANGGoEnum()

IsYANGGoEnum ensures that Component_Name implements the yang.GoEnum interface. This ensures that Component_Name can be identified as a mapped type for a YANG enumeration.

func (E_Component_Name) String added in v0.7.1

func (e E_Component_Name) String() string

String returns a logging-friendly string for E_Component_Name.

func (E_Component_Name) ΛMap added in v0.7.1

ΛMap returns the value lookup map associated with Component_Name.

type E_Ero_Type

type E_Ero_Type int64

E_Ero_Type is a derived int64 type which is used to represent the enumerated node Ero_Type. An additional value named Ero_Type_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 (
	// Ero_Type_UNSET corresponds to the value UNSET of Ero_Type
	Ero_Type_UNSET E_Ero_Type = 0
	// Ero_Type_IPV4 corresponds to the value IPV4 of Ero_Type
	Ero_Type_IPV4 E_Ero_Type = 1
	// Ero_Type_IPV6 corresponds to the value IPV6 of Ero_Type
	Ero_Type_IPV6 E_Ero_Type = 2
	// Ero_Type_ASN corresponds to the value ASN of Ero_Type
	Ero_Type_ASN E_Ero_Type = 3
	// Ero_Type_ASN4 corresponds to the value ASN4 of Ero_Type
	Ero_Type_ASN4 E_Ero_Type = 4
	// Ero_Type_LABEL corresponds to the value LABEL of Ero_Type
	Ero_Type_LABEL E_Ero_Type = 5
	// Ero_Type_UNNUMBERED_INTERFACE corresponds to the value UNNUMBERED_INTERFACE of Ero_Type
	Ero_Type_UNNUMBERED_INTERFACE E_Ero_Type = 6
)

func (E_Ero_Type) IsYANGGoEnum

func (E_Ero_Type) IsYANGGoEnum()

IsYANGGoEnum ensures that Ero_Type implements the yang.GoEnum interface. This ensures that Ero_Type can be identified as a mapped type for a YANG enumeration.

func (E_Ero_Type) String

func (e E_Ero_Type) String() string

String returns a logging-friendly string for E_Ero_Type.

func (E_Ero_Type) ΛMap

func (E_Ero_Type) ΛMap() map[string]map[int64]ygot.EnumDefinition

ΛMap returns the value lookup map associated with Ero_Type.

type E_ExtendedCommunity_BgpExtendedCommunityStructuredType added in v0.5.8

type E_ExtendedCommunity_BgpExtendedCommunityStructuredType int64

E_ExtendedCommunity_BgpExtendedCommunityStructuredType is a derived int64 type which is used to represent the enumerated node ExtendedCommunity_BgpExtendedCommunityStructuredType. An additional value named ExtendedCommunity_BgpExtendedCommunityStructuredType_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 (
	// ExtendedCommunity_BgpExtendedCommunityStructuredType_UNSET corresponds to the value UNSET of ExtendedCommunity_BgpExtendedCommunityStructuredType
	ExtendedCommunity_BgpExtendedCommunityStructuredType_UNSET E_ExtendedCommunity_BgpExtendedCommunityStructuredType = 0
	// ExtendedCommunity_BgpExtendedCommunityStructuredType_TRANSITIVE_2OCTET_AS_TYPE corresponds to the value TRANSITIVE_2OCTET_AS_TYPE of ExtendedCommunity_BgpExtendedCommunityStructuredType
	ExtendedCommunity_BgpExtendedCommunityStructuredType_TRANSITIVE_2OCTET_AS_TYPE E_ExtendedCommunity_BgpExtendedCommunityStructuredType = 1
	// ExtendedCommunity_BgpExtendedCommunityStructuredType_TRANSITIVE_IPV4_ADDRESS_TYPE corresponds to the value TRANSITIVE_IPV4_ADDRESS_TYPE of ExtendedCommunity_BgpExtendedCommunityStructuredType
	ExtendedCommunity_BgpExtendedCommunityStructuredType_TRANSITIVE_IPV4_ADDRESS_TYPE E_ExtendedCommunity_BgpExtendedCommunityStructuredType = 2
	// ExtendedCommunity_BgpExtendedCommunityStructuredType_TRANSITIVE_4OCTET_AS_TYPE corresponds to the value TRANSITIVE_4OCTET_AS_TYPE of ExtendedCommunity_BgpExtendedCommunityStructuredType
	ExtendedCommunity_BgpExtendedCommunityStructuredType_TRANSITIVE_4OCTET_AS_TYPE E_ExtendedCommunity_BgpExtendedCommunityStructuredType = 3
	// ExtendedCommunity_BgpExtendedCommunityStructuredType_TRANSITIVE_OPAQUE_TYPE corresponds to the value TRANSITIVE_OPAQUE_TYPE of ExtendedCommunity_BgpExtendedCommunityStructuredType
	ExtendedCommunity_BgpExtendedCommunityStructuredType_TRANSITIVE_OPAQUE_TYPE E_ExtendedCommunity_BgpExtendedCommunityStructuredType = 4
	// ExtendedCommunity_BgpExtendedCommunityStructuredType_NON_TRANSITIVE_2OCTET_AS_TYPE corresponds to the value NON_TRANSITIVE_2OCTET_AS_TYPE of ExtendedCommunity_BgpExtendedCommunityStructuredType
	ExtendedCommunity_BgpExtendedCommunityStructuredType_NON_TRANSITIVE_2OCTET_AS_TYPE E_ExtendedCommunity_BgpExtendedCommunityStructuredType = 5
)

func (E_ExtendedCommunity_BgpExtendedCommunityStructuredType) IsYANGGoEnum added in v0.5.8

IsYANGGoEnum ensures that ExtendedCommunity_BgpExtendedCommunityStructuredType implements the yang.GoEnum interface. This ensures that ExtendedCommunity_BgpExtendedCommunityStructuredType can be identified as a mapped type for a YANG enumeration.

func (E_ExtendedCommunity_BgpExtendedCommunityStructuredType) String added in v0.5.8

String returns a logging-friendly string for E_ExtendedCommunity_BgpExtendedCommunityStructuredType.

func (E_ExtendedCommunity_BgpExtendedCommunityStructuredType) ΛMap added in v0.5.8

ΛMap returns the value lookup map associated with ExtendedCommunity_BgpExtendedCommunityStructuredType.

type E_ExtendedIpv4Reachability_Prefix_RedistributionType

type E_ExtendedIpv4Reachability_Prefix_RedistributionType int64

E_ExtendedIpv4Reachability_Prefix_RedistributionType is a derived int64 type which is used to represent the enumerated node ExtendedIpv4Reachability_Prefix_RedistributionType. An additional value named ExtendedIpv4Reachability_Prefix_RedistributionType_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 (
	// ExtendedIpv4Reachability_Prefix_RedistributionType_UNSET corresponds to the value UNSET of ExtendedIpv4Reachability_Prefix_RedistributionType
	ExtendedIpv4Reachability_Prefix_RedistributionType_UNSET E_ExtendedIpv4Reachability_Prefix_RedistributionType = 0
	// ExtendedIpv4Reachability_Prefix_RedistributionType_UP corresponds to the value UP of ExtendedIpv4Reachability_Prefix_RedistributionType
	ExtendedIpv4Reachability_Prefix_RedistributionType_UP E_ExtendedIpv4Reachability_Prefix_RedistributionType = 1
	// ExtendedIpv4Reachability_Prefix_RedistributionType_DOWN corresponds to the value DOWN of ExtendedIpv4Reachability_Prefix_RedistributionType
	ExtendedIpv4Reachability_Prefix_RedistributionType_DOWN E_ExtendedIpv4Reachability_Prefix_RedistributionType = 2
)

func (E_ExtendedIpv4Reachability_Prefix_RedistributionType) IsYANGGoEnum

IsYANGGoEnum ensures that ExtendedIpv4Reachability_Prefix_RedistributionType implements the yang.GoEnum interface. This ensures that ExtendedIpv4Reachability_Prefix_RedistributionType can be identified as a mapped type for a YANG enumeration.

func (E_ExtendedIpv4Reachability_Prefix_RedistributionType) String

String returns a logging-friendly string for E_ExtendedIpv4Reachability_Prefix_RedistributionType.

func (E_ExtendedIpv4Reachability_Prefix_RedistributionType) ΛMap

ΛMap returns the value lookup map associated with ExtendedIpv4Reachability_Prefix_RedistributionType.

type E_Ipv4ExternalReachability_Prefix_OriginType

type E_Ipv4ExternalReachability_Prefix_OriginType int64

E_Ipv4ExternalReachability_Prefix_OriginType is a derived int64 type which is used to represent the enumerated node Ipv4ExternalReachability_Prefix_OriginType. An additional value named Ipv4ExternalReachability_Prefix_OriginType_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 (
	// Ipv4ExternalReachability_Prefix_OriginType_UNSET corresponds to the value UNSET of Ipv4ExternalReachability_Prefix_OriginType
	Ipv4ExternalReachability_Prefix_OriginType_UNSET E_Ipv4ExternalReachability_Prefix_OriginType = 0
	// Ipv4ExternalReachability_Prefix_OriginType_INTERNAL corresponds to the value INTERNAL of Ipv4ExternalReachability_Prefix_OriginType
	Ipv4ExternalReachability_Prefix_OriginType_INTERNAL E_Ipv4ExternalReachability_Prefix_OriginType = 1
	// Ipv4ExternalReachability_Prefix_OriginType_EXTERNAL corresponds to the value EXTERNAL of Ipv4ExternalReachability_Prefix_OriginType
	Ipv4ExternalReachability_Prefix_OriginType_EXTERNAL E_Ipv4ExternalReachability_Prefix_OriginType = 2
)

func (E_Ipv4ExternalReachability_Prefix_OriginType) IsYANGGoEnum

IsYANGGoEnum ensures that Ipv4ExternalReachability_Prefix_OriginType implements the yang.GoEnum interface. This ensures that Ipv4ExternalReachability_Prefix_OriginType can be identified as a mapped type for a YANG enumeration.

func (E_Ipv4ExternalReachability_Prefix_OriginType) String

String returns a logging-friendly string for E_Ipv4ExternalReachability_Prefix_OriginType.

func (E_Ipv4ExternalReachability_Prefix_OriginType) ΛMap

ΛMap returns the value lookup map associated with Ipv4ExternalReachability_Prefix_OriginType.

type E_Ipv4ExternalReachability_Prefix_RedistributionType

type E_Ipv4ExternalReachability_Prefix_RedistributionType int64

E_Ipv4ExternalReachability_Prefix_RedistributionType is a derived int64 type which is used to represent the enumerated node Ipv4ExternalReachability_Prefix_RedistributionType. An additional value named Ipv4ExternalReachability_Prefix_RedistributionType_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 (
	// Ipv4ExternalReachability_Prefix_RedistributionType_UNSET corresponds to the value UNSET of Ipv4ExternalReachability_Prefix_RedistributionType
	Ipv4ExternalReachability_Prefix_RedistributionType_UNSET E_Ipv4ExternalReachability_Prefix_RedistributionType = 0
	// Ipv4ExternalReachability_Prefix_RedistributionType_UP corresponds to the value UP of Ipv4ExternalReachability_Prefix_RedistributionType
	Ipv4ExternalReachability_Prefix_RedistributionType_UP E_Ipv4ExternalReachability_Prefix_RedistributionType = 1
	// Ipv4ExternalReachability_Prefix_RedistributionType_DOWN corresponds to the value DOWN of Ipv4ExternalReachability_Prefix_RedistributionType
	Ipv4ExternalReachability_Prefix_RedistributionType_DOWN E_Ipv4ExternalReachability_Prefix_RedistributionType = 2
)

func (E_Ipv4ExternalReachability_Prefix_RedistributionType) IsYANGGoEnum

IsYANGGoEnum ensures that Ipv4ExternalReachability_Prefix_RedistributionType implements the yang.GoEnum interface. This ensures that Ipv4ExternalReachability_Prefix_RedistributionType can be identified as a mapped type for a YANG enumeration.

func (E_Ipv4ExternalReachability_Prefix_RedistributionType) String

String returns a logging-friendly string for E_Ipv4ExternalReachability_Prefix_RedistributionType.

func (E_Ipv4ExternalReachability_Prefix_RedistributionType) ΛMap

ΛMap returns the value lookup map associated with Ipv4ExternalReachability_Prefix_RedistributionType.

type E_Ipv4Lsp_LastFlapReason

type E_Ipv4Lsp_LastFlapReason int64

E_Ipv4Lsp_LastFlapReason is a derived int64 type which is used to represent the enumerated node Ipv4Lsp_LastFlapReason. An additional value named Ipv4Lsp_LastFlapReason_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 (
	// Ipv4Lsp_LastFlapReason_UNSET corresponds to the value UNSET of Ipv4Lsp_LastFlapReason
	Ipv4Lsp_LastFlapReason_UNSET E_Ipv4Lsp_LastFlapReason = 0
	// Ipv4Lsp_LastFlapReason_RESVTEAR corresponds to the value RESVTEAR of Ipv4Lsp_LastFlapReason
	Ipv4Lsp_LastFlapReason_RESVTEAR E_Ipv4Lsp_LastFlapReason = 1
	// Ipv4Lsp_LastFlapReason_PATHTEAR corresponds to the value PATHTEAR of Ipv4Lsp_LastFlapReason
	Ipv4Lsp_LastFlapReason_PATHTEAR E_Ipv4Lsp_LastFlapReason = 2
	// Ipv4Lsp_LastFlapReason_PATHTIMEOUT corresponds to the value PATHTIMEOUT of Ipv4Lsp_LastFlapReason
	Ipv4Lsp_LastFlapReason_PATHTIMEOUT E_Ipv4Lsp_LastFlapReason = 3
)

func (E_Ipv4Lsp_LastFlapReason) IsYANGGoEnum

func (E_Ipv4Lsp_LastFlapReason) IsYANGGoEnum()

IsYANGGoEnum ensures that Ipv4Lsp_LastFlapReason implements the yang.GoEnum interface. This ensures that Ipv4Lsp_LastFlapReason can be identified as a mapped type for a YANG enumeration.

func (E_Ipv4Lsp_LastFlapReason) String

func (e E_Ipv4Lsp_LastFlapReason) String() string

String returns a logging-friendly string for E_Ipv4Lsp_LastFlapReason.

func (E_Ipv4Lsp_LastFlapReason) ΛMap

ΛMap returns the value lookup map associated with Ipv4Lsp_LastFlapReason.

type E_Ipv4Lsp_SessionStatus

type E_Ipv4Lsp_SessionStatus int64

E_Ipv4Lsp_SessionStatus is a derived int64 type which is used to represent the enumerated node Ipv4Lsp_SessionStatus. An additional value named Ipv4Lsp_SessionStatus_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 (
	// Ipv4Lsp_SessionStatus_UNSET corresponds to the value UNSET of Ipv4Lsp_SessionStatus
	Ipv4Lsp_SessionStatus_UNSET E_Ipv4Lsp_SessionStatus = 0
	// Ipv4Lsp_SessionStatus_UP corresponds to the value UP of Ipv4Lsp_SessionStatus
	Ipv4Lsp_SessionStatus_UP E_Ipv4Lsp_SessionStatus = 1
	// Ipv4Lsp_SessionStatus_DOWN corresponds to the value DOWN of Ipv4Lsp_SessionStatus
	Ipv4Lsp_SessionStatus_DOWN E_Ipv4Lsp_SessionStatus = 2
)

func (E_Ipv4Lsp_SessionStatus) IsYANGGoEnum

func (E_Ipv4Lsp_SessionStatus) IsYANGGoEnum()

IsYANGGoEnum ensures that Ipv4Lsp_SessionStatus implements the yang.GoEnum interface. This ensures that Ipv4Lsp_SessionStatus can be identified as a mapped type for a YANG enumeration.

func (E_Ipv4Lsp_SessionStatus) String

func (e E_Ipv4Lsp_SessionStatus) String() string

String returns a logging-friendly string for E_Ipv4Lsp_SessionStatus.

func (E_Ipv4Lsp_SessionStatus) ΛMap

ΛMap returns the value lookup map associated with Ipv4Lsp_SessionStatus.

type E_Ipv6Reachability_Prefix_OriginType

type E_Ipv6Reachability_Prefix_OriginType int64

E_Ipv6Reachability_Prefix_OriginType is a derived int64 type which is used to represent the enumerated node Ipv6Reachability_Prefix_OriginType. An additional value named Ipv6Reachability_Prefix_OriginType_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 (
	// Ipv6Reachability_Prefix_OriginType_UNSET corresponds to the value UNSET of Ipv6Reachability_Prefix_OriginType
	Ipv6Reachability_Prefix_OriginType_UNSET E_Ipv6Reachability_Prefix_OriginType = 0
	// Ipv6Reachability_Prefix_OriginType_INTERNAL corresponds to the value INTERNAL of Ipv6Reachability_Prefix_OriginType
	Ipv6Reachability_Prefix_OriginType_INTERNAL E_Ipv6Reachability_Prefix_OriginType = 1
	// Ipv6Reachability_Prefix_OriginType_EXTERNAL corresponds to the value EXTERNAL of Ipv6Reachability_Prefix_OriginType
	Ipv6Reachability_Prefix_OriginType_EXTERNAL E_Ipv6Reachability_Prefix_OriginType = 2
)

func (E_Ipv6Reachability_Prefix_OriginType) IsYANGGoEnum

func (E_Ipv6Reachability_Prefix_OriginType) IsYANGGoEnum()

IsYANGGoEnum ensures that Ipv6Reachability_Prefix_OriginType implements the yang.GoEnum interface. This ensures that Ipv6Reachability_Prefix_OriginType can be identified as a mapped type for a YANG enumeration.

func (E_Ipv6Reachability_Prefix_OriginType) String

String returns a logging-friendly string for E_Ipv6Reachability_Prefix_OriginType.

func (E_Ipv6Reachability_Prefix_OriginType) ΛMap

ΛMap returns the value lookup map associated with Ipv6Reachability_Prefix_OriginType.

type E_Ipv6Reachability_Prefix_RedistributionType

type E_Ipv6Reachability_Prefix_RedistributionType int64

E_Ipv6Reachability_Prefix_RedistributionType is a derived int64 type which is used to represent the enumerated node Ipv6Reachability_Prefix_RedistributionType. An additional value named Ipv6Reachability_Prefix_RedistributionType_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 (
	// Ipv6Reachability_Prefix_RedistributionType_UNSET corresponds to the value UNSET of Ipv6Reachability_Prefix_RedistributionType
	Ipv6Reachability_Prefix_RedistributionType_UNSET E_Ipv6Reachability_Prefix_RedistributionType = 0
	// Ipv6Reachability_Prefix_RedistributionType_UP corresponds to the value UP of Ipv6Reachability_Prefix_RedistributionType
	Ipv6Reachability_Prefix_RedistributionType_UP E_Ipv6Reachability_Prefix_RedistributionType = 1
	// Ipv6Reachability_Prefix_RedistributionType_DOWN corresponds to the value DOWN of Ipv6Reachability_Prefix_RedistributionType
	Ipv6Reachability_Prefix_RedistributionType_DOWN E_Ipv6Reachability_Prefix_RedistributionType = 2
)

func (E_Ipv6Reachability_Prefix_RedistributionType) IsYANGGoEnum

IsYANGGoEnum ensures that Ipv6Reachability_Prefix_RedistributionType implements the yang.GoEnum interface. This ensures that Ipv6Reachability_Prefix_RedistributionType can be identified as a mapped type for a YANG enumeration.

func (E_Ipv6Reachability_Prefix_RedistributionType) String

String returns a logging-friendly string for E_Ipv6Reachability_Prefix_RedistributionType.

func (E_Ipv6Reachability_Prefix_RedistributionType) ΛMap

ΛMap returns the value lookup map associated with Ipv6Reachability_Prefix_RedistributionType.

type E_Lacp_LacpActivityType

type E_Lacp_LacpActivityType int64

E_Lacp_LacpActivityType is a derived int64 type which is used to represent the enumerated node Lacp_LacpActivityType. An additional value named Lacp_LacpActivityType_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 (
	// Lacp_LacpActivityType_UNSET corresponds to the value UNSET of Lacp_LacpActivityType
	Lacp_LacpActivityType_UNSET E_Lacp_LacpActivityType = 0
	// Lacp_LacpActivityType_ACTIVE corresponds to the value ACTIVE of Lacp_LacpActivityType
	Lacp_LacpActivityType_ACTIVE E_Lacp_LacpActivityType = 1
	// Lacp_LacpActivityType_PASSIVE corresponds to the value PASSIVE of Lacp_LacpActivityType
	Lacp_LacpActivityType_PASSIVE E_Lacp_LacpActivityType = 2
)

func (E_Lacp_LacpActivityType) IsYANGGoEnum

func (E_Lacp_LacpActivityType) IsYANGGoEnum()

IsYANGGoEnum ensures that Lacp_LacpActivityType implements the yang.GoEnum interface. This ensures that Lacp_LacpActivityType can be identified as a mapped type for a YANG enumeration.

func (E_Lacp_LacpActivityType) String

func (e E_Lacp_LacpActivityType) String() string

String returns a logging-friendly string for E_Lacp_LacpActivityType.

func (E_Lacp_LacpActivityType) ΛMap

ΛMap returns the value lookup map associated with Lacp_LacpActivityType.

type E_Lacp_LacpSynchronizationType

type E_Lacp_LacpSynchronizationType int64

E_Lacp_LacpSynchronizationType is a derived int64 type which is used to represent the enumerated node Lacp_LacpSynchronizationType. An additional value named Lacp_LacpSynchronizationType_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 (
	// Lacp_LacpSynchronizationType_UNSET corresponds to the value UNSET of Lacp_LacpSynchronizationType
	Lacp_LacpSynchronizationType_UNSET E_Lacp_LacpSynchronizationType = 0
	// Lacp_LacpSynchronizationType_IN_SYNC corresponds to the value IN_SYNC of Lacp_LacpSynchronizationType
	Lacp_LacpSynchronizationType_IN_SYNC E_Lacp_LacpSynchronizationType = 1
	// Lacp_LacpSynchronizationType_OUT_SYNC corresponds to the value OUT_SYNC of Lacp_LacpSynchronizationType
	Lacp_LacpSynchronizationType_OUT_SYNC E_Lacp_LacpSynchronizationType = 2
)

func (E_Lacp_LacpSynchronizationType) IsYANGGoEnum

func (E_Lacp_LacpSynchronizationType) IsYANGGoEnum()

IsYANGGoEnum ensures that Lacp_LacpSynchronizationType implements the yang.GoEnum interface. This ensures that Lacp_LacpSynchronizationType can be identified as a mapped type for a YANG enumeration.

func (E_Lacp_LacpSynchronizationType) String

String returns a logging-friendly string for E_Lacp_LacpSynchronizationType.

func (E_Lacp_LacpSynchronizationType) ΛMap

ΛMap returns the value lookup map associated with Lacp_LacpSynchronizationType.

type E_Lacp_LacpTimeoutType

type E_Lacp_LacpTimeoutType int64

E_Lacp_LacpTimeoutType is a derived int64 type which is used to represent the enumerated node Lacp_LacpTimeoutType. An additional value named Lacp_LacpTimeoutType_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 (
	// Lacp_LacpTimeoutType_UNSET corresponds to the value UNSET of Lacp_LacpTimeoutType
	Lacp_LacpTimeoutType_UNSET E_Lacp_LacpTimeoutType = 0
	// Lacp_LacpTimeoutType_LONG corresponds to the value LONG of Lacp_LacpTimeoutType
	Lacp_LacpTimeoutType_LONG E_Lacp_LacpTimeoutType = 1
	// Lacp_LacpTimeoutType_SHORT corresponds to the value SHORT of Lacp_LacpTimeoutType
	Lacp_LacpTimeoutType_SHORT E_Lacp_LacpTimeoutType = 2
)

func (E_Lacp_LacpTimeoutType) IsYANGGoEnum

func (E_Lacp_LacpTimeoutType) IsYANGGoEnum()

IsYANGGoEnum ensures that Lacp_LacpTimeoutType implements the yang.GoEnum interface. This ensures that Lacp_LacpTimeoutType can be identified as a mapped type for a YANG enumeration.

func (E_Lacp_LacpTimeoutType) String

func (e E_Lacp_LacpTimeoutType) String() string

String returns a logging-friendly string for E_Lacp_LacpTimeoutType.

func (E_Lacp_LacpTimeoutType) ΛMap

ΛMap returns the value lookup map associated with Lacp_LacpTimeoutType.

type E_Lag_OperStatus

type E_Lag_OperStatus int64

E_Lag_OperStatus is a derived int64 type which is used to represent the enumerated node Lag_OperStatus. An additional value named Lag_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 (
	// Lag_OperStatus_UNSET corresponds to the value UNSET of Lag_OperStatus
	Lag_OperStatus_UNSET E_Lag_OperStatus = 0
	// Lag_OperStatus_UP corresponds to the value UP of Lag_OperStatus
	Lag_OperStatus_UP E_Lag_OperStatus = 1
	// Lag_OperStatus_DOWN corresponds to the value DOWN of Lag_OperStatus
	Lag_OperStatus_DOWN E_Lag_OperStatus = 2
)

func (E_Lag_OperStatus) IsYANGGoEnum

func (E_Lag_OperStatus) IsYANGGoEnum()

IsYANGGoEnum ensures that Lag_OperStatus implements the yang.GoEnum interface. This ensures that Lag_OperStatus can be identified as a mapped type for a YANG enumeration.

func (E_Lag_OperStatus) String

func (e E_Lag_OperStatus) String() string

String returns a logging-friendly string for E_Lag_OperStatus.

func (E_Lag_OperStatus) ΛMap

ΛMap returns the value lookup map associated with Lag_OperStatus.

type E_Link_Type int64

E_Link_Type is a derived int64 type which is used to represent the enumerated node Link_Type. An additional value named Link_Type_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 (
	// Link_Type_UNSET corresponds to the value UNSET of Link_Type
	Link_Type_UNSET E_Link_Type = 0
	// Link_Type_POINT_TO_POINT corresponds to the value POINT_TO_POINT of Link_Type
	Link_Type_POINT_TO_POINT E_Link_Type = 1
	// Link_Type_TRANSIT corresponds to the value TRANSIT of Link_Type
	Link_Type_TRANSIT E_Link_Type = 2
	// Link_Type_STUB corresponds to the value STUB of Link_Type
	Link_Type_STUB E_Link_Type = 3
	// Link_Type_VIRTUAL corresponds to the value VIRTUAL of Link_Type
	Link_Type_VIRTUAL E_Link_Type = 4
)
func (E_Link_Type) IsYANGGoEnum()

IsYANGGoEnum ensures that Link_Type implements the yang.GoEnum interface. This ensures that Link_Type can be identified as a mapped type for a YANG enumeration.

func (e E_Link_Type) String() string

String returns a logging-friendly string for E_Link_Type.

func (E_Link_Type) ΛMap() map[string]map[int64]ygot.EnumDefinition

ΛMap returns the value lookup map associated with Link_Type.

type E_LldpNeighbor_ChassisIdType

type E_LldpNeighbor_ChassisIdType int64

E_LldpNeighbor_ChassisIdType is a derived int64 type which is used to represent the enumerated node LldpNeighbor_ChassisIdType. An additional value named LldpNeighbor_ChassisIdType_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 (
	// LldpNeighbor_ChassisIdType_UNSET corresponds to the value UNSET of LldpNeighbor_ChassisIdType
	LldpNeighbor_ChassisIdType_UNSET E_LldpNeighbor_ChassisIdType = 0
	// LldpNeighbor_ChassisIdType_PORT_COMPONENT corresponds to the value PORT_COMPONENT of LldpNeighbor_ChassisIdType
	LldpNeighbor_ChassisIdType_PORT_COMPONENT E_LldpNeighbor_ChassisIdType = 1
	// LldpNeighbor_ChassisIdType_NETWORK_ADDRESS corresponds to the value NETWORK_ADDRESS of LldpNeighbor_ChassisIdType
	LldpNeighbor_ChassisIdType_NETWORK_ADDRESS E_LldpNeighbor_ChassisIdType = 2
	// LldpNeighbor_ChassisIdType_CHASSIS_COMPONENT corresponds to the value CHASSIS_COMPONENT of LldpNeighbor_ChassisIdType
	LldpNeighbor_ChassisIdType_CHASSIS_COMPONENT E_LldpNeighbor_ChassisIdType = 3
	// LldpNeighbor_ChassisIdType_MAC_ADDRESS corresponds to the value MAC_ADDRESS of LldpNeighbor_ChassisIdType
	LldpNeighbor_ChassisIdType_MAC_ADDRESS E_LldpNeighbor_ChassisIdType = 4
	// LldpNeighbor_ChassisIdType_INTERFACE_NAME corresponds to the value INTERFACE_NAME of LldpNeighbor_ChassisIdType
	LldpNeighbor_ChassisIdType_INTERFACE_NAME E_LldpNeighbor_ChassisIdType = 5
	// LldpNeighbor_ChassisIdType_LOCAL corresponds to the value LOCAL of LldpNeighbor_ChassisIdType
	LldpNeighbor_ChassisIdType_LOCAL E_LldpNeighbor_ChassisIdType = 6
	// LldpNeighbor_ChassisIdType_INTERFACE_ALIAS corresponds to the value INTERFACE_ALIAS of LldpNeighbor_ChassisIdType
	LldpNeighbor_ChassisIdType_INTERFACE_ALIAS E_LldpNeighbor_ChassisIdType = 7
)

func (E_LldpNeighbor_ChassisIdType) IsYANGGoEnum

func (E_LldpNeighbor_ChassisIdType) IsYANGGoEnum()

IsYANGGoEnum ensures that LldpNeighbor_ChassisIdType implements the yang.GoEnum interface. This ensures that LldpNeighbor_ChassisIdType can be identified as a mapped type for a YANG enumeration.

func (E_LldpNeighbor_ChassisIdType) String

String returns a logging-friendly string for E_LldpNeighbor_ChassisIdType.

func (E_LldpNeighbor_ChassisIdType) ΛMap

ΛMap returns the value lookup map associated with LldpNeighbor_ChassisIdType.

type E_LldpNeighbor_PortIdType

type E_LldpNeighbor_PortIdType int64

E_LldpNeighbor_PortIdType is a derived int64 type which is used to represent the enumerated node LldpNeighbor_PortIdType. An additional value named LldpNeighbor_PortIdType_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 (
	// LldpNeighbor_PortIdType_UNSET corresponds to the value UNSET of LldpNeighbor_PortIdType
	LldpNeighbor_PortIdType_UNSET E_LldpNeighbor_PortIdType = 0
	// LldpNeighbor_PortIdType_PORT_COMPONENT corresponds to the value PORT_COMPONENT of LldpNeighbor_PortIdType
	LldpNeighbor_PortIdType_PORT_COMPONENT E_LldpNeighbor_PortIdType = 1
	// LldpNeighbor_PortIdType_NETWORK_ADDRESS corresponds to the value NETWORK_ADDRESS of LldpNeighbor_PortIdType
	LldpNeighbor_PortIdType_NETWORK_ADDRESS E_LldpNeighbor_PortIdType = 2
	// LldpNeighbor_PortIdType_AGENT_CIRCUIT_ID corresponds to the value AGENT_CIRCUIT_ID of LldpNeighbor_PortIdType
	LldpNeighbor_PortIdType_AGENT_CIRCUIT_ID E_LldpNeighbor_PortIdType = 3
	// LldpNeighbor_PortIdType_MAC_ADDRESS corresponds to the value MAC_ADDRESS of LldpNeighbor_PortIdType
	LldpNeighbor_PortIdType_MAC_ADDRESS E_LldpNeighbor_PortIdType = 4
	// LldpNeighbor_PortIdType_INTERFACE_NAME corresponds to the value INTERFACE_NAME of LldpNeighbor_PortIdType
	LldpNeighbor_PortIdType_INTERFACE_NAME E_LldpNeighbor_PortIdType = 5
	// LldpNeighbor_PortIdType_LOCAL corresponds to the value LOCAL of LldpNeighbor_PortIdType
	LldpNeighbor_PortIdType_LOCAL E_LldpNeighbor_PortIdType = 6
	// LldpNeighbor_PortIdType_INTERFACE_ALIAS corresponds to the value INTERFACE_ALIAS of LldpNeighbor_PortIdType
	LldpNeighbor_PortIdType_INTERFACE_ALIAS E_LldpNeighbor_PortIdType = 7
)

func (E_LldpNeighbor_PortIdType) IsYANGGoEnum

func (E_LldpNeighbor_PortIdType) IsYANGGoEnum()

IsYANGGoEnum ensures that LldpNeighbor_PortIdType implements the yang.GoEnum interface. This ensures that LldpNeighbor_PortIdType can be identified as a mapped type for a YANG enumeration.

func (E_LldpNeighbor_PortIdType) String

func (e E_LldpNeighbor_PortIdType) String() string

String returns a logging-friendly string for E_LldpNeighbor_PortIdType.

func (E_LldpNeighbor_PortIdType) ΛMap

ΛMap returns the value lookup map associated with LldpNeighbor_PortIdType.

type E_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType added in v0.10.1

type E_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType int64

E_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType is a derived int64 type which is used to represent the enumerated node LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType. An additional value named LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType_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 (
	// LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType_UNSET corresponds to the value UNSET of LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType
	LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType_UNSET E_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType = 0
	// LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType_SUCCEEDED corresponds to the value SUCCEEDED of LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType
	LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType_SUCCEEDED E_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType = 1
	// LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType_FAILED corresponds to the value FAILED of LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType
	LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType_FAILED E_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType = 2
	// LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType_INPROGRESS corresponds to the value INPROGRESS of LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType
	LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType_INPROGRESS E_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType = 3
	// LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType_UNAVAILABLE corresponds to the value UNAVAILABLE of LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType
	LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType_UNAVAILABLE E_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType = 4
)

func (E_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType) IsYANGGoEnum added in v0.10.1

IsYANGGoEnum ensures that LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType implements the yang.GoEnum interface. This ensures that LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType can be identified as a mapped type for a YANG enumeration.

func (E_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType) String added in v0.10.1

String returns a logging-friendly string for E_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType.

func (E_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType) ΛMap added in v0.10.1

ΛMap returns the value lookup map associated with LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType.

type E_LocalRestartingStatus_CurrentState added in v0.10.1

type E_LocalRestartingStatus_CurrentState int64

E_LocalRestartingStatus_CurrentState is a derived int64 type which is used to represent the enumerated node LocalRestartingStatus_CurrentState. An additional value named LocalRestartingStatus_CurrentState_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 (
	// LocalRestartingStatus_CurrentState_UNSET corresponds to the value UNSET of LocalRestartingStatus_CurrentState
	LocalRestartingStatus_CurrentState_UNSET E_LocalRestartingStatus_CurrentState = 0
	// LocalRestartingStatus_CurrentState_RUNNING corresponds to the value RUNNING of LocalRestartingStatus_CurrentState
	LocalRestartingStatus_CurrentState_RUNNING E_LocalRestartingStatus_CurrentState = 1
	// LocalRestartingStatus_CurrentState_RESTARTING corresponds to the value RESTARTING of LocalRestartingStatus_CurrentState
	LocalRestartingStatus_CurrentState_RESTARTING E_LocalRestartingStatus_CurrentState = 2
	// LocalRestartingStatus_CurrentState_STARTING corresponds to the value STARTING of LocalRestartingStatus_CurrentState
	LocalRestartingStatus_CurrentState_STARTING E_LocalRestartingStatus_CurrentState = 3
)

func (E_LocalRestartingStatus_CurrentState) IsYANGGoEnum added in v0.10.1

func (E_LocalRestartingStatus_CurrentState) IsYANGGoEnum()

IsYANGGoEnum ensures that LocalRestartingStatus_CurrentState implements the yang.GoEnum interface. This ensures that LocalRestartingStatus_CurrentState can be identified as a mapped type for a YANG enumeration.

func (E_LocalRestartingStatus_CurrentState) String added in v0.10.1

String returns a logging-friendly string for E_LocalRestartingStatus_CurrentState.

func (E_LocalRestartingStatus_CurrentState) ΛMap added in v0.10.1

ΛMap returns the value lookup map associated with LocalRestartingStatus_CurrentState.

type E_LocalState_LevelType added in v0.10.1

type E_LocalState_LevelType int64

E_LocalState_LevelType is a derived int64 type which is used to represent the enumerated node LocalState_LevelType. An additional value named LocalState_LevelType_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 (
	// LocalState_LevelType_UNSET corresponds to the value UNSET of LocalState_LevelType
	LocalState_LevelType_UNSET E_LocalState_LevelType = 0
	// LocalState_LevelType_LEVEL_1 corresponds to the value LEVEL_1 of LocalState_LevelType
	LocalState_LevelType_LEVEL_1 E_LocalState_LevelType = 1
	// LocalState_LevelType_LEVEL_2 corresponds to the value LEVEL_2 of LocalState_LevelType
	LocalState_LevelType_LEVEL_2 E_LocalState_LevelType = 2
	// LocalState_LevelType_LEVEL_1_2 corresponds to the value LEVEL_1_2 of LocalState_LevelType
	LocalState_LevelType_LEVEL_1_2 E_LocalState_LevelType = 3
)

func (E_LocalState_LevelType) IsYANGGoEnum added in v0.10.1

func (E_LocalState_LevelType) IsYANGGoEnum()

IsYANGGoEnum ensures that LocalState_LevelType implements the yang.GoEnum interface. This ensures that LocalState_LevelType can be identified as a mapped type for a YANG enumeration.

func (E_LocalState_LevelType) String added in v0.10.1

func (e E_LocalState_LevelType) String() string

String returns a logging-friendly string for E_LocalState_LevelType.

func (E_LocalState_LevelType) ΛMap added in v0.10.1

ΛMap returns the value lookup map associated with LocalState_LevelType.

type E_Lsps_Flags

type E_Lsps_Flags int64

E_Lsps_Flags is a derived int64 type which is used to represent the enumerated node Lsps_Flags. An additional value named Lsps_Flags_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 (
	// Lsps_Flags_UNSET corresponds to the value UNSET of Lsps_Flags
	Lsps_Flags_UNSET E_Lsps_Flags = 0
	// Lsps_Flags_PARTITION_REPAIR corresponds to the value PARTITION_REPAIR of Lsps_Flags
	Lsps_Flags_PARTITION_REPAIR E_Lsps_Flags = 1
	// Lsps_Flags_ATTACHED_ERROR corresponds to the value ATTACHED_ERROR of Lsps_Flags
	Lsps_Flags_ATTACHED_ERROR E_Lsps_Flags = 2
	// Lsps_Flags_ATTACHED_EXPENSE corresponds to the value ATTACHED_EXPENSE of Lsps_Flags
	Lsps_Flags_ATTACHED_EXPENSE E_Lsps_Flags = 3
	// Lsps_Flags_ATTACHED_DELAY corresponds to the value ATTACHED_DELAY of Lsps_Flags
	Lsps_Flags_ATTACHED_DELAY E_Lsps_Flags = 4
	// Lsps_Flags_ATTACHED_DEFAULT corresponds to the value ATTACHED_DEFAULT of Lsps_Flags
	Lsps_Flags_ATTACHED_DEFAULT E_Lsps_Flags = 5
	// Lsps_Flags_OVERLOAD corresponds to the value OVERLOAD of Lsps_Flags
	Lsps_Flags_OVERLOAD E_Lsps_Flags = 6
)

func (E_Lsps_Flags) IsYANGGoEnum

func (E_Lsps_Flags) IsYANGGoEnum()

IsYANGGoEnum ensures that Lsps_Flags implements the yang.GoEnum interface. This ensures that Lsps_Flags can be identified as a mapped type for a YANG enumeration.

func (E_Lsps_Flags) String

func (e E_Lsps_Flags) String() string

String returns a logging-friendly string for E_Lsps_Flags.

func (E_Lsps_Flags) ΛMap

func (E_Lsps_Flags) ΛMap() map[string]map[int64]ygot.EnumDefinition

ΛMap returns the value lookup map associated with Lsps_Flags.

type E_Lsps_PduType

type E_Lsps_PduType int64

E_Lsps_PduType is a derived int64 type which is used to represent the enumerated node Lsps_PduType. An additional value named Lsps_PduType_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 (
	// Lsps_PduType_UNSET corresponds to the value UNSET of Lsps_PduType
	Lsps_PduType_UNSET E_Lsps_PduType = 0
	// Lsps_PduType_LEVEL_1 corresponds to the value LEVEL_1 of Lsps_PduType
	Lsps_PduType_LEVEL_1 E_Lsps_PduType = 1
	// Lsps_PduType_LEVEL_2 corresponds to the value LEVEL_2 of Lsps_PduType
	Lsps_PduType_LEVEL_2 E_Lsps_PduType = 2
)

func (E_Lsps_PduType) IsYANGGoEnum

func (E_Lsps_PduType) IsYANGGoEnum()

IsYANGGoEnum ensures that Lsps_PduType implements the yang.GoEnum interface. This ensures that Lsps_PduType can be identified as a mapped type for a YANG enumeration.

func (E_Lsps_PduType) String

func (e E_Lsps_PduType) String() string

String returns a logging-friendly string for E_Lsps_PduType.

func (E_Lsps_PduType) ΛMap

func (E_Lsps_PduType) ΛMap() map[string]map[int64]ygot.EnumDefinition

ΛMap returns the value lookup map associated with Lsps_PduType.

type E_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType added in v0.10.1

type E_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType int64

E_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType is a derived int64 type which is used to represent the enumerated node NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType. An additional value named NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType_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 (
	// NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType_UNSET corresponds to the value UNSET of NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType
	NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType_UNSET E_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType = 0
	// NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType_SUCCEEDED corresponds to the value SUCCEEDED of NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType
	NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType_SUCCEEDED E_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType = 1
	// NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType_FAILED corresponds to the value FAILED of NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType
	NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType_FAILED E_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType = 2
	// NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType_INPROGRESS corresponds to the value INPROGRESS of NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType
	NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType_INPROGRESS E_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType = 3
	// NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType_UNAVAILABLE corresponds to the value UNAVAILABLE of NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType
	NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType_UNAVAILABLE E_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType = 4
)

func (E_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType) IsYANGGoEnum added in v0.10.1

IsYANGGoEnum ensures that NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType implements the yang.GoEnum interface. This ensures that NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType can be identified as a mapped type for a YANG enumeration.

func (E_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType) String added in v0.10.1

String returns a logging-friendly string for E_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType.

func (E_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType) ΛMap added in v0.10.1

ΛMap returns the value lookup map associated with NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType.

type E_NeighRestartingStatus_CurrentState added in v0.10.1

type E_NeighRestartingStatus_CurrentState int64

E_NeighRestartingStatus_CurrentState is a derived int64 type which is used to represent the enumerated node NeighRestartingStatus_CurrentState. An additional value named NeighRestartingStatus_CurrentState_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 (
	// NeighRestartingStatus_CurrentState_UNSET corresponds to the value UNSET of NeighRestartingStatus_CurrentState
	NeighRestartingStatus_CurrentState_UNSET E_NeighRestartingStatus_CurrentState = 0
	// NeighRestartingStatus_CurrentState_RUNNING corresponds to the value RUNNING of NeighRestartingStatus_CurrentState
	NeighRestartingStatus_CurrentState_RUNNING E_NeighRestartingStatus_CurrentState = 1
	// NeighRestartingStatus_CurrentState_RESTARTING corresponds to the value RESTARTING of NeighRestartingStatus_CurrentState
	NeighRestartingStatus_CurrentState_RESTARTING E_NeighRestartingStatus_CurrentState = 2
	// NeighRestartingStatus_CurrentState_STARTING corresponds to the value STARTING of NeighRestartingStatus_CurrentState
	NeighRestartingStatus_CurrentState_STARTING E_NeighRestartingStatus_CurrentState = 3
)

func (E_NeighRestartingStatus_CurrentState) IsYANGGoEnum added in v0.10.1

func (E_NeighRestartingStatus_CurrentState) IsYANGGoEnum()

IsYANGGoEnum ensures that NeighRestartingStatus_CurrentState implements the yang.GoEnum interface. This ensures that NeighRestartingStatus_CurrentState can be identified as a mapped type for a YANG enumeration.

func (E_NeighRestartingStatus_CurrentState) String added in v0.10.1

String returns a logging-friendly string for E_NeighRestartingStatus_CurrentState.

func (E_NeighRestartingStatus_CurrentState) ΛMap added in v0.10.1

ΛMap returns the value lookup map associated with NeighRestartingStatus_CurrentState.

type E_NeighborState_LevelType added in v0.10.1

type E_NeighborState_LevelType int64

E_NeighborState_LevelType is a derived int64 type which is used to represent the enumerated node NeighborState_LevelType. An additional value named NeighborState_LevelType_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 (
	// NeighborState_LevelType_UNSET corresponds to the value UNSET of NeighborState_LevelType
	NeighborState_LevelType_UNSET E_NeighborState_LevelType = 0
	// NeighborState_LevelType_LEVEL_1 corresponds to the value LEVEL_1 of NeighborState_LevelType
	NeighborState_LevelType_LEVEL_1 E_NeighborState_LevelType = 1
	// NeighborState_LevelType_LEVEL_2 corresponds to the value LEVEL_2 of NeighborState_LevelType
	NeighborState_LevelType_LEVEL_2 E_NeighborState_LevelType = 2
	// NeighborState_LevelType_LEVEL_1_2 corresponds to the value LEVEL_1_2 of NeighborState_LevelType
	NeighborState_LevelType_LEVEL_1_2 E_NeighborState_LevelType = 3
)

func (E_NeighborState_LevelType) IsYANGGoEnum added in v0.10.1

func (E_NeighborState_LevelType) IsYANGGoEnum()

IsYANGGoEnum ensures that NeighborState_LevelType implements the yang.GoEnum interface. This ensures that NeighborState_LevelType can be identified as a mapped type for a YANG enumeration.

func (E_NeighborState_LevelType) String added in v0.10.1

func (e E_NeighborState_LevelType) String() string

String returns a logging-friendly string for E_NeighborState_LevelType.

func (E_NeighborState_LevelType) ΛMap added in v0.10.1

ΛMap returns the value lookup map associated with NeighborState_LevelType.

type E_OpaqueLsa_Type added in v0.7.1

type E_OpaqueLsa_Type int64

E_OpaqueLsa_Type is a derived int64 type which is used to represent the enumerated node OpaqueLsa_Type. An additional value named OpaqueLsa_Type_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 (
	// OpaqueLsa_Type_UNSET corresponds to the value UNSET of OpaqueLsa_Type
	OpaqueLsa_Type_UNSET E_OpaqueLsa_Type = 0
	// OpaqueLsa_Type_LOCAL corresponds to the value LOCAL of OpaqueLsa_Type
	OpaqueLsa_Type_LOCAL E_OpaqueLsa_Type = 1
	// OpaqueLsa_Type_AREA corresponds to the value AREA of OpaqueLsa_Type
	OpaqueLsa_Type_AREA E_OpaqueLsa_Type = 2
	// OpaqueLsa_Type_DOMAIN corresponds to the value DOMAIN of OpaqueLsa_Type
	OpaqueLsa_Type_DOMAIN E_OpaqueLsa_Type = 3
)

func (E_OpaqueLsa_Type) IsYANGGoEnum added in v0.7.1

func (E_OpaqueLsa_Type) IsYANGGoEnum()

IsYANGGoEnum ensures that OpaqueLsa_Type implements the yang.GoEnum interface. This ensures that OpaqueLsa_Type can be identified as a mapped type for a YANG enumeration.

func (E_OpaqueLsa_Type) String added in v0.7.1

func (e E_OpaqueLsa_Type) String() string

String returns a logging-friendly string for E_OpaqueLsa_Type.

func (E_OpaqueLsa_Type) ΛMap added in v0.7.1

ΛMap returns the value lookup map associated with OpaqueLsa_Type.

type E_Port_Link int64

E_Port_Link is a derived int64 type which is used to represent the enumerated node Port_Link. An additional value named Port_Link_UNSET is added to the enumeration which is used as the nil value, indicating that the enumeration was not explicitly set by the program importing the generated structures.

const (
	// Port_Link_UNSET corresponds to the value UNSET of Port_Link
	Port_Link_UNSET E_Port_Link = 0
	// Port_Link_UP corresponds to the value UP of Port_Link
	Port_Link_UP E_Port_Link = 1
	// Port_Link_DOWN corresponds to the value DOWN of Port_Link
	Port_Link_DOWN E_Port_Link = 2
)

func (E_Port_Link) IsYANGGoEnum

func (E_Port_Link) IsYANGGoEnum()

IsYANGGoEnum ensures that Port_Link implements the yang.GoEnum interface. This ensures that Port_Link can be identified as a mapped type for a YANG enumeration.

func (E_Port_Link) String

func (e E_Port_Link) String() string

String returns a logging-friendly string for E_Port_Link.

func (E_Port_Link) ΛMap

func (E_Port_Link) ΛMap() map[string]map[int64]ygot.EnumDefinition

ΛMap returns the value lookup map associated with Port_Link.

type E_PrefixSid_Flags added in v0.8.0

type E_PrefixSid_Flags int64

E_PrefixSid_Flags is a derived int64 type which is used to represent the enumerated node PrefixSid_Flags. An additional value named PrefixSid_Flags_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 (
	// PrefixSid_Flags_UNSET corresponds to the value UNSET of PrefixSid_Flags
	PrefixSid_Flags_UNSET E_PrefixSid_Flags = 0
	// PrefixSid_Flags_READVERTISEMENT corresponds to the value READVERTISEMENT of PrefixSid_Flags
	PrefixSid_Flags_READVERTISEMENT E_PrefixSid_Flags = 1
	// PrefixSid_Flags_NODE corresponds to the value NODE of PrefixSid_Flags
	PrefixSid_Flags_NODE E_PrefixSid_Flags = 2
	// PrefixSid_Flags_NO_PHP corresponds to the value NO_PHP of PrefixSid_Flags
	PrefixSid_Flags_NO_PHP E_PrefixSid_Flags = 3
	// PrefixSid_Flags_EXPLICIT_NULL corresponds to the value EXPLICIT_NULL of PrefixSid_Flags
	PrefixSid_Flags_EXPLICIT_NULL E_PrefixSid_Flags = 4
	// PrefixSid_Flags_VALUE corresponds to the value VALUE of PrefixSid_Flags
	PrefixSid_Flags_VALUE E_PrefixSid_Flags = 5
	// PrefixSid_Flags_LOCAL corresponds to the value LOCAL of PrefixSid_Flags
	PrefixSid_Flags_LOCAL E_PrefixSid_Flags = 6
)

func (E_PrefixSid_Flags) IsYANGGoEnum added in v0.8.0

func (E_PrefixSid_Flags) IsYANGGoEnum()

IsYANGGoEnum ensures that PrefixSid_Flags implements the yang.GoEnum interface. This ensures that PrefixSid_Flags can be identified as a mapped type for a YANG enumeration.

func (E_PrefixSid_Flags) String added in v0.8.0

func (e E_PrefixSid_Flags) String() string

String returns a logging-friendly string for E_PrefixSid_Flags.

func (E_PrefixSid_Flags) ΛMap added in v0.8.0

ΛMap returns the value lookup map associated with PrefixSid_Flags.

type E_RestartTlv_Flags added in v0.10.1

type E_RestartTlv_Flags int64

E_RestartTlv_Flags is a derived int64 type which is used to represent the enumerated node RestartTlv_Flags. An additional value named RestartTlv_Flags_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 (
	// RestartTlv_Flags_UNSET corresponds to the value UNSET of RestartTlv_Flags
	RestartTlv_Flags_UNSET E_RestartTlv_Flags = 0
	// RestartTlv_Flags_RR_BIT corresponds to the value RR_BIT of RestartTlv_Flags
	RestartTlv_Flags_RR_BIT E_RestartTlv_Flags = 1
	// RestartTlv_Flags_RA_BIT corresponds to the value RA_BIT of RestartTlv_Flags
	RestartTlv_Flags_RA_BIT E_RestartTlv_Flags = 2
	// RestartTlv_Flags_SA_BIT corresponds to the value SA_BIT of RestartTlv_Flags
	RestartTlv_Flags_SA_BIT E_RestartTlv_Flags = 3
	// RestartTlv_Flags_PR_BIT corresponds to the value PR_BIT of RestartTlv_Flags
	RestartTlv_Flags_PR_BIT E_RestartTlv_Flags = 4
	// RestartTlv_Flags_PA_BIT corresponds to the value PA_BIT of RestartTlv_Flags
	RestartTlv_Flags_PA_BIT E_RestartTlv_Flags = 5
)

func (E_RestartTlv_Flags) IsYANGGoEnum added in v0.10.1

func (E_RestartTlv_Flags) IsYANGGoEnum()

IsYANGGoEnum ensures that RestartTlv_Flags implements the yang.GoEnum interface. This ensures that RestartTlv_Flags can be identified as a mapped type for a YANG enumeration.

func (E_RestartTlv_Flags) String added in v0.10.1

func (e E_RestartTlv_Flags) String() string

String returns a logging-friendly string for E_RestartTlv_Flags.

func (E_RestartTlv_Flags) ΛMap added in v0.10.1

ΛMap returns the value lookup map associated with RestartTlv_Flags.

type E_SegmentRoutingCapability_Flags added in v0.8.0

type E_SegmentRoutingCapability_Flags int64

E_SegmentRoutingCapability_Flags is a derived int64 type which is used to represent the enumerated node SegmentRoutingCapability_Flags. An additional value named SegmentRoutingCapability_Flags_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 (
	// SegmentRoutingCapability_Flags_UNSET corresponds to the value UNSET of SegmentRoutingCapability_Flags
	SegmentRoutingCapability_Flags_UNSET E_SegmentRoutingCapability_Flags = 0
	// SegmentRoutingCapability_Flags_IPV4_MPLS corresponds to the value IPV4_MPLS of SegmentRoutingCapability_Flags
	SegmentRoutingCapability_Flags_IPV4_MPLS E_SegmentRoutingCapability_Flags = 1
	// SegmentRoutingCapability_Flags_IPV6_MPLS corresponds to the value IPV6_MPLS of SegmentRoutingCapability_Flags
	SegmentRoutingCapability_Flags_IPV6_MPLS E_SegmentRoutingCapability_Flags = 2
)

func (E_SegmentRoutingCapability_Flags) IsYANGGoEnum added in v0.8.0

func (E_SegmentRoutingCapability_Flags) IsYANGGoEnum()

IsYANGGoEnum ensures that SegmentRoutingCapability_Flags implements the yang.GoEnum interface. This ensures that SegmentRoutingCapability_Flags can be identified as a mapped type for a YANG enumeration.

func (E_SegmentRoutingCapability_Flags) String added in v0.8.0

String returns a logging-friendly string for E_SegmentRoutingCapability_Flags.

func (E_SegmentRoutingCapability_Flags) ΛMap added in v0.8.0

ΛMap returns the value lookup map associated with SegmentRoutingCapability_Flags.

type E_State_CommunityType

type E_State_CommunityType int64

E_State_CommunityType is a derived int64 type which is used to represent the enumerated node State_CommunityType. An additional value named State_CommunityType_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 (
	// State_CommunityType_UNSET corresponds to the value UNSET of State_CommunityType
	State_CommunityType_UNSET E_State_CommunityType = 0
	// State_CommunityType_MANUAL_AS_NUMBER corresponds to the value MANUAL_AS_NUMBER of State_CommunityType
	State_CommunityType_MANUAL_AS_NUMBER E_State_CommunityType = 1
	// State_CommunityType_NO_EXPORT corresponds to the value NO_EXPORT of State_CommunityType
	State_CommunityType_NO_EXPORT E_State_CommunityType = 2
	// State_CommunityType_NO_ADVERTISE corresponds to the value NO_ADVERTISE of State_CommunityType
	State_CommunityType_NO_ADVERTISE E_State_CommunityType = 3
	// State_CommunityType_NO_EXPORT_SUBCONFED corresponds to the value NO_EXPORT_SUBCONFED of State_CommunityType
	State_CommunityType_NO_EXPORT_SUBCONFED E_State_CommunityType = 4
	// State_CommunityType_LLGR_STALE corresponds to the value LLGR_STALE of State_CommunityType
	State_CommunityType_LLGR_STALE E_State_CommunityType = 5
	// State_CommunityType_NO_LLGR corresponds to the value NO_LLGR of State_CommunityType
	State_CommunityType_NO_LLGR E_State_CommunityType = 6
)

func (E_State_CommunityType) IsYANGGoEnum

func (E_State_CommunityType) IsYANGGoEnum()

IsYANGGoEnum ensures that State_CommunityType implements the yang.GoEnum interface. This ensures that State_CommunityType can be identified as a mapped type for a YANG enumeration.

func (E_State_CommunityType) String

func (e E_State_CommunityType) String() string

String returns a logging-friendly string for E_State_CommunityType.

func (E_State_CommunityType) ΛMap

ΛMap returns the value lookup map associated with State_CommunityType.

type E_State_Flags

type E_State_Flags int64

E_State_Flags is a derived int64 type which is used to represent the enumerated node State_Flags. An additional value named State_Flags_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 (
	// State_Flags_UNSET corresponds to the value UNSET of State_Flags
	State_Flags_UNSET E_State_Flags = 0
	// State_Flags_EXTERNAL_FLAG corresponds to the value EXTERNAL_FLAG of State_Flags
	State_Flags_EXTERNAL_FLAG E_State_Flags = 1
	// State_Flags_READVERTISEMENT_FLAG corresponds to the value READVERTISEMENT_FLAG of State_Flags
	State_Flags_READVERTISEMENT_FLAG E_State_Flags = 2
	// State_Flags_NODE_FLAG corresponds to the value NODE_FLAG of State_Flags
	State_Flags_NODE_FLAG E_State_Flags = 3
)

func (E_State_Flags) IsYANGGoEnum

func (E_State_Flags) IsYANGGoEnum()

IsYANGGoEnum ensures that State_Flags implements the yang.GoEnum interface. This ensures that State_Flags can be identified as a mapped type for a YANG enumeration.

func (E_State_Flags) String

func (e E_State_Flags) String() string

String returns a logging-friendly string for E_State_Flags.

func (E_State_Flags) ΛMap

func (E_State_Flags) ΛMap() map[string]map[int64]ygot.EnumDefinition

ΛMap returns the value lookup map associated with State_Flags.

type E_State_SegmentType

type E_State_SegmentType int64

E_State_SegmentType is a derived int64 type which is used to represent the enumerated node State_SegmentType. An additional value named State_SegmentType_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 (
	// State_SegmentType_UNSET corresponds to the value UNSET of State_SegmentType
	State_SegmentType_UNSET E_State_SegmentType = 0
	// State_SegmentType_AS_SEQUENCE corresponds to the value AS_SEQUENCE of State_SegmentType
	State_SegmentType_AS_SEQUENCE E_State_SegmentType = 1
	// State_SegmentType_AS_SET corresponds to the value AS_SET of State_SegmentType
	State_SegmentType_AS_SET E_State_SegmentType = 2
	// State_SegmentType_AS_CONFED_SEQUENCE corresponds to the value AS_CONFED_SEQUENCE of State_SegmentType
	State_SegmentType_AS_CONFED_SEQUENCE E_State_SegmentType = 3
	// State_SegmentType_AS_CONFED_SET corresponds to the value AS_CONFED_SET of State_SegmentType
	State_SegmentType_AS_CONFED_SET E_State_SegmentType = 4
)

func (E_State_SegmentType) IsYANGGoEnum

func (E_State_SegmentType) IsYANGGoEnum()

IsYANGGoEnum ensures that State_SegmentType implements the yang.GoEnum interface. This ensures that State_SegmentType can be identified as a mapped type for a YANG enumeration.

func (E_State_SegmentType) String

func (e E_State_SegmentType) String() string

String returns a logging-friendly string for E_State_SegmentType.

func (E_State_SegmentType) ΛMap

ΛMap returns the value lookup map associated with State_SegmentType.

type E_State_Type added in v0.9.1

type E_State_Type int64

E_State_Type is a derived int64 type which is used to represent the enumerated node State_Type. An additional value named State_Type_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 (
	// State_Type_UNSET corresponds to the value UNSET of State_Type
	State_Type_UNSET E_State_Type = 0
	// State_Type_POINT_TO_POINT corresponds to the value POINT_TO_POINT of State_Type
	State_Type_POINT_TO_POINT E_State_Type = 1
	// State_Type_TRANSIT corresponds to the value TRANSIT of State_Type
	State_Type_TRANSIT E_State_Type = 2
	// State_Type_STUB corresponds to the value STUB of State_Type
	State_Type_STUB E_State_Type = 3
	// State_Type_VIRTUAL corresponds to the value VIRTUAL of State_Type
	State_Type_VIRTUAL E_State_Type = 4
)

func (E_State_Type) IsYANGGoEnum added in v0.9.1

func (E_State_Type) IsYANGGoEnum()

IsYANGGoEnum ensures that State_Type implements the yang.GoEnum interface. This ensures that State_Type can be identified as a mapped type for a YANG enumeration.

func (E_State_Type) String added in v0.9.1

func (e E_State_Type) String() string

String returns a logging-friendly string for E_State_Type.

func (E_State_Type) ΛMap added in v0.9.1

func (E_State_Type) ΛMap() map[string]map[int64]ygot.EnumDefinition

ΛMap returns the value lookup map associated with State_Type.

type E_Structured_NonTransitive_2OctetAsType added in v0.5.8

type E_Structured_NonTransitive_2OctetAsType int64

E_Structured_NonTransitive_2OctetAsType is a derived int64 type which is used to represent the enumerated node Structured_NonTransitive_2OctetAsType. An additional value named Structured_NonTransitive_2OctetAsType_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 (
	// Structured_NonTransitive_2OctetAsType_UNSET corresponds to the value UNSET of Structured_NonTransitive_2OctetAsType
	Structured_NonTransitive_2OctetAsType_UNSET E_Structured_NonTransitive_2OctetAsType = 0
	// Structured_NonTransitive_2OctetAsType_LINK_BANDWIDTH_SUBTYPE corresponds to the value LINK_BANDWIDTH_SUBTYPE of Structured_NonTransitive_2OctetAsType
	Structured_NonTransitive_2OctetAsType_LINK_BANDWIDTH_SUBTYPE E_Structured_NonTransitive_2OctetAsType = 1
)

func (E_Structured_NonTransitive_2OctetAsType) IsYANGGoEnum added in v0.5.8

IsYANGGoEnum ensures that Structured_NonTransitive_2OctetAsType implements the yang.GoEnum interface. This ensures that Structured_NonTransitive_2OctetAsType can be identified as a mapped type for a YANG enumeration.

func (E_Structured_NonTransitive_2OctetAsType) String added in v0.5.8

String returns a logging-friendly string for E_Structured_NonTransitive_2OctetAsType.

func (E_Structured_NonTransitive_2OctetAsType) ΛMap added in v0.5.8

ΛMap returns the value lookup map associated with Structured_NonTransitive_2OctetAsType.

type E_Structured_TransitiveIpv4AddressType added in v0.5.8

type E_Structured_TransitiveIpv4AddressType int64

E_Structured_TransitiveIpv4AddressType is a derived int64 type which is used to represent the enumerated node Structured_TransitiveIpv4AddressType. An additional value named Structured_TransitiveIpv4AddressType_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 (
	// Structured_TransitiveIpv4AddressType_UNSET corresponds to the value UNSET of Structured_TransitiveIpv4AddressType
	Structured_TransitiveIpv4AddressType_UNSET E_Structured_TransitiveIpv4AddressType = 0
	// Structured_TransitiveIpv4AddressType_ROUTE_TARGET_SUBTYPE corresponds to the value ROUTE_TARGET_SUBTYPE of Structured_TransitiveIpv4AddressType
	Structured_TransitiveIpv4AddressType_ROUTE_TARGET_SUBTYPE E_Structured_TransitiveIpv4AddressType = 1
	// Structured_TransitiveIpv4AddressType_ROUTE_ORIGIN_SUBTYPE corresponds to the value ROUTE_ORIGIN_SUBTYPE of Structured_TransitiveIpv4AddressType
	Structured_TransitiveIpv4AddressType_ROUTE_ORIGIN_SUBTYPE E_Structured_TransitiveIpv4AddressType = 2
)

func (E_Structured_TransitiveIpv4AddressType) IsYANGGoEnum added in v0.5.8

IsYANGGoEnum ensures that Structured_TransitiveIpv4AddressType implements the yang.GoEnum interface. This ensures that Structured_TransitiveIpv4AddressType can be identified as a mapped type for a YANG enumeration.

func (E_Structured_TransitiveIpv4AddressType) String added in v0.5.8

String returns a logging-friendly string for E_Structured_TransitiveIpv4AddressType.

func (E_Structured_TransitiveIpv4AddressType) ΛMap added in v0.5.8

ΛMap returns the value lookup map associated with Structured_TransitiveIpv4AddressType.

type E_Structured_TransitiveOpaqueType added in v0.5.8

type E_Structured_TransitiveOpaqueType int64

E_Structured_TransitiveOpaqueType is a derived int64 type which is used to represent the enumerated node Structured_TransitiveOpaqueType. An additional value named Structured_TransitiveOpaqueType_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 (
	// Structured_TransitiveOpaqueType_UNSET corresponds to the value UNSET of Structured_TransitiveOpaqueType
	Structured_TransitiveOpaqueType_UNSET E_Structured_TransitiveOpaqueType = 0
	// Structured_TransitiveOpaqueType_COLOR_SUBTYPE corresponds to the value COLOR_SUBTYPE of Structured_TransitiveOpaqueType
	Structured_TransitiveOpaqueType_COLOR_SUBTYPE E_Structured_TransitiveOpaqueType = 1
	// Structured_TransitiveOpaqueType_ENCAPSULATION_SUBTYPE corresponds to the value ENCAPSULATION_SUBTYPE of Structured_TransitiveOpaqueType
	Structured_TransitiveOpaqueType_ENCAPSULATION_SUBTYPE E_Structured_TransitiveOpaqueType = 2
)

func (E_Structured_TransitiveOpaqueType) IsYANGGoEnum added in v0.5.8

func (E_Structured_TransitiveOpaqueType) IsYANGGoEnum()

IsYANGGoEnum ensures that Structured_TransitiveOpaqueType implements the yang.GoEnum interface. This ensures that Structured_TransitiveOpaqueType can be identified as a mapped type for a YANG enumeration.

func (E_Structured_TransitiveOpaqueType) String added in v0.5.8

String returns a logging-friendly string for E_Structured_TransitiveOpaqueType.

func (E_Structured_TransitiveOpaqueType) ΛMap added in v0.5.8

ΛMap returns the value lookup map associated with Structured_TransitiveOpaqueType.

type E_Structured_Transitive_2OctetAsType added in v0.5.8

type E_Structured_Transitive_2OctetAsType int64

E_Structured_Transitive_2OctetAsType is a derived int64 type which is used to represent the enumerated node Structured_Transitive_2OctetAsType. An additional value named Structured_Transitive_2OctetAsType_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 (
	// Structured_Transitive_2OctetAsType_UNSET corresponds to the value UNSET of Structured_Transitive_2OctetAsType
	Structured_Transitive_2OctetAsType_UNSET E_Structured_Transitive_2OctetAsType = 0
	// Structured_Transitive_2OctetAsType_ROUTE_TARGET_SUBTYPE corresponds to the value ROUTE_TARGET_SUBTYPE of Structured_Transitive_2OctetAsType
	Structured_Transitive_2OctetAsType_ROUTE_TARGET_SUBTYPE E_Structured_Transitive_2OctetAsType = 1
	// Structured_Transitive_2OctetAsType_ROUTE_ORIGIN_SUBTYPE corresponds to the value ROUTE_ORIGIN_SUBTYPE of Structured_Transitive_2OctetAsType
	Structured_Transitive_2OctetAsType_ROUTE_ORIGIN_SUBTYPE E_Structured_Transitive_2OctetAsType = 2
)

func (E_Structured_Transitive_2OctetAsType) IsYANGGoEnum added in v0.5.8

func (E_Structured_Transitive_2OctetAsType) IsYANGGoEnum()

IsYANGGoEnum ensures that Structured_Transitive_2OctetAsType implements the yang.GoEnum interface. This ensures that Structured_Transitive_2OctetAsType can be identified as a mapped type for a YANG enumeration.

func (E_Structured_Transitive_2OctetAsType) String added in v0.5.8

String returns a logging-friendly string for E_Structured_Transitive_2OctetAsType.

func (E_Structured_Transitive_2OctetAsType) ΛMap added in v0.5.8

ΛMap returns the value lookup map associated with Structured_Transitive_2OctetAsType.

type E_Structured_Transitive_4OctetAsType added in v0.5.8

type E_Structured_Transitive_4OctetAsType int64

E_Structured_Transitive_4OctetAsType is a derived int64 type which is used to represent the enumerated node Structured_Transitive_4OctetAsType. An additional value named Structured_Transitive_4OctetAsType_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 (
	// Structured_Transitive_4OctetAsType_UNSET corresponds to the value UNSET of Structured_Transitive_4OctetAsType
	Structured_Transitive_4OctetAsType_UNSET E_Structured_Transitive_4OctetAsType = 0
	// Structured_Transitive_4OctetAsType_ROUTE_TARGET_SUBTYPE corresponds to the value ROUTE_TARGET_SUBTYPE of Structured_Transitive_4OctetAsType
	Structured_Transitive_4OctetAsType_ROUTE_TARGET_SUBTYPE E_Structured_Transitive_4OctetAsType = 1
	// Structured_Transitive_4OctetAsType_ROUTE_ORIGIN_SUBTYPE corresponds to the value ROUTE_ORIGIN_SUBTYPE of Structured_Transitive_4OctetAsType
	Structured_Transitive_4OctetAsType_ROUTE_ORIGIN_SUBTYPE E_Structured_Transitive_4OctetAsType = 2
)

func (E_Structured_Transitive_4OctetAsType) IsYANGGoEnum added in v0.5.8

func (E_Structured_Transitive_4OctetAsType) IsYANGGoEnum()

IsYANGGoEnum ensures that Structured_Transitive_4OctetAsType implements the yang.GoEnum interface. This ensures that Structured_Transitive_4OctetAsType can be identified as a mapped type for a YANG enumeration.

func (E_Structured_Transitive_4OctetAsType) String added in v0.5.8

String returns a logging-friendly string for E_Structured_Transitive_4OctetAsType.

func (E_Structured_Transitive_4OctetAsType) ΛMap added in v0.5.8

ΛMap returns the value lookup map associated with Structured_Transitive_4OctetAsType.

type E_Tags_ValueType added in v0.1.12

type E_Tags_ValueType int64

E_Tags_ValueType is a derived int64 type which is used to represent the enumerated node Tags_ValueType. An additional value named Tags_ValueType_UNSET is added to the enumeration which is used as the nil value, indicating that the enumeration was not explicitly set by the program importing the generated structures.

const (
	// Tags_ValueType_UNSET corresponds to the value UNSET of Tags_ValueType
	Tags_ValueType_UNSET E_Tags_ValueType = 0
	// Tags_ValueType_STRING corresponds to the value STRING of Tags_ValueType
	Tags_ValueType_STRING E_Tags_ValueType = 1
	// Tags_ValueType_HEX corresponds to the value HEX of Tags_ValueType
	Tags_ValueType_HEX E_Tags_ValueType = 2
	// Tags_ValueType_BOOL corresponds to the value BOOL of Tags_ValueType
	Tags_ValueType_BOOL E_Tags_ValueType = 3
	// Tags_ValueType_COUNTER64 corresponds to the value COUNTER64 of Tags_ValueType
	Tags_ValueType_COUNTER64 E_Tags_ValueType = 4
	// Tags_ValueType_FLOAT32 corresponds to the value FLOAT32 of Tags_ValueType
	Tags_ValueType_FLOAT32 E_Tags_ValueType = 5
	// Tags_ValueType_IPV4 corresponds to the value IPV4 of Tags_ValueType
	Tags_ValueType_IPV4 E_Tags_ValueType = 6
	// Tags_ValueType_IPV6 corresponds to the value IPV6 of Tags_ValueType
	Tags_ValueType_IPV6 E_Tags_ValueType = 7
	// Tags_ValueType_MAC corresponds to the value MAC of Tags_ValueType
	Tags_ValueType_MAC E_Tags_ValueType = 8
)

func (E_Tags_ValueType) IsYANGGoEnum added in v0.1.12

func (E_Tags_ValueType) IsYANGGoEnum()

IsYANGGoEnum ensures that Tags_ValueType implements the yang.GoEnum interface. This ensures that Tags_ValueType can be identified as a mapped type for a YANG enumeration.

func (E_Tags_ValueType) String added in v0.1.12

func (e E_Tags_ValueType) String() string

String returns a logging-friendly string for E_Tags_ValueType.

func (E_Tags_ValueType) ΛMap added in v0.1.12

ΛMap returns the value lookup map associated with Tags_ValueType.

type E_Types_MplsLabel_Enum added in v0.4.3

type E_Types_MplsLabel_Enum int64

E_Types_MplsLabel_Enum is a derived int64 type which is used to represent the enumerated node Types_MplsLabel_Enum. An additional value named Types_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 (
	// Types_MplsLabel_Enum_UNSET corresponds to the value UNSET of Types_MplsLabel_Enum
	Types_MplsLabel_Enum_UNSET E_Types_MplsLabel_Enum = 0
	// Types_MplsLabel_Enum_IPV4_EXPLICIT_NULL corresponds to the value IPV4_EXPLICIT_NULL of Types_MplsLabel_Enum
	Types_MplsLabel_Enum_IPV4_EXPLICIT_NULL E_Types_MplsLabel_Enum = 1
	// Types_MplsLabel_Enum_ROUTER_ALERT corresponds to the value ROUTER_ALERT of Types_MplsLabel_Enum
	Types_MplsLabel_Enum_ROUTER_ALERT E_Types_MplsLabel_Enum = 2
	// Types_MplsLabel_Enum_IPV6_EXPLICIT_NULL corresponds to the value IPV6_EXPLICIT_NULL of Types_MplsLabel_Enum
	Types_MplsLabel_Enum_IPV6_EXPLICIT_NULL E_Types_MplsLabel_Enum = 3
	// Types_MplsLabel_Enum_IMPLICIT_NULL corresponds to the value IMPLICIT_NULL of Types_MplsLabel_Enum
	Types_MplsLabel_Enum_IMPLICIT_NULL E_Types_MplsLabel_Enum = 4
	// Types_MplsLabel_Enum_ENTROPY_LABEL_INDICATOR corresponds to the value ENTROPY_LABEL_INDICATOR of Types_MplsLabel_Enum
	Types_MplsLabel_Enum_ENTROPY_LABEL_INDICATOR E_Types_MplsLabel_Enum = 8
	// Types_MplsLabel_Enum_NO_LABEL corresponds to the value NO_LABEL of Types_MplsLabel_Enum
	Types_MplsLabel_Enum_NO_LABEL E_Types_MplsLabel_Enum = 9
)

func (E_Types_MplsLabel_Enum) Documentation_for_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelIn_Union added in v0.4.3

func (E_Types_MplsLabel_Enum) Documentation_for_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelIn_Union()

Documentation_for_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelIn_Union ensures that E_Types_MplsLabel_Enum implements the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelIn_Union interface.

func (E_Types_MplsLabel_Enum) Documentation_for_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelOut_Union added in v0.4.3

func (E_Types_MplsLabel_Enum) Documentation_for_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelOut_Union()

Documentation_for_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelOut_Union ensures that E_Types_MplsLabel_Enum implements the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelOut_Union interface.

func (E_Types_MplsLabel_Enum) Documentation_for_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro_ReportedLabel_Union added in v0.4.3

func (E_Types_MplsLabel_Enum) Documentation_for_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro_ReportedLabel_Union()

Documentation_for_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro_ReportedLabel_Union ensures that E_Types_MplsLabel_Enum implements the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro_ReportedLabel_Union interface.

func (E_Types_MplsLabel_Enum) IsYANGGoEnum added in v0.4.3

func (E_Types_MplsLabel_Enum) IsYANGGoEnum()

IsYANGGoEnum ensures that Types_MplsLabel_Enum implements the yang.GoEnum interface. This ensures that Types_MplsLabel_Enum can be identified as a mapped type for a YANG enumeration.

func (E_Types_MplsLabel_Enum) String added in v0.4.3

func (e E_Types_MplsLabel_Enum) String() string

String returns a logging-friendly string for E_Types_MplsLabel_Enum.

func (E_Types_MplsLabel_Enum) ΛMap added in v0.4.3

ΛMap returns the value lookup map associated with Types_MplsLabel_Enum.

type E_UnicastIpv4Prefix_Origin

type E_UnicastIpv4Prefix_Origin int64

E_UnicastIpv4Prefix_Origin is a derived int64 type which is used to represent the enumerated node UnicastIpv4Prefix_Origin. An additional value named UnicastIpv4Prefix_Origin_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 (
	// UnicastIpv4Prefix_Origin_UNSET corresponds to the value UNSET of UnicastIpv4Prefix_Origin
	UnicastIpv4Prefix_Origin_UNSET E_UnicastIpv4Prefix_Origin = 0
	// UnicastIpv4Prefix_Origin_IGP corresponds to the value IGP of UnicastIpv4Prefix_Origin
	UnicastIpv4Prefix_Origin_IGP E_UnicastIpv4Prefix_Origin = 1
	// UnicastIpv4Prefix_Origin_EGP corresponds to the value EGP of UnicastIpv4Prefix_Origin
	UnicastIpv4Prefix_Origin_EGP E_UnicastIpv4Prefix_Origin = 2
	// UnicastIpv4Prefix_Origin_INCOMPLETE corresponds to the value INCOMPLETE of UnicastIpv4Prefix_Origin
	UnicastIpv4Prefix_Origin_INCOMPLETE E_UnicastIpv4Prefix_Origin = 3
)

func (E_UnicastIpv4Prefix_Origin) IsYANGGoEnum

func (E_UnicastIpv4Prefix_Origin) IsYANGGoEnum()

IsYANGGoEnum ensures that UnicastIpv4Prefix_Origin implements the yang.GoEnum interface. This ensures that UnicastIpv4Prefix_Origin can be identified as a mapped type for a YANG enumeration.

func (E_UnicastIpv4Prefix_Origin) String

String returns a logging-friendly string for E_UnicastIpv4Prefix_Origin.

func (E_UnicastIpv4Prefix_Origin) ΛMap

ΛMap returns the value lookup map associated with UnicastIpv4Prefix_Origin.

type E_UnicastIpv6Prefix_Origin

type E_UnicastIpv6Prefix_Origin int64

E_UnicastIpv6Prefix_Origin is a derived int64 type which is used to represent the enumerated node UnicastIpv6Prefix_Origin. An additional value named UnicastIpv6Prefix_Origin_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 (
	// UnicastIpv6Prefix_Origin_UNSET corresponds to the value UNSET of UnicastIpv6Prefix_Origin
	UnicastIpv6Prefix_Origin_UNSET E_UnicastIpv6Prefix_Origin = 0
	// UnicastIpv6Prefix_Origin_IGP corresponds to the value IGP of UnicastIpv6Prefix_Origin
	UnicastIpv6Prefix_Origin_IGP E_UnicastIpv6Prefix_Origin = 1
	// UnicastIpv6Prefix_Origin_EGP corresponds to the value EGP of UnicastIpv6Prefix_Origin
	UnicastIpv6Prefix_Origin_EGP E_UnicastIpv6Prefix_Origin = 2
	// UnicastIpv6Prefix_Origin_INCOMPLETE corresponds to the value INCOMPLETE of UnicastIpv6Prefix_Origin
	UnicastIpv6Prefix_Origin_INCOMPLETE E_UnicastIpv6Prefix_Origin = 3
)

func (E_UnicastIpv6Prefix_Origin) IsYANGGoEnum

func (E_UnicastIpv6Prefix_Origin) IsYANGGoEnum()

IsYANGGoEnum ensures that UnicastIpv6Prefix_Origin implements the yang.GoEnum interface. This ensures that UnicastIpv6Prefix_Origin can be identified as a mapped type for a YANG enumeration.

func (E_UnicastIpv6Prefix_Origin) String

String returns a logging-friendly string for E_UnicastIpv6Prefix_Origin.

func (E_UnicastIpv6Prefix_Origin) ΛMap

ΛMap returns the value lookup map associated with UnicastIpv6Prefix_Origin.

type Flow

type Flow struct {
	AverageLatency *uint64                       `path:"state/average-latency" module:"open-traffic-generator-flow/open-traffic-generator-flow"`
	Counters       *Flow_Counters                `path:"state/counters" module:"open-traffic-generator-flow/open-traffic-generator-flow"`
	FirstTimestamp *float64                      `path:"state/first-timestamp" module:"open-traffic-generator-flow/open-traffic-generator-flow"`
	InFrameRate    Binary                        `path:"state/in-frame-rate" module:"open-traffic-generator-flow/open-traffic-generator-flow"`
	InL1Rate       Binary                        `path:"state/in-l1-rate" module:"open-traffic-generator-flow/open-traffic-generator-flow"`
	InRate         Binary                        `path:"state/in-rate" module:"open-traffic-generator-flow/open-traffic-generator-flow"`
	LastTimestamp  *float64                      `path:"state/last-timestamp" module:"open-traffic-generator-flow/open-traffic-generator-flow"`
	LossPct        Binary                        `path:"state/loss-pct" module:"open-traffic-generator-flow/open-traffic-generator-flow"`
	MaximumLatency *uint64                       `path:"state/maximum-latency" module:"open-traffic-generator-flow/open-traffic-generator-flow"`
	MinimumLatency *uint64                       `path:"state/minimum-latency" module:"open-traffic-generator-flow/open-traffic-generator-flow"`
	Name           *string                       `` /* 178-byte string literal not displayed */
	OutFrameRate   Binary                        `path:"state/out-frame-rate" module:"open-traffic-generator-flow/open-traffic-generator-flow"`
	OutL1Rate      Binary                        `path:"state/out-l1-rate" module:"open-traffic-generator-flow/open-traffic-generator-flow"`
	OutRate        Binary                        `path:"state/out-rate" module:"open-traffic-generator-flow/open-traffic-generator-flow"`
	TaggedMetric   map[string]*Flow_TaggedMetric `path:"tagged-metrics/tagged-metric" module:"open-traffic-generator-flow/open-traffic-generator-flow"`
	Transmit       *bool                         `path:"state/transmit" module:"open-traffic-generator-flow/open-traffic-generator-flow"`
}

Flow represents the /open-traffic-generator-flow/flows/flow YANG schema element.

func (*Flow) AppendTaggedMetric added in v0.1.12

func (t *Flow) AppendTaggedMetric(v *Flow_TaggedMetric) error

AppendTaggedMetric appends the supplied Flow_TaggedMetric struct to the list TaggedMetric of Flow. If the key value(s) specified in the supplied Flow_TaggedMetric already exist in the list, an error is returned.

func (*Flow) DeleteTaggedMetric added in v0.1.12

func (t *Flow) DeleteTaggedMetric(NameValuePairs string)

DeleteTaggedMetric deletes the value with the specified keys from the receiver Flow. If there is no such element, the function is a no-op.

func (*Flow) GetAverageLatency added in v0.1.13

func (t *Flow) GetAverageLatency() uint64

GetAverageLatency retrieves the value of the leaf AverageLatency from the Flow struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if AverageLatency is set, it can safely use t.GetAverageLatency() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.AverageLatency == nil' before retrieving the leaf's value.

func (*Flow) GetCounters

func (t *Flow) GetCounters() *Flow_Counters

GetCounters returns the value of the Counters struct pointer from Flow. If the receiver or the field Counters is nil, nil is returned such that the Get* methods can be safely chained.

func (*Flow) GetFirstTimestamp added in v0.6.1

func (t *Flow) GetFirstTimestamp() float64

GetFirstTimestamp retrieves the value of the leaf FirstTimestamp from the Flow struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if FirstTimestamp is set, it can safely use t.GetFirstTimestamp() 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.FirstTimestamp == nil' before retrieving the leaf's value.

func (*Flow) GetInFrameRate

func (t *Flow) GetInFrameRate() Binary

GetInFrameRate retrieves the value of the leaf InFrameRate from the Flow struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if InFrameRate is set, it can safely use t.GetInFrameRate() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.InFrameRate == nil' before retrieving the leaf's value.

func (*Flow) GetInL1Rate added in v0.9.0

func (t *Flow) GetInL1Rate() Binary

GetInL1Rate retrieves the value of the leaf InL1Rate from the Flow struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if InL1Rate is set, it can safely use t.GetInL1Rate() 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.InL1Rate == nil' before retrieving the leaf's value.

func (*Flow) GetInRate

func (t *Flow) GetInRate() Binary

GetInRate retrieves the value of the leaf InRate from the Flow struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if InRate is set, it can safely use t.GetInRate() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.InRate == nil' before retrieving the leaf's value.

func (*Flow) GetLastTimestamp added in v0.6.1

func (t *Flow) GetLastTimestamp() float64

GetLastTimestamp retrieves the value of the leaf LastTimestamp from the Flow struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if LastTimestamp is set, it can safely use t.GetLastTimestamp() 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.LastTimestamp == nil' before retrieving the leaf's value.

func (*Flow) GetLossPct

func (t *Flow) GetLossPct() Binary

GetLossPct retrieves the value of the leaf LossPct from the Flow struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if LossPct is set, it can safely use t.GetLossPct() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.LossPct == nil' before retrieving the leaf's value.

func (*Flow) GetMaximumLatency added in v0.1.13

func (t *Flow) GetMaximumLatency() uint64

GetMaximumLatency retrieves the value of the leaf MaximumLatency from the Flow struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if MaximumLatency is set, it can safely use t.GetMaximumLatency() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.MaximumLatency == nil' before retrieving the leaf's value.

func (*Flow) GetMinimumLatency added in v0.1.13

func (t *Flow) GetMinimumLatency() uint64

GetMinimumLatency retrieves the value of the leaf MinimumLatency from the Flow struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if MinimumLatency is set, it can safely use t.GetMinimumLatency() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.MinimumLatency == nil' before retrieving the leaf's value.

func (*Flow) GetName

func (t *Flow) GetName() string

GetName retrieves the value of the leaf Name from the Flow struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Name is set, it can safely use t.GetName() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Name == nil' before retrieving the leaf's value.

func (*Flow) GetOrCreateCounters

func (t *Flow) GetOrCreateCounters() *Flow_Counters

GetOrCreateCounters retrieves the value of the Counters field or returns the existing field if it already exists.

func (*Flow) GetOrCreateTaggedMetric added in v0.1.12

func (t *Flow) GetOrCreateTaggedMetric(NameValuePairs string) *Flow_TaggedMetric

GetOrCreateTaggedMetric retrieves the value with the specified keys from the receiver Flow. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Flow) GetOrCreateTaggedMetricMap added in v0.7.1

func (t *Flow) GetOrCreateTaggedMetricMap() map[string]*Flow_TaggedMetric

GetOrCreateTaggedMetricMap returns the list (map) from Flow.

It initializes the field if not already initialized.

func (*Flow) GetOutFrameRate

func (t *Flow) GetOutFrameRate() Binary

GetOutFrameRate retrieves the value of the leaf OutFrameRate from the Flow struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if OutFrameRate is set, it can safely use t.GetOutFrameRate() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.OutFrameRate == nil' before retrieving the leaf's value.

func (*Flow) GetOutL1Rate added in v0.9.0

func (t *Flow) GetOutL1Rate() Binary

GetOutL1Rate retrieves the value of the leaf OutL1Rate from the Flow struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if OutL1Rate is set, it can safely use t.GetOutL1Rate() 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.OutL1Rate == nil' before retrieving the leaf's value.

func (*Flow) GetOutRate

func (t *Flow) GetOutRate() Binary

GetOutRate retrieves the value of the leaf OutRate from the Flow struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if OutRate is set, it can safely use t.GetOutRate() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.OutRate == nil' before retrieving the leaf's value.

func (*Flow) GetTaggedMetric added in v0.1.12

func (t *Flow) GetTaggedMetric(NameValuePairs string) *Flow_TaggedMetric

GetTaggedMetric retrieves the value with the specified key from the TaggedMetric map field of Flow. If the receiver is nil, or the specified key is not present in the list, nil is returned such that Get* methods may be safely chained.

func (*Flow) GetTransmit

func (t *Flow) GetTransmit() bool

GetTransmit retrieves the value of the leaf Transmit from the Flow struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Transmit is set, it can safely use t.GetTransmit() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Transmit == nil' before retrieving the leaf's value.

func (*Flow) IsYANGGoStruct

func (*Flow) IsYANGGoStruct()

IsYANGGoStruct ensures that Flow implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Flow) NewTaggedMetric added in v0.1.12

func (t *Flow) NewTaggedMetric(NameValuePairs string) (*Flow_TaggedMetric, error)

NewTaggedMetric creates a new entry in the TaggedMetric list of the Flow struct. The keys of the list are populated from the input arguments.

func (*Flow) PopulateDefaults

func (t *Flow) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Flow with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Flow) RenameTaggedMetric added in v0.4.3

func (t *Flow) RenameTaggedMetric(oldK, newK string) error

RenameTaggedMetric renames an entry in the list TaggedMetric within the Flow struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Flow) SetAverageLatency added in v0.1.13

func (t *Flow) SetAverageLatency(v uint64)

SetAverageLatency sets the value of the leaf AverageLatency in the Flow struct.

func (*Flow) SetFirstTimestamp added in v0.6.1

func (t *Flow) SetFirstTimestamp(v float64)

SetFirstTimestamp sets the value of the leaf FirstTimestamp in the Flow struct.

func (*Flow) SetInFrameRate

func (t *Flow) SetInFrameRate(v Binary)

SetInFrameRate sets the value of the leaf InFrameRate in the Flow struct.

func (*Flow) SetInL1Rate added in v0.9.0

func (t *Flow) SetInL1Rate(v Binary)

SetInL1Rate sets the value of the leaf InL1Rate in the Flow struct.

func (*Flow) SetInRate

func (t *Flow) SetInRate(v Binary)

SetInRate sets the value of the leaf InRate in the Flow struct.

func (*Flow) SetLastTimestamp added in v0.6.1

func (t *Flow) SetLastTimestamp(v float64)

SetLastTimestamp sets the value of the leaf LastTimestamp in the Flow struct.

func (*Flow) SetLossPct

func (t *Flow) SetLossPct(v Binary)

SetLossPct sets the value of the leaf LossPct in the Flow struct.

func (*Flow) SetMaximumLatency added in v0.1.13

func (t *Flow) SetMaximumLatency(v uint64)

SetMaximumLatency sets the value of the leaf MaximumLatency in the Flow struct.

func (*Flow) SetMinimumLatency added in v0.1.13

func (t *Flow) SetMinimumLatency(v uint64)

SetMinimumLatency sets the value of the leaf MinimumLatency in the Flow struct.

func (*Flow) SetName

func (t *Flow) SetName(v string)

SetName sets the value of the leaf Name in the Flow struct.

func (*Flow) SetOutFrameRate

func (t *Flow) SetOutFrameRate(v Binary)

SetOutFrameRate sets the value of the leaf OutFrameRate in the Flow struct.

func (*Flow) SetOutL1Rate added in v0.9.0

func (t *Flow) SetOutL1Rate(v Binary)

SetOutL1Rate sets the value of the leaf OutL1Rate in the Flow struct.

func (*Flow) SetOutRate

func (t *Flow) SetOutRate(v Binary)

SetOutRate sets the value of the leaf OutRate in the Flow struct.

func (*Flow) SetTransmit

func (t *Flow) SetTransmit(v bool)

SetTransmit sets the value of the leaf Transmit in the Flow struct.

func (*Flow) Validate

func (t *Flow) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Flow) ΛBelongingModule

func (*Flow) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Flow.

func (*Flow) ΛEnumTypeMap

func (t *Flow) ΛEnumTypeMap() map[string][]reflect.Type

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Flow) ΛListKeyMap

func (t *Flow) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Flow struct, which is a YANG list entry.

func (*Flow) ΛValidate

func (t *Flow) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Flow_Counters

type Flow_Counters struct {
	InOctets  *uint64 `path:"in-octets" module:"open-traffic-generator-flow"`
	InPkts    *uint64 `path:"in-pkts" module:"open-traffic-generator-flow"`
	OutOctets *uint64 `path:"out-octets" module:"open-traffic-generator-flow"`
	OutPkts   *uint64 `path:"out-pkts" module:"open-traffic-generator-flow"`
}

Flow_Counters represents the /open-traffic-generator-flow/flows/flow/state/counters YANG schema element.

func (*Flow_Counters) GetInOctets

func (t *Flow_Counters) GetInOctets() uint64

GetInOctets retrieves the value of the leaf InOctets from the Flow_Counters struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if InOctets is set, it can safely use t.GetInOctets() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.InOctets == nil' before retrieving the leaf's value.

func (*Flow_Counters) GetInPkts

func (t *Flow_Counters) GetInPkts() uint64

GetInPkts retrieves the value of the leaf InPkts from the Flow_Counters struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if InPkts is set, it can safely use t.GetInPkts() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.InPkts == nil' before retrieving the leaf's value.

func (*Flow_Counters) GetOutOctets

func (t *Flow_Counters) GetOutOctets() uint64

GetOutOctets retrieves the value of the leaf OutOctets from the Flow_Counters struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if OutOctets is set, it can safely use t.GetOutOctets() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.OutOctets == nil' before retrieving the leaf's value.

func (*Flow_Counters) GetOutPkts

func (t *Flow_Counters) GetOutPkts() uint64

GetOutPkts retrieves the value of the leaf OutPkts from the Flow_Counters struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if OutPkts is set, it can safely use t.GetOutPkts() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.OutPkts == nil' before retrieving the leaf's value.

func (*Flow_Counters) IsYANGGoStruct

func (*Flow_Counters) IsYANGGoStruct()

IsYANGGoStruct ensures that Flow_Counters implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Flow_Counters) PopulateDefaults

func (t *Flow_Counters) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Flow_Counters with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Flow_Counters) SetInOctets

func (t *Flow_Counters) SetInOctets(v uint64)

SetInOctets sets the value of the leaf InOctets in the Flow_Counters struct.

func (*Flow_Counters) SetInPkts

func (t *Flow_Counters) SetInPkts(v uint64)

SetInPkts sets the value of the leaf InPkts in the Flow_Counters struct.

func (*Flow_Counters) SetOutOctets

func (t *Flow_Counters) SetOutOctets(v uint64)

SetOutOctets sets the value of the leaf OutOctets in the Flow_Counters struct.

func (*Flow_Counters) SetOutPkts

func (t *Flow_Counters) SetOutPkts(v uint64)

SetOutPkts sets the value of the leaf OutPkts in the Flow_Counters struct.

func (*Flow_Counters) Validate

func (t *Flow_Counters) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Flow_Counters) ΛBelongingModule

func (*Flow_Counters) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Flow_Counters.

func (*Flow_Counters) ΛEnumTypeMap

func (t *Flow_Counters) ΛEnumTypeMap() map[string][]reflect.Type

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Flow_Counters) ΛValidate

func (t *Flow_Counters) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Flow_TaggedMetric added in v0.1.12

type Flow_TaggedMetric struct {
	Counters       *Flow_TaggedMetric_Counters `path:"state/counters" module:"open-traffic-generator-flow/open-traffic-generator-flow"`
	NameValuePairs *string                     `` /* 214-byte string literal not displayed */
	Tags           []*Flow_TaggedMetric_Tags   `path:"state/tags" module:"open-traffic-generator-flow/open-traffic-generator-flow"`
}

Flow_TaggedMetric represents the /open-traffic-generator-flow/flows/flow/tagged-metrics/tagged-metric YANG schema element.

func (*Flow_TaggedMetric) GetCounters added in v0.1.12

GetCounters returns the value of the Counters struct pointer from Flow_TaggedMetric. If the receiver or the field Counters is nil, nil is returned such that the Get* methods can be safely chained.

func (*Flow_TaggedMetric) GetNameValuePairs added in v0.1.12

func (t *Flow_TaggedMetric) GetNameValuePairs() string

GetNameValuePairs retrieves the value of the leaf NameValuePairs from the Flow_TaggedMetric struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if NameValuePairs is set, it can safely use t.GetNameValuePairs() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.NameValuePairs == nil' before retrieving the leaf's value.

func (*Flow_TaggedMetric) GetOrCreateCounters added in v0.1.12

func (t *Flow_TaggedMetric) GetOrCreateCounters() *Flow_TaggedMetric_Counters

GetOrCreateCounters retrieves the value of the Counters field or returns the existing field if it already exists.

func (*Flow_TaggedMetric) IsYANGGoStruct added in v0.1.12

func (*Flow_TaggedMetric) IsYANGGoStruct()

IsYANGGoStruct ensures that Flow_TaggedMetric implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Flow_TaggedMetric) PopulateDefaults added in v0.1.12

func (t *Flow_TaggedMetric) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Flow_TaggedMetric with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Flow_TaggedMetric) SetNameValuePairs added in v0.1.12

func (t *Flow_TaggedMetric) SetNameValuePairs(v string)

SetNameValuePairs sets the value of the leaf NameValuePairs in the Flow_TaggedMetric struct.

func (*Flow_TaggedMetric) Validate added in v0.1.12

func (t *Flow_TaggedMetric) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Flow_TaggedMetric) ΛBelongingModule added in v0.1.12

func (*Flow_TaggedMetric) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Flow_TaggedMetric.

func (*Flow_TaggedMetric) ΛEnumTypeMap added in v0.1.12

func (t *Flow_TaggedMetric) ΛEnumTypeMap() map[string][]reflect.Type

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Flow_TaggedMetric) ΛListKeyMap added in v0.1.12

func (t *Flow_TaggedMetric) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Flow_TaggedMetric struct, which is a YANG list entry.

func (*Flow_TaggedMetric) ΛValidate added in v0.1.12

func (t *Flow_TaggedMetric) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Flow_TaggedMetric_Counters added in v0.1.12

type Flow_TaggedMetric_Counters struct {
	InOctets  *uint64 `path:"in-octets" module:"open-traffic-generator-flow"`
	InPkts    *uint64 `path:"in-pkts" module:"open-traffic-generator-flow"`
	OutOctets *uint64 `path:"out-octets" module:"open-traffic-generator-flow"`
	OutPkts   *uint64 `path:"out-pkts" module:"open-traffic-generator-flow"`
}

Flow_TaggedMetric_Counters represents the /open-traffic-generator-flow/flows/flow/tagged-metrics/tagged-metric/state/counters YANG schema element.

func (*Flow_TaggedMetric_Counters) GetInOctets added in v0.1.12

func (t *Flow_TaggedMetric_Counters) GetInOctets() uint64

GetInOctets retrieves the value of the leaf InOctets from the Flow_TaggedMetric_Counters struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if InOctets is set, it can safely use t.GetInOctets() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.InOctets == nil' before retrieving the leaf's value.

func (*Flow_TaggedMetric_Counters) GetInPkts added in v0.1.12

func (t *Flow_TaggedMetric_Counters) GetInPkts() uint64

GetInPkts retrieves the value of the leaf InPkts from the Flow_TaggedMetric_Counters struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if InPkts is set, it can safely use t.GetInPkts() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.InPkts == nil' before retrieving the leaf's value.

func (*Flow_TaggedMetric_Counters) GetOutOctets added in v0.1.12

func (t *Flow_TaggedMetric_Counters) GetOutOctets() uint64

GetOutOctets retrieves the value of the leaf OutOctets from the Flow_TaggedMetric_Counters struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if OutOctets is set, it can safely use t.GetOutOctets() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.OutOctets == nil' before retrieving the leaf's value.

func (*Flow_TaggedMetric_Counters) GetOutPkts added in v0.1.12

func (t *Flow_TaggedMetric_Counters) GetOutPkts() uint64

GetOutPkts retrieves the value of the leaf OutPkts from the Flow_TaggedMetric_Counters struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if OutPkts is set, it can safely use t.GetOutPkts() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.OutPkts == nil' before retrieving the leaf's value.

func (*Flow_TaggedMetric_Counters) IsYANGGoStruct added in v0.1.12

func (*Flow_TaggedMetric_Counters) IsYANGGoStruct()

IsYANGGoStruct ensures that Flow_TaggedMetric_Counters implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Flow_TaggedMetric_Counters) PopulateDefaults added in v0.1.12

func (t *Flow_TaggedMetric_Counters) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Flow_TaggedMetric_Counters with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Flow_TaggedMetric_Counters) SetInOctets added in v0.1.12

func (t *Flow_TaggedMetric_Counters) SetInOctets(v uint64)

SetInOctets sets the value of the leaf InOctets in the Flow_TaggedMetric_Counters struct.

func (*Flow_TaggedMetric_Counters) SetInPkts added in v0.1.12

func (t *Flow_TaggedMetric_Counters) SetInPkts(v uint64)

SetInPkts sets the value of the leaf InPkts in the Flow_TaggedMetric_Counters struct.

func (*Flow_TaggedMetric_Counters) SetOutOctets added in v0.1.12

func (t *Flow_TaggedMetric_Counters) SetOutOctets(v uint64)

SetOutOctets sets the value of the leaf OutOctets in the Flow_TaggedMetric_Counters struct.

func (*Flow_TaggedMetric_Counters) SetOutPkts added in v0.1.12

func (t *Flow_TaggedMetric_Counters) SetOutPkts(v uint64)

SetOutPkts sets the value of the leaf OutPkts in the Flow_TaggedMetric_Counters struct.

func (*Flow_TaggedMetric_Counters) Validate added in v0.1.12

Validate validates s against the YANG schema corresponding to its type.

func (*Flow_TaggedMetric_Counters) ΛBelongingModule added in v0.1.12

func (*Flow_TaggedMetric_Counters) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Flow_TaggedMetric_Counters.

func (*Flow_TaggedMetric_Counters) ΛEnumTypeMap added in v0.1.12

func (t *Flow_TaggedMetric_Counters) ΛEnumTypeMap() map[string][]reflect.Type

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Flow_TaggedMetric_Counters) ΛValidate added in v0.1.12

func (t *Flow_TaggedMetric_Counters) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Flow_TaggedMetric_Tags added in v0.1.12

type Flow_TaggedMetric_Tags struct {
	TagName  *string                          `path:"tag-name" module:"open-traffic-generator-flow"`
	TagValue *Flow_TaggedMetric_Tags_TagValue `path:"tag-value" module:"open-traffic-generator-flow"`
}

Flow_TaggedMetric_Tags represents the /open-traffic-generator-flow/flows/flow/tagged-metrics/tagged-metric/state/tags YANG schema element.

func (*Flow_TaggedMetric_Tags) GetOrCreateTagValue added in v0.1.12

func (t *Flow_TaggedMetric_Tags) GetOrCreateTagValue() *Flow_TaggedMetric_Tags_TagValue

GetOrCreateTagValue retrieves the value of the TagValue field or returns the existing field if it already exists.

func (*Flow_TaggedMetric_Tags) GetTagName added in v0.1.12

func (t *Flow_TaggedMetric_Tags) GetTagName() string

GetTagName retrieves the value of the leaf TagName from the Flow_TaggedMetric_Tags struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if TagName is set, it can safely use t.GetTagName() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.TagName == nil' before retrieving the leaf's value.

func (*Flow_TaggedMetric_Tags) GetTagValue added in v0.1.12

GetTagValue returns the value of the TagValue struct pointer from Flow_TaggedMetric_Tags. If the receiver or the field TagValue is nil, nil is returned such that the Get* methods can be safely chained.

func (*Flow_TaggedMetric_Tags) IsYANGGoStruct added in v0.1.12

func (*Flow_TaggedMetric_Tags) IsYANGGoStruct()

IsYANGGoStruct ensures that Flow_TaggedMetric_Tags implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Flow_TaggedMetric_Tags) PopulateDefaults added in v0.1.12

func (t *Flow_TaggedMetric_Tags) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Flow_TaggedMetric_Tags with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Flow_TaggedMetric_Tags) SetTagName added in v0.1.12

func (t *Flow_TaggedMetric_Tags) SetTagName(v string)

SetTagName sets the value of the leaf TagName in the Flow_TaggedMetric_Tags struct.

func (*Flow_TaggedMetric_Tags) Validate added in v0.1.12

func (t *Flow_TaggedMetric_Tags) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Flow_TaggedMetric_Tags) ΛBelongingModule added in v0.1.12

func (*Flow_TaggedMetric_Tags) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Flow_TaggedMetric_Tags.

func (*Flow_TaggedMetric_Tags) ΛEnumTypeMap added in v0.1.12

func (t *Flow_TaggedMetric_Tags) ΛEnumTypeMap() map[string][]reflect.Type

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Flow_TaggedMetric_Tags) ΛValidate added in v0.1.12

func (t *Flow_TaggedMetric_Tags) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Flow_TaggedMetric_Tags_TagValue added in v0.1.12

type Flow_TaggedMetric_Tags_TagValue struct {
	ValueAsBool      *bool            `path:"value-as-bool" module:"open-traffic-generator-flow"`
	ValueAsCounter64 *uint64          `path:"value-as-counter64" module:"open-traffic-generator-flow"`
	ValueAsFloat32   Binary           `path:"value-as-float32" module:"open-traffic-generator-flow"`
	ValueAsHex       *string          `path:"value-as-hex" module:"open-traffic-generator-flow"`
	ValueAsIpv4      *string          `path:"value-as-ipv4" module:"open-traffic-generator-flow"`
	ValueAsIpv6      *string          `path:"value-as-ipv6" module:"open-traffic-generator-flow"`
	ValueAsMac       *string          `path:"value-as-mac" module:"open-traffic-generator-flow"`
	ValueAsString    *string          `path:"value-as-string" module:"open-traffic-generator-flow"`
	ValueType        E_Tags_ValueType `path:"value-type" module:"open-traffic-generator-flow"`
}

Flow_TaggedMetric_Tags_TagValue represents the /open-traffic-generator-flow/flows/flow/tagged-metrics/tagged-metric/state/tags/tag-value YANG schema element.

func (*Flow_TaggedMetric_Tags_TagValue) GetValueAsBool added in v0.1.12

func (t *Flow_TaggedMetric_Tags_TagValue) GetValueAsBool() bool

GetValueAsBool retrieves the value of the leaf ValueAsBool from the Flow_TaggedMetric_Tags_TagValue struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if ValueAsBool is set, it can safely use t.GetValueAsBool() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.ValueAsBool == nil' before retrieving the leaf's value.

func (*Flow_TaggedMetric_Tags_TagValue) GetValueAsCounter64 added in v0.1.12

func (t *Flow_TaggedMetric_Tags_TagValue) GetValueAsCounter64() uint64

GetValueAsCounter64 retrieves the value of the leaf ValueAsCounter64 from the Flow_TaggedMetric_Tags_TagValue struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if ValueAsCounter64 is set, it can safely use t.GetValueAsCounter64() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.ValueAsCounter64 == nil' before retrieving the leaf's value.

func (*Flow_TaggedMetric_Tags_TagValue) GetValueAsFloat32 added in v0.1.12

func (t *Flow_TaggedMetric_Tags_TagValue) GetValueAsFloat32() Binary

GetValueAsFloat32 retrieves the value of the leaf ValueAsFloat32 from the Flow_TaggedMetric_Tags_TagValue struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if ValueAsFloat32 is set, it can safely use t.GetValueAsFloat32() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.ValueAsFloat32 == nil' before retrieving the leaf's value.

func (*Flow_TaggedMetric_Tags_TagValue) GetValueAsHex added in v0.1.12

func (t *Flow_TaggedMetric_Tags_TagValue) GetValueAsHex() string

GetValueAsHex retrieves the value of the leaf ValueAsHex from the Flow_TaggedMetric_Tags_TagValue struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if ValueAsHex is set, it can safely use t.GetValueAsHex() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.ValueAsHex == nil' before retrieving the leaf's value.

func (*Flow_TaggedMetric_Tags_TagValue) GetValueAsIpv4 added in v0.1.12

func (t *Flow_TaggedMetric_Tags_TagValue) GetValueAsIpv4() string

GetValueAsIpv4 retrieves the value of the leaf ValueAsIpv4 from the Flow_TaggedMetric_Tags_TagValue struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if ValueAsIpv4 is set, it can safely use t.GetValueAsIpv4() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.ValueAsIpv4 == nil' before retrieving the leaf's value.

func (*Flow_TaggedMetric_Tags_TagValue) GetValueAsIpv6 added in v0.1.12

func (t *Flow_TaggedMetric_Tags_TagValue) GetValueAsIpv6() string

GetValueAsIpv6 retrieves the value of the leaf ValueAsIpv6 from the Flow_TaggedMetric_Tags_TagValue struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if ValueAsIpv6 is set, it can safely use t.GetValueAsIpv6() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.ValueAsIpv6 == nil' before retrieving the leaf's value.

func (*Flow_TaggedMetric_Tags_TagValue) GetValueAsMac added in v0.1.12

func (t *Flow_TaggedMetric_Tags_TagValue) GetValueAsMac() string

GetValueAsMac retrieves the value of the leaf ValueAsMac from the Flow_TaggedMetric_Tags_TagValue struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if ValueAsMac is set, it can safely use t.GetValueAsMac() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.ValueAsMac == nil' before retrieving the leaf's value.

func (*Flow_TaggedMetric_Tags_TagValue) GetValueAsString added in v0.1.12

func (t *Flow_TaggedMetric_Tags_TagValue) GetValueAsString() string

GetValueAsString retrieves the value of the leaf ValueAsString from the Flow_TaggedMetric_Tags_TagValue struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if ValueAsString is set, it can safely use t.GetValueAsString() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.ValueAsString == nil' before retrieving the leaf's value.

func (*Flow_TaggedMetric_Tags_TagValue) GetValueType added in v0.1.12

GetValueType retrieves the value of the leaf ValueType from the Flow_TaggedMetric_Tags_TagValue struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if ValueType is set, it can safely use t.GetValueType() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.ValueType == nil' before retrieving the leaf's value.

func (*Flow_TaggedMetric_Tags_TagValue) IsYANGGoStruct added in v0.1.12

func (*Flow_TaggedMetric_Tags_TagValue) IsYANGGoStruct()

IsYANGGoStruct ensures that Flow_TaggedMetric_Tags_TagValue implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Flow_TaggedMetric_Tags_TagValue) PopulateDefaults added in v0.1.12

func (t *Flow_TaggedMetric_Tags_TagValue) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Flow_TaggedMetric_Tags_TagValue with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Flow_TaggedMetric_Tags_TagValue) SetValueAsBool added in v0.1.12

func (t *Flow_TaggedMetric_Tags_TagValue) SetValueAsBool(v bool)

SetValueAsBool sets the value of the leaf ValueAsBool in the Flow_TaggedMetric_Tags_TagValue struct.

func (*Flow_TaggedMetric_Tags_TagValue) SetValueAsCounter64 added in v0.1.12

func (t *Flow_TaggedMetric_Tags_TagValue) SetValueAsCounter64(v uint64)

SetValueAsCounter64 sets the value of the leaf ValueAsCounter64 in the Flow_TaggedMetric_Tags_TagValue struct.

func (*Flow_TaggedMetric_Tags_TagValue) SetValueAsFloat32 added in v0.1.12

func (t *Flow_TaggedMetric_Tags_TagValue) SetValueAsFloat32(v Binary)

SetValueAsFloat32 sets the value of the leaf ValueAsFloat32 in the Flow_TaggedMetric_Tags_TagValue struct.

func (*Flow_TaggedMetric_Tags_TagValue) SetValueAsHex added in v0.1.12

func (t *Flow_TaggedMetric_Tags_TagValue) SetValueAsHex(v string)

SetValueAsHex sets the value of the leaf ValueAsHex in the Flow_TaggedMetric_Tags_TagValue struct.

func (*Flow_TaggedMetric_Tags_TagValue) SetValueAsIpv4 added in v0.1.12

func (t *Flow_TaggedMetric_Tags_TagValue) SetValueAsIpv4(v string)

SetValueAsIpv4 sets the value of the leaf ValueAsIpv4 in the Flow_TaggedMetric_Tags_TagValue struct.

func (*Flow_TaggedMetric_Tags_TagValue) SetValueAsIpv6 added in v0.1.12

func (t *Flow_TaggedMetric_Tags_TagValue) SetValueAsIpv6(v string)

SetValueAsIpv6 sets the value of the leaf ValueAsIpv6 in the Flow_TaggedMetric_Tags_TagValue struct.

func (*Flow_TaggedMetric_Tags_TagValue) SetValueAsMac added in v0.1.12

func (t *Flow_TaggedMetric_Tags_TagValue) SetValueAsMac(v string)

SetValueAsMac sets the value of the leaf ValueAsMac in the Flow_TaggedMetric_Tags_TagValue struct.

func (*Flow_TaggedMetric_Tags_TagValue) SetValueAsString added in v0.1.12

func (t *Flow_TaggedMetric_Tags_TagValue) SetValueAsString(v string)

SetValueAsString sets the value of the leaf ValueAsString in the Flow_TaggedMetric_Tags_TagValue struct.

func (*Flow_TaggedMetric_Tags_TagValue) SetValueType added in v0.1.12

SetValueType sets the value of the leaf ValueType in the Flow_TaggedMetric_Tags_TagValue struct.

func (*Flow_TaggedMetric_Tags_TagValue) Validate added in v0.1.12

Validate validates s against the YANG schema corresponding to its type.

func (*Flow_TaggedMetric_Tags_TagValue) ΛBelongingModule added in v0.1.12

func (*Flow_TaggedMetric_Tags_TagValue) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Flow_TaggedMetric_Tags_TagValue.

func (*Flow_TaggedMetric_Tags_TagValue) ΛEnumTypeMap added in v0.1.12

func (t *Flow_TaggedMetric_Tags_TagValue) ΛEnumTypeMap() map[string][]reflect.Type

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Flow_TaggedMetric_Tags_TagValue) ΛValidate added in v0.1.12

Validate validates s against the YANG schema corresponding to its type.

type Interface

type Interface struct {
	Ipv4Neighbor map[string]*Interface_Ipv4Neighbor `path:"ipv4-neighbors/ipv4-neighbor" module:"open-traffic-generator-discovery/open-traffic-generator-discovery"`
	Ipv6Neighbor map[string]*Interface_Ipv6Neighbor `path:"ipv6-neighbors/ipv6-neighbor" module:"open-traffic-generator-discovery/open-traffic-generator-discovery"`
	Name         *string                            `` /* 198-byte string literal not displayed */
}

Interface represents the /open-traffic-generator-discovery/interfaces/interface YANG schema element.

func (*Interface) AppendIpv4Neighbor

func (t *Interface) AppendIpv4Neighbor(v *Interface_Ipv4Neighbor) error

AppendIpv4Neighbor appends the supplied Interface_Ipv4Neighbor struct to the list Ipv4Neighbor of Interface. If the key value(s) specified in the supplied Interface_Ipv4Neighbor already exist in the list, an error is returned.

func (*Interface) AppendIpv6Neighbor

func (t *Interface) AppendIpv6Neighbor(v *Interface_Ipv6Neighbor) error

AppendIpv6Neighbor appends the supplied Interface_Ipv6Neighbor struct to the list Ipv6Neighbor of Interface. If the key value(s) specified in the supplied Interface_Ipv6Neighbor already exist in the list, an error is returned.

func (*Interface) DeleteIpv4Neighbor

func (t *Interface) DeleteIpv4Neighbor(Ipv4Address string)

DeleteIpv4Neighbor 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) DeleteIpv6Neighbor

func (t *Interface) DeleteIpv6Neighbor(Ipv6Address string)

DeleteIpv6Neighbor 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) GetIpv4Neighbor

func (t *Interface) GetIpv4Neighbor(Ipv4Address string) *Interface_Ipv4Neighbor

GetIpv4Neighbor retrieves the value with the specified key from the Ipv4Neighbor map field of Interface. If the receiver is nil, or the specified key is not present in the list, nil is returned such that Get* methods may be safely chained.

func (*Interface) GetIpv6Neighbor

func (t *Interface) GetIpv6Neighbor(Ipv6Address string) *Interface_Ipv6Neighbor

GetIpv6Neighbor retrieves the value with the specified key from the Ipv6Neighbor map field of Interface. If the receiver is nil, or the specified key is not present in the list, nil is returned such that Get* methods may be safely chained.

func (*Interface) GetName

func (t *Interface) GetName() string

GetName retrieves the value of the leaf Name from the Interface struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Name is set, it can safely use t.GetName() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Name == nil' before retrieving the leaf's value.

func (*Interface) GetOrCreateIpv4Neighbor

func (t *Interface) GetOrCreateIpv4Neighbor(Ipv4Address string) *Interface_Ipv4Neighbor

GetOrCreateIpv4Neighbor retrieves the value with the specified keys from the receiver Interface. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Interface) GetOrCreateIpv4NeighborMap added in v0.7.1

func (t *Interface) GetOrCreateIpv4NeighborMap() map[string]*Interface_Ipv4Neighbor

GetOrCreateIpv4NeighborMap returns the list (map) from Interface.

It initializes the field if not already initialized.

func (*Interface) GetOrCreateIpv6Neighbor

func (t *Interface) GetOrCreateIpv6Neighbor(Ipv6Address string) *Interface_Ipv6Neighbor

GetOrCreateIpv6Neighbor retrieves the value with the specified keys from the receiver Interface. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Interface) GetOrCreateIpv6NeighborMap added in v0.7.1

func (t *Interface) GetOrCreateIpv6NeighborMap() map[string]*Interface_Ipv6Neighbor

GetOrCreateIpv6NeighborMap returns the list (map) from Interface.

It initializes the field if not already initialized.

func (*Interface) IsYANGGoStruct

func (*Interface) IsYANGGoStruct()

IsYANGGoStruct ensures that Interface implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Interface) NewIpv4Neighbor

func (t *Interface) NewIpv4Neighbor(Ipv4Address string) (*Interface_Ipv4Neighbor, error)

NewIpv4Neighbor creates a new entry in the Ipv4Neighbor list of the Interface struct. The keys of the list are populated from the input arguments.

func (*Interface) NewIpv6Neighbor

func (t *Interface) NewIpv6Neighbor(Ipv6Address string) (*Interface_Ipv6Neighbor, error)

NewIpv6Neighbor creates a new entry in the Ipv6Neighbor list of the Interface struct. The keys of the list are populated from the input arguments.

func (*Interface) PopulateDefaults

func (t *Interface) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Interface with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Interface) RenameIpv4Neighbor added in v0.4.3

func (t *Interface) RenameIpv4Neighbor(oldK, newK string) error

RenameIpv4Neighbor renames an entry in the list Ipv4Neighbor within the Interface struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Interface) RenameIpv6Neighbor added in v0.4.3

func (t *Interface) RenameIpv6Neighbor(oldK, newK string) error

RenameIpv6Neighbor renames an entry in the list Ipv6Neighbor within the Interface struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Interface) SetName

func (t *Interface) SetName(v string)

SetName sets the value of the leaf Name in the Interface struct.

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

func (*Interface) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Interface.

func (*Interface) ΛEnumTypeMap

func (t *Interface) Λ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) ΛListKeyMap

func (t *Interface) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Interface struct, which is a YANG list entry.

func (*Interface) ΛValidate

func (t *Interface) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Interface_Ipv4Neighbor

type Interface_Ipv4Neighbor struct {
	Ipv4Address      *string `` /* 222-byte string literal not displayed */
	LinkLayerAddress *string `path:"state/link-layer-address" module:"open-traffic-generator-discovery/open-traffic-generator-discovery"`
}

Interface_Ipv4Neighbor represents the /open-traffic-generator-discovery/interfaces/interface/ipv4-neighbors/ipv4-neighbor YANG schema element.

func (*Interface_Ipv4Neighbor) GetIpv4Address

func (t *Interface_Ipv4Neighbor) GetIpv4Address() string

GetIpv4Address retrieves the value of the leaf Ipv4Address from the Interface_Ipv4Neighbor struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Ipv4Address is set, it can safely use t.GetIpv4Address() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Ipv4Address == nil' before retrieving the leaf's value.

func (*Interface_Ipv4Neighbor) GetLinkLayerAddress

func (t *Interface_Ipv4Neighbor) GetLinkLayerAddress() string

GetLinkLayerAddress retrieves the value of the leaf LinkLayerAddress from the Interface_Ipv4Neighbor struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if LinkLayerAddress is set, it can safely use t.GetLinkLayerAddress() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.LinkLayerAddress == nil' before retrieving the leaf's value.

func (*Interface_Ipv4Neighbor) IsYANGGoStruct

func (*Interface_Ipv4Neighbor) IsYANGGoStruct()

IsYANGGoStruct ensures that Interface_Ipv4Neighbor implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Interface_Ipv4Neighbor) PopulateDefaults

func (t *Interface_Ipv4Neighbor) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Interface_Ipv4Neighbor with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Interface_Ipv4Neighbor) SetIpv4Address

func (t *Interface_Ipv4Neighbor) SetIpv4Address(v string)

SetIpv4Address sets the value of the leaf Ipv4Address in the Interface_Ipv4Neighbor struct.

func (*Interface_Ipv4Neighbor) SetLinkLayerAddress

func (t *Interface_Ipv4Neighbor) SetLinkLayerAddress(v string)

SetLinkLayerAddress sets the value of the leaf LinkLayerAddress in the Interface_Ipv4Neighbor struct.

func (*Interface_Ipv4Neighbor) Validate

func (t *Interface_Ipv4Neighbor) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Interface_Ipv4Neighbor) ΛBelongingModule

func (*Interface_Ipv4Neighbor) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Interface_Ipv4Neighbor.

func (*Interface_Ipv4Neighbor) ΛEnumTypeMap

func (t *Interface_Ipv4Neighbor) ΛEnumTypeMap() map[string][]reflect.Type

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Interface_Ipv4Neighbor) ΛListKeyMap

func (t *Interface_Ipv4Neighbor) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Interface_Ipv4Neighbor struct, which is a YANG list entry.

func (*Interface_Ipv4Neighbor) ΛValidate

func (t *Interface_Ipv4Neighbor) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Interface_Ipv6Neighbor

type Interface_Ipv6Neighbor struct {
	Ipv6Address      *string `` /* 222-byte string literal not displayed */
	LinkLayerAddress *string `path:"state/link-layer-address" module:"open-traffic-generator-discovery/open-traffic-generator-discovery"`
}

Interface_Ipv6Neighbor represents the /open-traffic-generator-discovery/interfaces/interface/ipv6-neighbors/ipv6-neighbor YANG schema element.

func (*Interface_Ipv6Neighbor) GetIpv6Address

func (t *Interface_Ipv6Neighbor) GetIpv6Address() string

GetIpv6Address retrieves the value of the leaf Ipv6Address from the Interface_Ipv6Neighbor struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Ipv6Address is set, it can safely use t.GetIpv6Address() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Ipv6Address == nil' before retrieving the leaf's value.

func (*Interface_Ipv6Neighbor) GetLinkLayerAddress

func (t *Interface_Ipv6Neighbor) GetLinkLayerAddress() string

GetLinkLayerAddress retrieves the value of the leaf LinkLayerAddress from the Interface_Ipv6Neighbor struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if LinkLayerAddress is set, it can safely use t.GetLinkLayerAddress() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.LinkLayerAddress == nil' before retrieving the leaf's value.

func (*Interface_Ipv6Neighbor) IsYANGGoStruct

func (*Interface_Ipv6Neighbor) IsYANGGoStruct()

IsYANGGoStruct ensures that Interface_Ipv6Neighbor implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Interface_Ipv6Neighbor) PopulateDefaults

func (t *Interface_Ipv6Neighbor) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Interface_Ipv6Neighbor with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Interface_Ipv6Neighbor) SetIpv6Address

func (t *Interface_Ipv6Neighbor) SetIpv6Address(v string)

SetIpv6Address sets the value of the leaf Ipv6Address in the Interface_Ipv6Neighbor struct.

func (*Interface_Ipv6Neighbor) SetLinkLayerAddress

func (t *Interface_Ipv6Neighbor) SetLinkLayerAddress(v string)

SetLinkLayerAddress sets the value of the leaf LinkLayerAddress in the Interface_Ipv6Neighbor struct.

func (*Interface_Ipv6Neighbor) Validate

func (t *Interface_Ipv6Neighbor) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Interface_Ipv6Neighbor) ΛBelongingModule

func (*Interface_Ipv6Neighbor) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Interface_Ipv6Neighbor.

func (*Interface_Ipv6Neighbor) ΛEnumTypeMap

func (t *Interface_Ipv6Neighbor) ΛEnumTypeMap() map[string][]reflect.Type

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Interface_Ipv6Neighbor) ΛListKeyMap

func (t *Interface_Ipv6Neighbor) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Interface_Ipv6Neighbor struct, which is a YANG list entry.

func (*Interface_Ipv6Neighbor) ΛValidate

func (t *Interface_Ipv6Neighbor) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter

type IsisRouter struct {
	Adjacencies       *IsisRouter_Adjacencies       `path:"state/adjacencies" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	Counters          *IsisRouter_Counters          `path:"state/counters" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	LinkStateDatabase *IsisRouter_LinkStateDatabase `path:"state/link-state-database" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	Name              *string                       `` /* 178-byte string literal not displayed */
}

IsisRouter represents the /open-traffic-generator-isis/isis-routers/isis-router YANG schema element.

func (*IsisRouter) GetAdjacencies added in v0.10.1

func (t *IsisRouter) GetAdjacencies() *IsisRouter_Adjacencies

GetAdjacencies returns the value of the Adjacencies struct pointer from IsisRouter. If the receiver or the field Adjacencies is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter) GetCounters

func (t *IsisRouter) GetCounters() *IsisRouter_Counters

GetCounters returns the value of the Counters struct pointer from IsisRouter. If the receiver or the field Counters is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter) GetLinkStateDatabase

func (t *IsisRouter) GetLinkStateDatabase() *IsisRouter_LinkStateDatabase

GetLinkStateDatabase returns the value of the LinkStateDatabase struct pointer from IsisRouter. If the receiver or the field LinkStateDatabase is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter) GetName

func (t *IsisRouter) GetName() string

GetName retrieves the value of the leaf Name from the IsisRouter 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 (*IsisRouter) GetOrCreateAdjacencies added in v0.10.1

func (t *IsisRouter) GetOrCreateAdjacencies() *IsisRouter_Adjacencies

GetOrCreateAdjacencies retrieves the value of the Adjacencies field or returns the existing field if it already exists.

func (*IsisRouter) GetOrCreateCounters

func (t *IsisRouter) GetOrCreateCounters() *IsisRouter_Counters

GetOrCreateCounters retrieves the value of the Counters field or returns the existing field if it already exists.

func (*IsisRouter) GetOrCreateLinkStateDatabase

func (t *IsisRouter) GetOrCreateLinkStateDatabase() *IsisRouter_LinkStateDatabase

GetOrCreateLinkStateDatabase retrieves the value of the LinkStateDatabase field or returns the existing field if it already exists.

func (*IsisRouter) IsYANGGoStruct

func (*IsisRouter) IsYANGGoStruct()

IsYANGGoStruct ensures that IsisRouter implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter) PopulateDefaults

func (t *IsisRouter) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the IsisRouter with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter) SetName

func (t *IsisRouter) SetName(v string)

SetName sets the value of the leaf Name in the IsisRouter struct.

func (*IsisRouter) Validate

func (t *IsisRouter) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter) ΛBelongingModule

func (*IsisRouter) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter.

func (*IsisRouter) ΛEnumTypeMap

func (t *IsisRouter) Λ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 (*IsisRouter) ΛListKeyMap

func (t *IsisRouter) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the IsisRouter struct, which is a YANG list entry.

func (*IsisRouter) ΛValidate

func (t *IsisRouter) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_Adjacencies added in v0.10.1

type IsisRouter_Adjacencies struct {
	Adjacency map[IsisRouter_Adjacencies_Adjacency_Key]*IsisRouter_Adjacencies_Adjacency `path:"state/adjacency" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_Adjacencies represents the /open-traffic-generator-isis/isis-routers/isis-router/state/adjacencies YANG schema element.

func (*IsisRouter_Adjacencies) AppendAdjacency added in v0.10.1

AppendAdjacency appends the supplied IsisRouter_Adjacencies_Adjacency struct to the list Adjacency of IsisRouter_Adjacencies. If the key value(s) specified in the supplied IsisRouter_Adjacencies_Adjacency already exist in the list, an error is returned.

func (*IsisRouter_Adjacencies) DeleteAdjacency added in v0.10.1

func (t *IsisRouter_Adjacencies) DeleteAdjacency(NeighborSystemId string, InterfaceName string)

DeleteAdjacency deletes the value with the specified keys from the receiver IsisRouter_Adjacencies. If there is no such element, the function is a no-op.

func (*IsisRouter_Adjacencies) GetAdjacency added in v0.10.1

func (t *IsisRouter_Adjacencies) GetAdjacency(NeighborSystemId string, InterfaceName string) *IsisRouter_Adjacencies_Adjacency

GetAdjacency retrieves the value with the specified key from the Adjacency map field of IsisRouter_Adjacencies. 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 (*IsisRouter_Adjacencies) GetOrCreateAdjacency added in v0.10.1

func (t *IsisRouter_Adjacencies) GetOrCreateAdjacency(NeighborSystemId string, InterfaceName string) *IsisRouter_Adjacencies_Adjacency

GetOrCreateAdjacency retrieves the value with the specified keys from the receiver IsisRouter_Adjacencies. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*IsisRouter_Adjacencies) GetOrCreateAdjacencyMap added in v0.10.1

GetOrCreateAdjacencyMap returns the list (map) from IsisRouter_Adjacencies.

It initializes the field if not already initialized.

func (*IsisRouter_Adjacencies) IsYANGGoStruct added in v0.10.1

func (*IsisRouter_Adjacencies) IsYANGGoStruct()

IsYANGGoStruct ensures that IsisRouter_Adjacencies implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_Adjacencies) NewAdjacency added in v0.10.1

func (t *IsisRouter_Adjacencies) NewAdjacency(NeighborSystemId string, InterfaceName string) (*IsisRouter_Adjacencies_Adjacency, error)

NewAdjacency creates a new entry in the Adjacency list of the IsisRouter_Adjacencies struct. The keys of the list are populated from the input arguments.

func (*IsisRouter_Adjacencies) PopulateDefaults added in v0.10.1

func (t *IsisRouter_Adjacencies) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_Adjacencies with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_Adjacencies) RenameAdjacency added in v0.10.1

func (t *IsisRouter_Adjacencies) RenameAdjacency(oldK, newK IsisRouter_Adjacencies_Adjacency_Key) error

RenameAdjacency renames an entry in the list Adjacency within the IsisRouter_Adjacencies struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*IsisRouter_Adjacencies) Validate added in v0.10.1

func (t *IsisRouter_Adjacencies) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_Adjacencies) ΛBelongingModule added in v0.10.1

func (*IsisRouter_Adjacencies) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_Adjacencies.

func (*IsisRouter_Adjacencies) ΛEnumTypeMap added in v0.10.1

func (t *IsisRouter_Adjacencies) Λ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 (*IsisRouter_Adjacencies) ΛValidate added in v0.10.1

func (t *IsisRouter_Adjacencies) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_Adjacencies_Adjacency added in v0.10.1

type IsisRouter_Adjacencies_Adjacency struct {
	InterfaceName    *string                                         `` /* 208-byte string literal not displayed */
	LocalState       *IsisRouter_Adjacencies_Adjacency_LocalState    `path:"state/local-state" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	NeighborState    *IsisRouter_Adjacencies_Adjacency_NeighborState `path:"state/neighbor-state" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	NeighborSystemId *string                                         `` /* 220-byte string literal not displayed */
}

IsisRouter_Adjacencies_Adjacency represents the /open-traffic-generator-isis/isis-routers/isis-router/state/adjacencies/state/adjacency YANG schema element.

func (*IsisRouter_Adjacencies_Adjacency) GetInterfaceName added in v0.10.1

func (t *IsisRouter_Adjacencies_Adjacency) GetInterfaceName() string

GetInterfaceName retrieves the value of the leaf InterfaceName from the IsisRouter_Adjacencies_Adjacency 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 InterfaceName is set, it can safely use t.GetInterfaceName() 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.InterfaceName == nil' before retrieving the leaf's value.

func (*IsisRouter_Adjacencies_Adjacency) GetLocalState added in v0.10.1

GetLocalState returns the value of the LocalState struct pointer from IsisRouter_Adjacencies_Adjacency. If the receiver or the field LocalState is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter_Adjacencies_Adjacency) GetNeighborState added in v0.10.1

GetNeighborState returns the value of the NeighborState struct pointer from IsisRouter_Adjacencies_Adjacency. If the receiver or the field NeighborState is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter_Adjacencies_Adjacency) GetNeighborSystemId added in v0.10.1

func (t *IsisRouter_Adjacencies_Adjacency) GetNeighborSystemId() string

GetNeighborSystemId retrieves the value of the leaf NeighborSystemId from the IsisRouter_Adjacencies_Adjacency 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 NeighborSystemId is set, it can safely use t.GetNeighborSystemId() 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.NeighborSystemId == nil' before retrieving the leaf's value.

func (*IsisRouter_Adjacencies_Adjacency) GetOrCreateLocalState added in v0.10.1

GetOrCreateLocalState retrieves the value of the LocalState field or returns the existing field if it already exists.

func (*IsisRouter_Adjacencies_Adjacency) GetOrCreateNeighborState added in v0.10.1

GetOrCreateNeighborState retrieves the value of the NeighborState field or returns the existing field if it already exists.

func (*IsisRouter_Adjacencies_Adjacency) IsYANGGoStruct added in v0.10.1

func (*IsisRouter_Adjacencies_Adjacency) IsYANGGoStruct()

IsYANGGoStruct ensures that IsisRouter_Adjacencies_Adjacency implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_Adjacencies_Adjacency) PopulateDefaults added in v0.10.1

func (t *IsisRouter_Adjacencies_Adjacency) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_Adjacencies_Adjacency with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_Adjacencies_Adjacency) SetInterfaceName added in v0.10.1

func (t *IsisRouter_Adjacencies_Adjacency) SetInterfaceName(v string)

SetInterfaceName sets the value of the leaf InterfaceName in the IsisRouter_Adjacencies_Adjacency struct.

func (*IsisRouter_Adjacencies_Adjacency) SetNeighborSystemId added in v0.10.1

func (t *IsisRouter_Adjacencies_Adjacency) SetNeighborSystemId(v string)

SetNeighborSystemId sets the value of the leaf NeighborSystemId in the IsisRouter_Adjacencies_Adjacency struct.

func (*IsisRouter_Adjacencies_Adjacency) Validate added in v0.10.1

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_Adjacencies_Adjacency) ΛBelongingModule added in v0.10.1

func (*IsisRouter_Adjacencies_Adjacency) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_Adjacencies_Adjacency.

func (*IsisRouter_Adjacencies_Adjacency) ΛEnumTypeMap added in v0.10.1

func (t *IsisRouter_Adjacencies_Adjacency) Λ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 (*IsisRouter_Adjacencies_Adjacency) ΛListKeyMap added in v0.10.1

func (t *IsisRouter_Adjacencies_Adjacency) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the IsisRouter_Adjacencies_Adjacency struct, which is a YANG list entry.

func (*IsisRouter_Adjacencies_Adjacency) ΛValidate added in v0.10.1

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_Adjacencies_Adjacency_Key added in v0.10.1

type IsisRouter_Adjacencies_Adjacency_Key struct {
	NeighborSystemId string `path:"neighbor-system-id"`
	InterfaceName    string `path:"interface-name"`
}

IsisRouter_Adjacencies_Adjacency_Key represents the key for list Adjacency of element /open-traffic-generator-isis/isis-routers/isis-router/state/adjacencies.

func (IsisRouter_Adjacencies_Adjacency_Key) IsYANGGoKeyStruct added in v0.10.1

func (IsisRouter_Adjacencies_Adjacency_Key) IsYANGGoKeyStruct()

IsYANGGoKeyStruct ensures that IsisRouter_Adjacencies_Adjacency_Key partially implements the yang.GoKeyStruct interface. This allows functions that need to handle this key struct to identify it as being generated by gogen.

func (IsisRouter_Adjacencies_Adjacency_Key) ΛListKeyMap added in v0.10.1

func (t IsisRouter_Adjacencies_Adjacency_Key) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the values of the IsisRouter_Adjacencies_Adjacency_Key key struct.

type IsisRouter_Adjacencies_Adjacency_LocalState added in v0.10.1

type IsisRouter_Adjacencies_Adjacency_LocalState struct {
	HoldTimer             *uint32                                                            `path:"state/hold-timer" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	LevelType             E_LocalState_LevelType                                             `path:"state/level-type" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	LocalRestartingStatus *IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus `path:"state/local-restarting-status" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_Adjacencies_Adjacency_LocalState represents the /open-traffic-generator-isis/isis-routers/isis-router/state/adjacencies/state/adjacency/state/local-state YANG schema element.

func (*IsisRouter_Adjacencies_Adjacency_LocalState) GetHoldTimer added in v0.10.1

GetHoldTimer retrieves the value of the leaf HoldTimer from the IsisRouter_Adjacencies_Adjacency_LocalState 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 HoldTimer is set, it can safely use t.GetHoldTimer() 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.HoldTimer == nil' before retrieving the leaf's value.

func (*IsisRouter_Adjacencies_Adjacency_LocalState) GetLevelType added in v0.10.1

GetLevelType retrieves the value of the leaf LevelType from the IsisRouter_Adjacencies_Adjacency_LocalState 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 LevelType is set, it can safely use t.GetLevelType() 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.LevelType == nil' before retrieving the leaf's value.

func (*IsisRouter_Adjacencies_Adjacency_LocalState) GetLocalRestartingStatus added in v0.10.1

GetLocalRestartingStatus returns the value of the LocalRestartingStatus struct pointer from IsisRouter_Adjacencies_Adjacency_LocalState. If the receiver or the field LocalRestartingStatus is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter_Adjacencies_Adjacency_LocalState) GetOrCreateLocalRestartingStatus added in v0.10.1

GetOrCreateLocalRestartingStatus retrieves the value of the LocalRestartingStatus field or returns the existing field if it already exists.

func (*IsisRouter_Adjacencies_Adjacency_LocalState) IsYANGGoStruct added in v0.10.1

IsYANGGoStruct ensures that IsisRouter_Adjacencies_Adjacency_LocalState implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_Adjacencies_Adjacency_LocalState) PopulateDefaults added in v0.10.1

func (t *IsisRouter_Adjacencies_Adjacency_LocalState) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_Adjacencies_Adjacency_LocalState with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_Adjacencies_Adjacency_LocalState) SetHoldTimer added in v0.10.1

SetHoldTimer sets the value of the leaf HoldTimer in the IsisRouter_Adjacencies_Adjacency_LocalState struct.

func (*IsisRouter_Adjacencies_Adjacency_LocalState) SetLevelType added in v0.10.1

SetLevelType sets the value of the leaf LevelType in the IsisRouter_Adjacencies_Adjacency_LocalState struct.

func (*IsisRouter_Adjacencies_Adjacency_LocalState) Validate added in v0.10.1

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_Adjacencies_Adjacency_LocalState) ΛBelongingModule added in v0.10.1

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_Adjacencies_Adjacency_LocalState.

func (*IsisRouter_Adjacencies_Adjacency_LocalState) ΛEnumTypeMap added in v0.10.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_Adjacencies_Adjacency_LocalState) ΛValidate added in v0.10.1

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus added in v0.10.1

type IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus struct {
	CurrentState                     E_LocalRestartingStatus_CurrentState                                                                `path:"state/current-state" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	LocalLastRestartingAttemptStatus *IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus `path:"state/local-last-restarting-attempt-status" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus represents the /open-traffic-generator-isis/isis-routers/isis-router/state/adjacencies/state/adjacency/state/local-state/state/local-restarting-status YANG schema element.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus) GetCurrentState added in v0.10.1

GetCurrentState retrieves the value of the leaf CurrentState from the IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus 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 CurrentState is set, it can safely use t.GetCurrentState() 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.CurrentState == nil' before retrieving the leaf's value.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus) GetLocalLastRestartingAttemptStatus added in v0.10.1

GetLocalLastRestartingAttemptStatus returns the value of the LocalLastRestartingAttemptStatus struct pointer from IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus. If the receiver or the field LocalLastRestartingAttemptStatus is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus) GetOrCreateLocalLastRestartingAttemptStatus added in v0.10.1

GetOrCreateLocalLastRestartingAttemptStatus retrieves the value of the LocalLastRestartingAttemptStatus field or returns the existing field if it already exists.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus) IsYANGGoStruct added in v0.10.1

IsYANGGoStruct ensures that IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus) PopulateDefaults added in v0.10.1

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus) SetCurrentState added in v0.10.1

SetCurrentState sets the value of the leaf CurrentState in the IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus struct.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus) Validate added in v0.10.1

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus) ΛBelongingModule added in v0.10.1

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus) ΛEnumTypeMap added in v0.10.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus) ΛValidate added in v0.10.1

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus added in v0.10.1

type IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus struct {
	LocalLastRestartingAttemptFailed     *IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptFailed    `path:"state/local-last-restarting-attempt-failed" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	LocalLastRestartingAttemptStatusType E_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptStatusType                                                                 `path:"state/local-last-restarting-attempt-status-type" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	LocalLastRestartingAttemptSucceeded  *IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptSucceeded `path:"state/local-last-restarting-attempt-succeeded" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus represents the /open-traffic-generator-isis/isis-routers/isis-router/state/adjacencies/state/adjacency/state/local-state/state/local-restarting-status/state/local-last-restarting-attempt-status YANG schema element.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus) GetLocalLastRestartingAttemptFailed added in v0.10.1

GetLocalLastRestartingAttemptFailed returns the value of the LocalLastRestartingAttemptFailed struct pointer from IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus. If the receiver or the field LocalLastRestartingAttemptFailed is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus) GetLocalLastRestartingAttemptStatusType added in v0.10.1

GetLocalLastRestartingAttemptStatusType retrieves the value of the leaf LocalLastRestartingAttemptStatusType from the IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus 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 LocalLastRestartingAttemptStatusType is set, it can safely use t.GetLocalLastRestartingAttemptStatusType() 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.LocalLastRestartingAttemptStatusType == nil' before retrieving the leaf's value.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus) GetLocalLastRestartingAttemptSucceeded added in v0.10.1

GetLocalLastRestartingAttemptSucceeded returns the value of the LocalLastRestartingAttemptSucceeded struct pointer from IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus. If the receiver or the field LocalLastRestartingAttemptSucceeded is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus) GetOrCreateLocalLastRestartingAttemptFailed added in v0.10.1

GetOrCreateLocalLastRestartingAttemptFailed retrieves the value of the LocalLastRestartingAttemptFailed field or returns the existing field if it already exists.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus) GetOrCreateLocalLastRestartingAttemptSucceeded added in v0.10.1

GetOrCreateLocalLastRestartingAttemptSucceeded retrieves the value of the LocalLastRestartingAttemptSucceeded field or returns the existing field if it already exists.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus) IsYANGGoStruct added in v0.10.1

IsYANGGoStruct ensures that IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus) PopulateDefaults added in v0.10.1

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus) SetLocalLastRestartingAttemptStatusType added in v0.10.1

SetLocalLastRestartingAttemptStatusType sets the value of the leaf LocalLastRestartingAttemptStatusType in the IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus struct.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus) Validate added in v0.10.1

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus) ΛBelongingModule added in v0.10.1

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus) ΛEnumTypeMap added in v0.10.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus) ΛValidate added in v0.10.1

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptFailed added in v0.10.1

type IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptFailed struct {
	Reason *string `path:"state/reason" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptFailed represents the /open-traffic-generator-isis/isis-routers/isis-router/state/adjacencies/state/adjacency/state/local-state/state/local-restarting-status/state/local-last-restarting-attempt-status/state/local-last-restarting-attempt-failed YANG schema element.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptFailed) GetReason added in v0.10.1

GetReason retrieves the value of the leaf Reason from the IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptFailed 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 Reason is set, it can safely use t.GetReason() 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.Reason == nil' before retrieving the leaf's value.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptFailed) IsYANGGoStruct added in v0.10.1

IsYANGGoStruct ensures that IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptFailed implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptFailed) PopulateDefaults added in v0.10.1

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptFailed with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptFailed) SetReason added in v0.10.1

SetReason sets the value of the leaf Reason in the IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptFailed struct.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptFailed) Validate added in v0.10.1

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptFailed) ΛBelongingModule added in v0.10.1

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptFailed.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptFailed) ΛEnumTypeMap added in v0.10.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptFailed) ΛValidate added in v0.10.1

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptSucceeded added in v0.10.1

type IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptSucceeded struct {
	LocalAdjacencyBringUpTime *uint32 `path:"state/local-adjacency-bring-up-time" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	LocalLsdbSyncupTime       *uint32 `path:"state/local-lsdb-syncup-time" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptSucceeded represents the /open-traffic-generator-isis/isis-routers/isis-router/state/adjacencies/state/adjacency/state/local-state/state/local-restarting-status/state/local-last-restarting-attempt-status/state/local-last-restarting-attempt-succeeded YANG schema element.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptSucceeded) GetLocalAdjacencyBringUpTime added in v0.10.1

GetLocalAdjacencyBringUpTime retrieves the value of the leaf LocalAdjacencyBringUpTime from the IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptSucceeded 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 LocalAdjacencyBringUpTime is set, it can safely use t.GetLocalAdjacencyBringUpTime() 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.LocalAdjacencyBringUpTime == nil' before retrieving the leaf's value.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptSucceeded) GetLocalLsdbSyncupTime added in v0.10.1

GetLocalLsdbSyncupTime retrieves the value of the leaf LocalLsdbSyncupTime from the IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptSucceeded 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 LocalLsdbSyncupTime is set, it can safely use t.GetLocalLsdbSyncupTime() 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.LocalLsdbSyncupTime == nil' before retrieving the leaf's value.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptSucceeded) IsYANGGoStruct added in v0.10.1

IsYANGGoStruct ensures that IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptSucceeded implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptSucceeded) PopulateDefaults added in v0.10.1

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptSucceeded with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptSucceeded) SetLocalAdjacencyBringUpTime added in v0.10.1

SetLocalAdjacencyBringUpTime sets the value of the leaf LocalAdjacencyBringUpTime in the IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptSucceeded struct.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptSucceeded) SetLocalLsdbSyncupTime added in v0.10.1

SetLocalLsdbSyncupTime sets the value of the leaf LocalLsdbSyncupTime in the IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptSucceeded struct.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptSucceeded) Validate added in v0.10.1

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptSucceeded) ΛBelongingModule added in v0.10.1

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptSucceeded.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptSucceeded) ΛEnumTypeMap added in v0.10.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_Adjacencies_Adjacency_LocalState_LocalRestartingStatus_LocalLastRestartingAttemptStatus_LocalLastRestartingAttemptSucceeded) ΛValidate added in v0.10.1

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_Adjacencies_Adjacency_NeighborState added in v0.10.1

type IsisRouter_Adjacencies_Adjacency_NeighborState struct {
	HoldTimer             *uint32                                                               `path:"state/hold-timer" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	LevelType             E_NeighborState_LevelType                                             `path:"state/level-type" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	NeighRestartingStatus *IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus `path:"state/neigh-restarting-status" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	Tlvs                  *IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs                  `path:"state/tlvs" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_Adjacencies_Adjacency_NeighborState represents the /open-traffic-generator-isis/isis-routers/isis-router/state/adjacencies/state/adjacency/state/neighbor-state YANG schema element.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState) GetHoldTimer added in v0.10.1

GetHoldTimer retrieves the value of the leaf HoldTimer from the IsisRouter_Adjacencies_Adjacency_NeighborState 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 HoldTimer is set, it can safely use t.GetHoldTimer() 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.HoldTimer == nil' before retrieving the leaf's value.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState) GetLevelType added in v0.10.1

GetLevelType retrieves the value of the leaf LevelType from the IsisRouter_Adjacencies_Adjacency_NeighborState 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 LevelType is set, it can safely use t.GetLevelType() 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.LevelType == nil' before retrieving the leaf's value.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState) GetNeighRestartingStatus added in v0.10.1

GetNeighRestartingStatus returns the value of the NeighRestartingStatus struct pointer from IsisRouter_Adjacencies_Adjacency_NeighborState. If the receiver or the field NeighRestartingStatus is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState) GetOrCreateNeighRestartingStatus added in v0.10.1

GetOrCreateNeighRestartingStatus retrieves the value of the NeighRestartingStatus field or returns the existing field if it already exists.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState) GetOrCreateTlvs added in v0.10.1

GetOrCreateTlvs retrieves the value of the Tlvs field or returns the existing field if it already exists.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState) GetTlvs added in v0.10.1

GetTlvs returns the value of the Tlvs struct pointer from IsisRouter_Adjacencies_Adjacency_NeighborState. If the receiver or the field Tlvs is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState) IsYANGGoStruct added in v0.10.1

IsYANGGoStruct ensures that IsisRouter_Adjacencies_Adjacency_NeighborState implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState) PopulateDefaults added in v0.10.1

func (t *IsisRouter_Adjacencies_Adjacency_NeighborState) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_Adjacencies_Adjacency_NeighborState with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState) SetHoldTimer added in v0.10.1

SetHoldTimer sets the value of the leaf HoldTimer in the IsisRouter_Adjacencies_Adjacency_NeighborState struct.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState) SetLevelType added in v0.10.1

SetLevelType sets the value of the leaf LevelType in the IsisRouter_Adjacencies_Adjacency_NeighborState struct.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState) Validate added in v0.10.1

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState) ΛBelongingModule added in v0.10.1

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_Adjacencies_Adjacency_NeighborState.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState) ΛEnumTypeMap added in v0.10.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState) ΛValidate added in v0.10.1

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus added in v0.10.1

type IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus struct {
	CurrentState                     E_NeighRestartingStatus_CurrentState                                                                   `path:"state/current-state" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	NeighLastRestartingAttemptStatus *IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus `path:"state/neigh-last-restarting-attempt-status" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus represents the /open-traffic-generator-isis/isis-routers/isis-router/state/adjacencies/state/adjacency/state/neighbor-state/state/neigh-restarting-status YANG schema element.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus) GetCurrentState added in v0.10.1

GetCurrentState retrieves the value of the leaf CurrentState from the IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus 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 CurrentState is set, it can safely use t.GetCurrentState() 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.CurrentState == nil' before retrieving the leaf's value.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus) GetNeighLastRestartingAttemptStatus added in v0.10.1

GetNeighLastRestartingAttemptStatus returns the value of the NeighLastRestartingAttemptStatus struct pointer from IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus. If the receiver or the field NeighLastRestartingAttemptStatus is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus) GetOrCreateNeighLastRestartingAttemptStatus added in v0.10.1

GetOrCreateNeighLastRestartingAttemptStatus retrieves the value of the NeighLastRestartingAttemptStatus field or returns the existing field if it already exists.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus) IsYANGGoStruct added in v0.10.1

IsYANGGoStruct ensures that IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus) PopulateDefaults added in v0.10.1

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus) SetCurrentState added in v0.10.1

SetCurrentState sets the value of the leaf CurrentState in the IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus struct.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus) Validate added in v0.10.1

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus) ΛBelongingModule added in v0.10.1

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus) ΛEnumTypeMap added in v0.10.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus) ΛValidate added in v0.10.1

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus added in v0.10.1

type IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus struct {
	NeighLastRestartingAttemptFailed     *IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptFailed    `path:"state/neigh-last-restarting-attempt-failed" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	NeighLastRestartingAttemptStatusType E_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptStatusType                                                                    `path:"state/neigh-last-restarting-attempt-status-type" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	NeighLastRestartingAttemptSucceeded  *IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptSucceeded `path:"state/neigh-last-restarting-attempt-succeeded" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus represents the /open-traffic-generator-isis/isis-routers/isis-router/state/adjacencies/state/adjacency/state/neighbor-state/state/neigh-restarting-status/state/neigh-last-restarting-attempt-status YANG schema element.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus) GetNeighLastRestartingAttemptFailed added in v0.10.1

GetNeighLastRestartingAttemptFailed returns the value of the NeighLastRestartingAttemptFailed struct pointer from IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus. If the receiver or the field NeighLastRestartingAttemptFailed is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus) GetNeighLastRestartingAttemptStatusType added in v0.10.1

GetNeighLastRestartingAttemptStatusType retrieves the value of the leaf NeighLastRestartingAttemptStatusType from the IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus 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 NeighLastRestartingAttemptStatusType is set, it can safely use t.GetNeighLastRestartingAttemptStatusType() 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.NeighLastRestartingAttemptStatusType == nil' before retrieving the leaf's value.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus) GetNeighLastRestartingAttemptSucceeded added in v0.10.1

GetNeighLastRestartingAttemptSucceeded returns the value of the NeighLastRestartingAttemptSucceeded struct pointer from IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus. If the receiver or the field NeighLastRestartingAttemptSucceeded is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus) GetOrCreateNeighLastRestartingAttemptFailed added in v0.10.1

GetOrCreateNeighLastRestartingAttemptFailed retrieves the value of the NeighLastRestartingAttemptFailed field or returns the existing field if it already exists.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus) GetOrCreateNeighLastRestartingAttemptSucceeded added in v0.10.1

GetOrCreateNeighLastRestartingAttemptSucceeded retrieves the value of the NeighLastRestartingAttemptSucceeded field or returns the existing field if it already exists.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus) IsYANGGoStruct added in v0.10.1

IsYANGGoStruct ensures that IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus) PopulateDefaults added in v0.10.1

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus) SetNeighLastRestartingAttemptStatusType added in v0.10.1

SetNeighLastRestartingAttemptStatusType sets the value of the leaf NeighLastRestartingAttemptStatusType in the IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus struct.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus) Validate added in v0.10.1

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus) ΛBelongingModule added in v0.10.1

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus) ΛEnumTypeMap added in v0.10.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus) ΛValidate added in v0.10.1

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptFailed added in v0.10.1

type IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptFailed struct {
	Reason *string `path:"state/reason" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptFailed represents the /open-traffic-generator-isis/isis-routers/isis-router/state/adjacencies/state/adjacency/state/neighbor-state/state/neigh-restarting-status/state/neigh-last-restarting-attempt-status/state/neigh-last-restarting-attempt-failed YANG schema element.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptFailed) GetReason added in v0.10.1

GetReason retrieves the value of the leaf Reason from the IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptFailed 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 Reason is set, it can safely use t.GetReason() 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.Reason == nil' before retrieving the leaf's value.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptFailed) IsYANGGoStruct added in v0.10.1

IsYANGGoStruct ensures that IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptFailed implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptFailed) PopulateDefaults added in v0.10.1

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptFailed with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptFailed) SetReason added in v0.10.1

SetReason sets the value of the leaf Reason in the IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptFailed struct.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptFailed) Validate added in v0.10.1

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptFailed) ΛBelongingModule added in v0.10.1

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptFailed.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptFailed) ΛEnumTypeMap added in v0.10.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptFailed) ΛValidate added in v0.10.1

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptSucceeded added in v0.10.1

type IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptSucceeded struct {
	NeighAdjacencyBringUpTime *uint32 `path:"state/neigh-adjacency-bring-up-time" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptSucceeded represents the /open-traffic-generator-isis/isis-routers/isis-router/state/adjacencies/state/adjacency/state/neighbor-state/state/neigh-restarting-status/state/neigh-last-restarting-attempt-status/state/neigh-last-restarting-attempt-succeeded YANG schema element.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptSucceeded) GetNeighAdjacencyBringUpTime added in v0.10.1

GetNeighAdjacencyBringUpTime retrieves the value of the leaf NeighAdjacencyBringUpTime from the IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptSucceeded 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 NeighAdjacencyBringUpTime is set, it can safely use t.GetNeighAdjacencyBringUpTime() 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.NeighAdjacencyBringUpTime == nil' before retrieving the leaf's value.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptSucceeded) IsYANGGoStruct added in v0.10.1

IsYANGGoStruct ensures that IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptSucceeded implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptSucceeded) PopulateDefaults added in v0.10.1

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptSucceeded with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptSucceeded) SetNeighAdjacencyBringUpTime added in v0.10.1

SetNeighAdjacencyBringUpTime sets the value of the leaf NeighAdjacencyBringUpTime in the IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptSucceeded struct.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptSucceeded) Validate added in v0.10.1

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptSucceeded) ΛBelongingModule added in v0.10.1

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptSucceeded.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptSucceeded) ΛEnumTypeMap added in v0.10.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_NeighRestartingStatus_NeighLastRestartingAttemptStatus_NeighLastRestartingAttemptSucceeded) ΛValidate added in v0.10.1

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs added in v0.10.1

type IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs struct {
	RestartTlv *IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs_RestartTlv `path:"restart_tlv" module:"open-traffic-generator-isis"`
}

IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs represents the /open-traffic-generator-isis/isis-routers/isis-router/state/adjacencies/state/adjacency/state/neighbor-state/state/tlvs YANG schema element.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs) GetOrCreateRestartTlv added in v0.10.1

GetOrCreateRestartTlv retrieves the value of the RestartTlv field or returns the existing field if it already exists.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs) GetRestartTlv added in v0.10.1

GetRestartTlv returns the value of the RestartTlv struct pointer from IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs. If the receiver or the field RestartTlv is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs) IsYANGGoStruct added in v0.10.1

IsYANGGoStruct ensures that IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs) PopulateDefaults added in v0.10.1

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs) Validate added in v0.10.1

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs) ΛBelongingModule added in v0.10.1

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs) ΛEnumTypeMap added in v0.10.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs) ΛValidate added in v0.10.1

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs_RestartTlv added in v0.10.1

type IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs_RestartTlv struct {
	Flags                []E_RestartTlv_Flags `path:"state/flags" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	RemainingTime        *uint32              `path:"state/remaining-time" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	RestartingNeighborId *string              `path:"state/restarting-neighbor-id" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs_RestartTlv represents the /open-traffic-generator-isis/isis-routers/isis-router/state/adjacencies/state/adjacency/state/neighbor-state/state/tlvs/restart_tlv YANG schema element.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs_RestartTlv) GetFlags added in v0.10.1

GetFlags retrieves the value of the leaf Flags from the IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs_RestartTlv 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 Flags is set, it can safely use t.GetFlags() 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.Flags == nil' before retrieving the leaf's value.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs_RestartTlv) GetRemainingTime added in v0.10.1

GetRemainingTime retrieves the value of the leaf RemainingTime from the IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs_RestartTlv 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 RemainingTime is set, it can safely use t.GetRemainingTime() 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.RemainingTime == nil' before retrieving the leaf's value.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs_RestartTlv) GetRestartingNeighborId added in v0.10.1

GetRestartingNeighborId retrieves the value of the leaf RestartingNeighborId from the IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs_RestartTlv 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 RestartingNeighborId is set, it can safely use t.GetRestartingNeighborId() 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.RestartingNeighborId == nil' before retrieving the leaf's value.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs_RestartTlv) IsYANGGoStruct added in v0.10.1

IsYANGGoStruct ensures that IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs_RestartTlv implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs_RestartTlv) PopulateDefaults added in v0.10.1

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs_RestartTlv with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs_RestartTlv) SetFlags added in v0.10.1

SetFlags sets the value of the leaf Flags in the IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs_RestartTlv struct.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs_RestartTlv) SetRemainingTime added in v0.10.1

SetRemainingTime sets the value of the leaf RemainingTime in the IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs_RestartTlv struct.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs_RestartTlv) SetRestartingNeighborId added in v0.10.1

SetRestartingNeighborId sets the value of the leaf RestartingNeighborId in the IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs_RestartTlv struct.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs_RestartTlv) Validate added in v0.10.1

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs_RestartTlv) ΛBelongingModule added in v0.10.1

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs_RestartTlv.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs_RestartTlv) ΛEnumTypeMap added in v0.10.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_Adjacencies_Adjacency_NeighborState_Tlvs_RestartTlv) ΛValidate added in v0.10.1

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_Counters

type IsisRouter_Counters struct {
	GrInitiated         *uint64                     `path:"gr-initiated" module:"open-traffic-generator-isis"`
	GrSucceeded         *uint64                     `path:"gr-succeeded" module:"open-traffic-generator-isis"`
	Level1              *IsisRouter_Counters_Level1 `path:"level1" module:"open-traffic-generator-isis"`
	Level2              *IsisRouter_Counters_Level2 `path:"level2" module:"open-traffic-generator-isis"`
	NeighborGrInitiated *uint64                     `path:"neighbor-gr-initiated" module:"open-traffic-generator-isis"`
	NeighborGrSucceeded *uint64                     `path:"neighbor-gr-succeeded" module:"open-traffic-generator-isis"`
}

IsisRouter_Counters represents the /open-traffic-generator-isis/isis-routers/isis-router/state/counters YANG schema element.

func (*IsisRouter_Counters) GetGrInitiated added in v0.10.1

func (t *IsisRouter_Counters) GetGrInitiated() uint64

GetGrInitiated retrieves the value of the leaf GrInitiated from the IsisRouter_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 GrInitiated is set, it can safely use t.GetGrInitiated() 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.GrInitiated == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters) GetGrSucceeded added in v0.10.1

func (t *IsisRouter_Counters) GetGrSucceeded() uint64

GetGrSucceeded retrieves the value of the leaf GrSucceeded from the IsisRouter_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 GrSucceeded is set, it can safely use t.GetGrSucceeded() 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.GrSucceeded == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters) GetLevel1

GetLevel1 returns the value of the Level1 struct pointer from IsisRouter_Counters. If the receiver or the field Level1 is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter_Counters) GetLevel2

GetLevel2 returns the value of the Level2 struct pointer from IsisRouter_Counters. If the receiver or the field Level2 is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter_Counters) GetNeighborGrInitiated added in v0.10.1

func (t *IsisRouter_Counters) GetNeighborGrInitiated() uint64

GetNeighborGrInitiated retrieves the value of the leaf NeighborGrInitiated from the IsisRouter_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 NeighborGrInitiated is set, it can safely use t.GetNeighborGrInitiated() 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.NeighborGrInitiated == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters) GetNeighborGrSucceeded added in v0.10.1

func (t *IsisRouter_Counters) GetNeighborGrSucceeded() uint64

GetNeighborGrSucceeded retrieves the value of the leaf NeighborGrSucceeded from the IsisRouter_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 NeighborGrSucceeded is set, it can safely use t.GetNeighborGrSucceeded() 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.NeighborGrSucceeded == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters) GetOrCreateLevel1

func (t *IsisRouter_Counters) GetOrCreateLevel1() *IsisRouter_Counters_Level1

GetOrCreateLevel1 retrieves the value of the Level1 field or returns the existing field if it already exists.

func (*IsisRouter_Counters) GetOrCreateLevel2

func (t *IsisRouter_Counters) GetOrCreateLevel2() *IsisRouter_Counters_Level2

GetOrCreateLevel2 retrieves the value of the Level2 field or returns the existing field if it already exists.

func (*IsisRouter_Counters) IsYANGGoStruct

func (*IsisRouter_Counters) IsYANGGoStruct()

IsYANGGoStruct ensures that IsisRouter_Counters implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_Counters) PopulateDefaults

func (t *IsisRouter_Counters) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_Counters with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_Counters) SetGrInitiated added in v0.10.1

func (t *IsisRouter_Counters) SetGrInitiated(v uint64)

SetGrInitiated sets the value of the leaf GrInitiated in the IsisRouter_Counters struct.

func (*IsisRouter_Counters) SetGrSucceeded added in v0.10.1

func (t *IsisRouter_Counters) SetGrSucceeded(v uint64)

SetGrSucceeded sets the value of the leaf GrSucceeded in the IsisRouter_Counters struct.

func (*IsisRouter_Counters) SetNeighborGrInitiated added in v0.10.1

func (t *IsisRouter_Counters) SetNeighborGrInitiated(v uint64)

SetNeighborGrInitiated sets the value of the leaf NeighborGrInitiated in the IsisRouter_Counters struct.

func (*IsisRouter_Counters) SetNeighborGrSucceeded added in v0.10.1

func (t *IsisRouter_Counters) SetNeighborGrSucceeded(v uint64)

SetNeighborGrSucceeded sets the value of the leaf NeighborGrSucceeded in the IsisRouter_Counters struct.

func (*IsisRouter_Counters) Validate

func (t *IsisRouter_Counters) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_Counters) ΛBelongingModule

func (*IsisRouter_Counters) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_Counters.

func (*IsisRouter_Counters) ΛEnumTypeMap

func (t *IsisRouter_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 (*IsisRouter_Counters) ΛValidate

func (t *IsisRouter_Counters) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_Counters_Level1

type IsisRouter_Counters_Level1 struct {
	DatabaseSize   *uint64 `path:"database-size" module:"open-traffic-generator-isis"`
	InBcastHellos  *uint64 `path:"in-bcast-hellos" module:"open-traffic-generator-isis"`
	InCsnp         *uint64 `path:"in-csnp" module:"open-traffic-generator-isis"`
	InLsp          *uint64 `path:"in-lsp" module:"open-traffic-generator-isis"`
	InP2PHellos    *uint64 `path:"in-p2p-hellos" module:"open-traffic-generator-isis"`
	InPsnp         *uint64 `path:"in-psnp" module:"open-traffic-generator-isis"`
	OutBcastHellos *uint64 `path:"out-bcast-hellos" module:"open-traffic-generator-isis"`
	OutCsnp        *uint64 `path:"out-csnp" module:"open-traffic-generator-isis"`
	OutLsp         *uint64 `path:"out-lsp" module:"open-traffic-generator-isis"`
	OutP2PHellos   *uint64 `path:"out-p2p-hellos" module:"open-traffic-generator-isis"`
	OutPsnp        *uint64 `path:"out-psnp" module:"open-traffic-generator-isis"`
	SessionsFlap   *uint64 `path:"sessions-flap" module:"open-traffic-generator-isis"`
	SessionsUp     *uint64 `path:"sessions-up" module:"open-traffic-generator-isis"`
}

IsisRouter_Counters_Level1 represents the /open-traffic-generator-isis/isis-routers/isis-router/state/counters/level1 YANG schema element.

func (*IsisRouter_Counters_Level1) GetDatabaseSize

func (t *IsisRouter_Counters_Level1) GetDatabaseSize() uint64

GetDatabaseSize retrieves the value of the leaf DatabaseSize from the IsisRouter_Counters_Level1 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 DatabaseSize is set, it can safely use t.GetDatabaseSize() 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.DatabaseSize == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters_Level1) GetInBcastHellos

func (t *IsisRouter_Counters_Level1) GetInBcastHellos() uint64

GetInBcastHellos retrieves the value of the leaf InBcastHellos from the IsisRouter_Counters_Level1 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 InBcastHellos is set, it can safely use t.GetInBcastHellos() 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.InBcastHellos == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters_Level1) GetInCsnp

func (t *IsisRouter_Counters_Level1) GetInCsnp() uint64

GetInCsnp retrieves the value of the leaf InCsnp from the IsisRouter_Counters_Level1 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 InCsnp is set, it can safely use t.GetInCsnp() 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.InCsnp == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters_Level1) GetInLsp

func (t *IsisRouter_Counters_Level1) GetInLsp() uint64

GetInLsp retrieves the value of the leaf InLsp from the IsisRouter_Counters_Level1 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 InLsp is set, it can safely use t.GetInLsp() 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.InLsp == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters_Level1) GetInP2PHellos

func (t *IsisRouter_Counters_Level1) GetInP2PHellos() uint64

GetInP2PHellos retrieves the value of the leaf InP2PHellos from the IsisRouter_Counters_Level1 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 InP2PHellos is set, it can safely use t.GetInP2PHellos() 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.InP2PHellos == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters_Level1) GetInPsnp

func (t *IsisRouter_Counters_Level1) GetInPsnp() uint64

GetInPsnp retrieves the value of the leaf InPsnp from the IsisRouter_Counters_Level1 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 InPsnp is set, it can safely use t.GetInPsnp() 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.InPsnp == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters_Level1) GetOutBcastHellos

func (t *IsisRouter_Counters_Level1) GetOutBcastHellos() uint64

GetOutBcastHellos retrieves the value of the leaf OutBcastHellos from the IsisRouter_Counters_Level1 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 OutBcastHellos is set, it can safely use t.GetOutBcastHellos() 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.OutBcastHellos == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters_Level1) GetOutCsnp

func (t *IsisRouter_Counters_Level1) GetOutCsnp() uint64

GetOutCsnp retrieves the value of the leaf OutCsnp from the IsisRouter_Counters_Level1 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 OutCsnp is set, it can safely use t.GetOutCsnp() 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.OutCsnp == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters_Level1) GetOutLsp

func (t *IsisRouter_Counters_Level1) GetOutLsp() uint64

GetOutLsp retrieves the value of the leaf OutLsp from the IsisRouter_Counters_Level1 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 OutLsp is set, it can safely use t.GetOutLsp() 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.OutLsp == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters_Level1) GetOutP2PHellos

func (t *IsisRouter_Counters_Level1) GetOutP2PHellos() uint64

GetOutP2PHellos retrieves the value of the leaf OutP2PHellos from the IsisRouter_Counters_Level1 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 OutP2PHellos is set, it can safely use t.GetOutP2PHellos() 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.OutP2PHellos == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters_Level1) GetOutPsnp

func (t *IsisRouter_Counters_Level1) GetOutPsnp() uint64

GetOutPsnp retrieves the value of the leaf OutPsnp from the IsisRouter_Counters_Level1 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 OutPsnp is set, it can safely use t.GetOutPsnp() 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.OutPsnp == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters_Level1) GetSessionsFlap

func (t *IsisRouter_Counters_Level1) GetSessionsFlap() uint64

GetSessionsFlap retrieves the value of the leaf SessionsFlap from the IsisRouter_Counters_Level1 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 SessionsFlap is set, it can safely use t.GetSessionsFlap() 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.SessionsFlap == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters_Level1) GetSessionsUp

func (t *IsisRouter_Counters_Level1) GetSessionsUp() uint64

GetSessionsUp retrieves the value of the leaf SessionsUp from the IsisRouter_Counters_Level1 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 SessionsUp is set, it can safely use t.GetSessionsUp() 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.SessionsUp == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters_Level1) IsYANGGoStruct

func (*IsisRouter_Counters_Level1) IsYANGGoStruct()

IsYANGGoStruct ensures that IsisRouter_Counters_Level1 implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_Counters_Level1) PopulateDefaults

func (t *IsisRouter_Counters_Level1) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_Counters_Level1 with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_Counters_Level1) SetDatabaseSize

func (t *IsisRouter_Counters_Level1) SetDatabaseSize(v uint64)

SetDatabaseSize sets the value of the leaf DatabaseSize in the IsisRouter_Counters_Level1 struct.

func (*IsisRouter_Counters_Level1) SetInBcastHellos

func (t *IsisRouter_Counters_Level1) SetInBcastHellos(v uint64)

SetInBcastHellos sets the value of the leaf InBcastHellos in the IsisRouter_Counters_Level1 struct.

func (*IsisRouter_Counters_Level1) SetInCsnp

func (t *IsisRouter_Counters_Level1) SetInCsnp(v uint64)

SetInCsnp sets the value of the leaf InCsnp in the IsisRouter_Counters_Level1 struct.

func (*IsisRouter_Counters_Level1) SetInLsp

func (t *IsisRouter_Counters_Level1) SetInLsp(v uint64)

SetInLsp sets the value of the leaf InLsp in the IsisRouter_Counters_Level1 struct.

func (*IsisRouter_Counters_Level1) SetInP2PHellos

func (t *IsisRouter_Counters_Level1) SetInP2PHellos(v uint64)

SetInP2PHellos sets the value of the leaf InP2PHellos in the IsisRouter_Counters_Level1 struct.

func (*IsisRouter_Counters_Level1) SetInPsnp

func (t *IsisRouter_Counters_Level1) SetInPsnp(v uint64)

SetInPsnp sets the value of the leaf InPsnp in the IsisRouter_Counters_Level1 struct.

func (*IsisRouter_Counters_Level1) SetOutBcastHellos

func (t *IsisRouter_Counters_Level1) SetOutBcastHellos(v uint64)

SetOutBcastHellos sets the value of the leaf OutBcastHellos in the IsisRouter_Counters_Level1 struct.

func (*IsisRouter_Counters_Level1) SetOutCsnp

func (t *IsisRouter_Counters_Level1) SetOutCsnp(v uint64)

SetOutCsnp sets the value of the leaf OutCsnp in the IsisRouter_Counters_Level1 struct.

func (*IsisRouter_Counters_Level1) SetOutLsp

func (t *IsisRouter_Counters_Level1) SetOutLsp(v uint64)

SetOutLsp sets the value of the leaf OutLsp in the IsisRouter_Counters_Level1 struct.

func (*IsisRouter_Counters_Level1) SetOutP2PHellos

func (t *IsisRouter_Counters_Level1) SetOutP2PHellos(v uint64)

SetOutP2PHellos sets the value of the leaf OutP2PHellos in the IsisRouter_Counters_Level1 struct.

func (*IsisRouter_Counters_Level1) SetOutPsnp

func (t *IsisRouter_Counters_Level1) SetOutPsnp(v uint64)

SetOutPsnp sets the value of the leaf OutPsnp in the IsisRouter_Counters_Level1 struct.

func (*IsisRouter_Counters_Level1) SetSessionsFlap

func (t *IsisRouter_Counters_Level1) SetSessionsFlap(v uint64)

SetSessionsFlap sets the value of the leaf SessionsFlap in the IsisRouter_Counters_Level1 struct.

func (*IsisRouter_Counters_Level1) SetSessionsUp

func (t *IsisRouter_Counters_Level1) SetSessionsUp(v uint64)

SetSessionsUp sets the value of the leaf SessionsUp in the IsisRouter_Counters_Level1 struct.

func (*IsisRouter_Counters_Level1) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_Counters_Level1) ΛBelongingModule

func (*IsisRouter_Counters_Level1) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_Counters_Level1.

func (*IsisRouter_Counters_Level1) ΛEnumTypeMap

func (t *IsisRouter_Counters_Level1) Λ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 (*IsisRouter_Counters_Level1) ΛValidate

func (t *IsisRouter_Counters_Level1) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_Counters_Level2

type IsisRouter_Counters_Level2 struct {
	DatabaseSize   *uint64 `path:"database-size" module:"open-traffic-generator-isis"`
	InBcastHellos  *uint64 `path:"in-bcast-hellos" module:"open-traffic-generator-isis"`
	InCsnp         *uint64 `path:"in-csnp" module:"open-traffic-generator-isis"`
	InLsp          *uint64 `path:"in-lsp" module:"open-traffic-generator-isis"`
	InP2PHellos    *uint64 `path:"in-p2p-hellos" module:"open-traffic-generator-isis"`
	InPsnp         *uint64 `path:"in-psnp" module:"open-traffic-generator-isis"`
	OutBcastHellos *uint64 `path:"out-bcast-hellos" module:"open-traffic-generator-isis"`
	OutCsnp        *uint64 `path:"out-csnp" module:"open-traffic-generator-isis"`
	OutLsp         *uint64 `path:"out-lsp" module:"open-traffic-generator-isis"`
	OutP2PHellos   *uint64 `path:"out-p2p-hellos" module:"open-traffic-generator-isis"`
	OutPsnp        *uint64 `path:"out-psnp" module:"open-traffic-generator-isis"`
	SessionsFlap   *uint64 `path:"sessions-flap" module:"open-traffic-generator-isis"`
	SessionsUp     *uint64 `path:"sessions-up" module:"open-traffic-generator-isis"`
}

IsisRouter_Counters_Level2 represents the /open-traffic-generator-isis/isis-routers/isis-router/state/counters/level2 YANG schema element.

func (*IsisRouter_Counters_Level2) GetDatabaseSize

func (t *IsisRouter_Counters_Level2) GetDatabaseSize() uint64

GetDatabaseSize retrieves the value of the leaf DatabaseSize from the IsisRouter_Counters_Level2 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 DatabaseSize is set, it can safely use t.GetDatabaseSize() 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.DatabaseSize == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters_Level2) GetInBcastHellos

func (t *IsisRouter_Counters_Level2) GetInBcastHellos() uint64

GetInBcastHellos retrieves the value of the leaf InBcastHellos from the IsisRouter_Counters_Level2 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 InBcastHellos is set, it can safely use t.GetInBcastHellos() 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.InBcastHellos == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters_Level2) GetInCsnp

func (t *IsisRouter_Counters_Level2) GetInCsnp() uint64

GetInCsnp retrieves the value of the leaf InCsnp from the IsisRouter_Counters_Level2 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 InCsnp is set, it can safely use t.GetInCsnp() 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.InCsnp == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters_Level2) GetInLsp

func (t *IsisRouter_Counters_Level2) GetInLsp() uint64

GetInLsp retrieves the value of the leaf InLsp from the IsisRouter_Counters_Level2 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 InLsp is set, it can safely use t.GetInLsp() 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.InLsp == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters_Level2) GetInP2PHellos

func (t *IsisRouter_Counters_Level2) GetInP2PHellos() uint64

GetInP2PHellos retrieves the value of the leaf InP2PHellos from the IsisRouter_Counters_Level2 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 InP2PHellos is set, it can safely use t.GetInP2PHellos() 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.InP2PHellos == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters_Level2) GetInPsnp

func (t *IsisRouter_Counters_Level2) GetInPsnp() uint64

GetInPsnp retrieves the value of the leaf InPsnp from the IsisRouter_Counters_Level2 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 InPsnp is set, it can safely use t.GetInPsnp() 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.InPsnp == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters_Level2) GetOutBcastHellos

func (t *IsisRouter_Counters_Level2) GetOutBcastHellos() uint64

GetOutBcastHellos retrieves the value of the leaf OutBcastHellos from the IsisRouter_Counters_Level2 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 OutBcastHellos is set, it can safely use t.GetOutBcastHellos() 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.OutBcastHellos == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters_Level2) GetOutCsnp

func (t *IsisRouter_Counters_Level2) GetOutCsnp() uint64

GetOutCsnp retrieves the value of the leaf OutCsnp from the IsisRouter_Counters_Level2 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 OutCsnp is set, it can safely use t.GetOutCsnp() 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.OutCsnp == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters_Level2) GetOutLsp

func (t *IsisRouter_Counters_Level2) GetOutLsp() uint64

GetOutLsp retrieves the value of the leaf OutLsp from the IsisRouter_Counters_Level2 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 OutLsp is set, it can safely use t.GetOutLsp() 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.OutLsp == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters_Level2) GetOutP2PHellos

func (t *IsisRouter_Counters_Level2) GetOutP2PHellos() uint64

GetOutP2PHellos retrieves the value of the leaf OutP2PHellos from the IsisRouter_Counters_Level2 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 OutP2PHellos is set, it can safely use t.GetOutP2PHellos() 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.OutP2PHellos == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters_Level2) GetOutPsnp

func (t *IsisRouter_Counters_Level2) GetOutPsnp() uint64

GetOutPsnp retrieves the value of the leaf OutPsnp from the IsisRouter_Counters_Level2 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 OutPsnp is set, it can safely use t.GetOutPsnp() 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.OutPsnp == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters_Level2) GetSessionsFlap

func (t *IsisRouter_Counters_Level2) GetSessionsFlap() uint64

GetSessionsFlap retrieves the value of the leaf SessionsFlap from the IsisRouter_Counters_Level2 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 SessionsFlap is set, it can safely use t.GetSessionsFlap() 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.SessionsFlap == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters_Level2) GetSessionsUp

func (t *IsisRouter_Counters_Level2) GetSessionsUp() uint64

GetSessionsUp retrieves the value of the leaf SessionsUp from the IsisRouter_Counters_Level2 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 SessionsUp is set, it can safely use t.GetSessionsUp() 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.SessionsUp == nil' before retrieving the leaf's value.

func (*IsisRouter_Counters_Level2) IsYANGGoStruct

func (*IsisRouter_Counters_Level2) IsYANGGoStruct()

IsYANGGoStruct ensures that IsisRouter_Counters_Level2 implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_Counters_Level2) PopulateDefaults

func (t *IsisRouter_Counters_Level2) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_Counters_Level2 with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_Counters_Level2) SetDatabaseSize

func (t *IsisRouter_Counters_Level2) SetDatabaseSize(v uint64)

SetDatabaseSize sets the value of the leaf DatabaseSize in the IsisRouter_Counters_Level2 struct.

func (*IsisRouter_Counters_Level2) SetInBcastHellos

func (t *IsisRouter_Counters_Level2) SetInBcastHellos(v uint64)

SetInBcastHellos sets the value of the leaf InBcastHellos in the IsisRouter_Counters_Level2 struct.

func (*IsisRouter_Counters_Level2) SetInCsnp

func (t *IsisRouter_Counters_Level2) SetInCsnp(v uint64)

SetInCsnp sets the value of the leaf InCsnp in the IsisRouter_Counters_Level2 struct.

func (*IsisRouter_Counters_Level2) SetInLsp

func (t *IsisRouter_Counters_Level2) SetInLsp(v uint64)

SetInLsp sets the value of the leaf InLsp in the IsisRouter_Counters_Level2 struct.

func (*IsisRouter_Counters_Level2) SetInP2PHellos

func (t *IsisRouter_Counters_Level2) SetInP2PHellos(v uint64)

SetInP2PHellos sets the value of the leaf InP2PHellos in the IsisRouter_Counters_Level2 struct.

func (*IsisRouter_Counters_Level2) SetInPsnp

func (t *IsisRouter_Counters_Level2) SetInPsnp(v uint64)

SetInPsnp sets the value of the leaf InPsnp in the IsisRouter_Counters_Level2 struct.

func (*IsisRouter_Counters_Level2) SetOutBcastHellos

func (t *IsisRouter_Counters_Level2) SetOutBcastHellos(v uint64)

SetOutBcastHellos sets the value of the leaf OutBcastHellos in the IsisRouter_Counters_Level2 struct.

func (*IsisRouter_Counters_Level2) SetOutCsnp

func (t *IsisRouter_Counters_Level2) SetOutCsnp(v uint64)

SetOutCsnp sets the value of the leaf OutCsnp in the IsisRouter_Counters_Level2 struct.

func (*IsisRouter_Counters_Level2) SetOutLsp

func (t *IsisRouter_Counters_Level2) SetOutLsp(v uint64)

SetOutLsp sets the value of the leaf OutLsp in the IsisRouter_Counters_Level2 struct.

func (*IsisRouter_Counters_Level2) SetOutP2PHellos

func (t *IsisRouter_Counters_Level2) SetOutP2PHellos(v uint64)

SetOutP2PHellos sets the value of the leaf OutP2PHellos in the IsisRouter_Counters_Level2 struct.

func (*IsisRouter_Counters_Level2) SetOutPsnp

func (t *IsisRouter_Counters_Level2) SetOutPsnp(v uint64)

SetOutPsnp sets the value of the leaf OutPsnp in the IsisRouter_Counters_Level2 struct.

func (*IsisRouter_Counters_Level2) SetSessionsFlap

func (t *IsisRouter_Counters_Level2) SetSessionsFlap(v uint64)

SetSessionsFlap sets the value of the leaf SessionsFlap in the IsisRouter_Counters_Level2 struct.

func (*IsisRouter_Counters_Level2) SetSessionsUp

func (t *IsisRouter_Counters_Level2) SetSessionsUp(v uint64)

SetSessionsUp sets the value of the leaf SessionsUp in the IsisRouter_Counters_Level2 struct.

func (*IsisRouter_Counters_Level2) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_Counters_Level2) ΛBelongingModule

func (*IsisRouter_Counters_Level2) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_Counters_Level2.

func (*IsisRouter_Counters_Level2) ΛEnumTypeMap

func (t *IsisRouter_Counters_Level2) Λ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 (*IsisRouter_Counters_Level2) ΛValidate

func (t *IsisRouter_Counters_Level2) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_LinkStateDatabase

type IsisRouter_LinkStateDatabase struct {
	Lsps map[IsisRouter_LinkStateDatabase_Lsps_Key]*IsisRouter_LinkStateDatabase_Lsps `path:"lsp-states/lsps" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_LinkStateDatabase represents the /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database YANG schema element.

func (*IsisRouter_LinkStateDatabase) AppendLsps

AppendLsps appends the supplied IsisRouter_LinkStateDatabase_Lsps struct to the list Lsps of IsisRouter_LinkStateDatabase. If the key value(s) specified in the supplied IsisRouter_LinkStateDatabase_Lsps already exist in the list, an error is returned.

func (*IsisRouter_LinkStateDatabase) DeleteLsps

func (t *IsisRouter_LinkStateDatabase) DeleteLsps(LspId string, PduType E_Lsps_PduType)

DeleteLsps deletes the value with the specified keys from the receiver IsisRouter_LinkStateDatabase. If there is no such element, the function is a no-op.

func (*IsisRouter_LinkStateDatabase) GetLsps

GetLsps retrieves the value with the specified key from the Lsps map field of IsisRouter_LinkStateDatabase. 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 (*IsisRouter_LinkStateDatabase) GetOrCreateLsps

GetOrCreateLsps retrieves the value with the specified keys from the receiver IsisRouter_LinkStateDatabase. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*IsisRouter_LinkStateDatabase) GetOrCreateLspsMap added in v0.7.1

GetOrCreateLspsMap returns the list (map) from IsisRouter_LinkStateDatabase.

It initializes the field if not already initialized.

func (*IsisRouter_LinkStateDatabase) IsYANGGoStruct

func (*IsisRouter_LinkStateDatabase) IsYANGGoStruct()

IsYANGGoStruct ensures that IsisRouter_LinkStateDatabase implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_LinkStateDatabase) NewLsps

NewLsps creates a new entry in the Lsps list of the IsisRouter_LinkStateDatabase struct. The keys of the list are populated from the input arguments.

func (*IsisRouter_LinkStateDatabase) PopulateDefaults

func (t *IsisRouter_LinkStateDatabase) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_LinkStateDatabase with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_LinkStateDatabase) RenameLsps added in v0.4.3

RenameLsps renames an entry in the list Lsps within the IsisRouter_LinkStateDatabase struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*IsisRouter_LinkStateDatabase) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_LinkStateDatabase) ΛBelongingModule

func (*IsisRouter_LinkStateDatabase) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_LinkStateDatabase.

func (*IsisRouter_LinkStateDatabase) ΛEnumTypeMap

func (t *IsisRouter_LinkStateDatabase) Λ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 (*IsisRouter_LinkStateDatabase) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_LinkStateDatabase_Lsps

type IsisRouter_LinkStateDatabase_Lsps struct {
	Flags             []E_Lsps_Flags                          `path:"state/flags" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	IsType            *uint8                                  `path:"state/is-type" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	LspId             *string                                 `` /* 184-byte string literal not displayed */
	PduLength         *uint16                                 `path:"state/pdu-length" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	PduType           E_Lsps_PduType                          `` /* 190-byte string literal not displayed */
	RemainingLifetime *uint16                                 `path:"state/remaining-lifetime" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	SequenceNumber    *uint32                                 `path:"state/sequence-number" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	Tlvs              *IsisRouter_LinkStateDatabase_Lsps_Tlvs `path:"tlvs" module:"open-traffic-generator-isis"`
}

IsisRouter_LinkStateDatabase_Lsps represents the /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database/lsp-states/lsps YANG schema element.

func (*IsisRouter_LinkStateDatabase_Lsps) GetFlags

GetFlags retrieves the value of the leaf Flags from the IsisRouter_LinkStateDatabase_Lsps 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 Flags is set, it can safely use t.GetFlags() 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.Flags == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps) GetIsType

GetIsType retrieves the value of the leaf IsType from the IsisRouter_LinkStateDatabase_Lsps 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 IsType is set, it can safely use t.GetIsType() 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.IsType == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps) GetLspId

GetLspId retrieves the value of the leaf LspId from the IsisRouter_LinkStateDatabase_Lsps 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 LspId is set, it can safely use t.GetLspId() 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.LspId == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps) GetOrCreateTlvs

GetOrCreateTlvs retrieves the value of the Tlvs field or returns the existing field if it already exists.

func (*IsisRouter_LinkStateDatabase_Lsps) GetPduLength

func (t *IsisRouter_LinkStateDatabase_Lsps) GetPduLength() uint16

GetPduLength retrieves the value of the leaf PduLength from the IsisRouter_LinkStateDatabase_Lsps 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 PduLength is set, it can safely use t.GetPduLength() 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.PduLength == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps) GetPduType

GetPduType retrieves the value of the leaf PduType from the IsisRouter_LinkStateDatabase_Lsps 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 PduType is set, it can safely use t.GetPduType() 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.PduType == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps) GetRemainingLifetime

func (t *IsisRouter_LinkStateDatabase_Lsps) GetRemainingLifetime() uint16

GetRemainingLifetime retrieves the value of the leaf RemainingLifetime from the IsisRouter_LinkStateDatabase_Lsps 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 RemainingLifetime is set, it can safely use t.GetRemainingLifetime() 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.RemainingLifetime == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps) GetSequenceNumber

func (t *IsisRouter_LinkStateDatabase_Lsps) GetSequenceNumber() uint32

GetSequenceNumber retrieves the value of the leaf SequenceNumber from the IsisRouter_LinkStateDatabase_Lsps 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 SequenceNumber is set, it can safely use t.GetSequenceNumber() 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.SequenceNumber == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps) GetTlvs

GetTlvs returns the value of the Tlvs struct pointer from IsisRouter_LinkStateDatabase_Lsps. If the receiver or the field Tlvs is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter_LinkStateDatabase_Lsps) IsYANGGoStruct

func (*IsisRouter_LinkStateDatabase_Lsps) IsYANGGoStruct()

IsYANGGoStruct ensures that IsisRouter_LinkStateDatabase_Lsps implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_LinkStateDatabase_Lsps) PopulateDefaults

func (t *IsisRouter_LinkStateDatabase_Lsps) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_LinkStateDatabase_Lsps with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_LinkStateDatabase_Lsps) SetFlags

SetFlags sets the value of the leaf Flags in the IsisRouter_LinkStateDatabase_Lsps struct.

func (*IsisRouter_LinkStateDatabase_Lsps) SetIsType

func (t *IsisRouter_LinkStateDatabase_Lsps) SetIsType(v uint8)

SetIsType sets the value of the leaf IsType in the IsisRouter_LinkStateDatabase_Lsps struct.

func (*IsisRouter_LinkStateDatabase_Lsps) SetLspId

SetLspId sets the value of the leaf LspId in the IsisRouter_LinkStateDatabase_Lsps struct.

func (*IsisRouter_LinkStateDatabase_Lsps) SetPduLength

func (t *IsisRouter_LinkStateDatabase_Lsps) SetPduLength(v uint16)

SetPduLength sets the value of the leaf PduLength in the IsisRouter_LinkStateDatabase_Lsps struct.

func (*IsisRouter_LinkStateDatabase_Lsps) SetPduType

SetPduType sets the value of the leaf PduType in the IsisRouter_LinkStateDatabase_Lsps struct.

func (*IsisRouter_LinkStateDatabase_Lsps) SetRemainingLifetime

func (t *IsisRouter_LinkStateDatabase_Lsps) SetRemainingLifetime(v uint16)

SetRemainingLifetime sets the value of the leaf RemainingLifetime in the IsisRouter_LinkStateDatabase_Lsps struct.

func (*IsisRouter_LinkStateDatabase_Lsps) SetSequenceNumber

func (t *IsisRouter_LinkStateDatabase_Lsps) SetSequenceNumber(v uint32)

SetSequenceNumber sets the value of the leaf SequenceNumber in the IsisRouter_LinkStateDatabase_Lsps struct.

func (*IsisRouter_LinkStateDatabase_Lsps) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_LinkStateDatabase_Lsps) ΛBelongingModule

func (*IsisRouter_LinkStateDatabase_Lsps) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_LinkStateDatabase_Lsps.

func (*IsisRouter_LinkStateDatabase_Lsps) ΛEnumTypeMap

func (t *IsisRouter_LinkStateDatabase_Lsps) Λ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 (*IsisRouter_LinkStateDatabase_Lsps) ΛListKeyMap

func (t *IsisRouter_LinkStateDatabase_Lsps) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the IsisRouter_LinkStateDatabase_Lsps struct, which is a YANG list entry.

func (*IsisRouter_LinkStateDatabase_Lsps) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_LinkStateDatabase_Lsps_Key

type IsisRouter_LinkStateDatabase_Lsps_Key struct {
	LspId   string         `path:"lsp-id"`
	PduType E_Lsps_PduType `path:"pdu-type"`
}

IsisRouter_LinkStateDatabase_Lsps_Key represents the key for list Lsps of element /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database.

func (IsisRouter_LinkStateDatabase_Lsps_Key) IsYANGGoKeyStruct

func (IsisRouter_LinkStateDatabase_Lsps_Key) IsYANGGoKeyStruct()

IsYANGGoKeyStruct ensures that IsisRouter_LinkStateDatabase_Lsps_Key partially implements the yang.GoKeyStruct interface. This allows functions that need to handle this key struct to identify it as being generated by gogen.

func (IsisRouter_LinkStateDatabase_Lsps_Key) ΛListKeyMap

func (t IsisRouter_LinkStateDatabase_Lsps_Key) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the values of the IsisRouter_LinkStateDatabase_Lsps_Key key struct.

type IsisRouter_LinkStateDatabase_Lsps_Tlvs

type IsisRouter_LinkStateDatabase_Lsps_Tlvs struct {
	Capability               map[uint32]*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability    `path:"router-capabilities/capability" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	ExtendedIpv4Reachability *IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability `path:"extended-ipv4-reachability" module:"open-traffic-generator-isis"`
	ExtendedIsReachability   *IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability   `path:"extended-is-reachability" module:"open-traffic-generator-isis"`
	Hostnames                *IsisRouter_LinkStateDatabase_Lsps_Tlvs_Hostnames                `path:"hostnames" module:"open-traffic-generator-isis"`
	Ipv4ExternalReachability *IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability `path:"ipv4-external-reachability" module:"open-traffic-generator-isis"`
	Ipv4InternalReachability *IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability `path:"ipv4-internal-reachability" module:"open-traffic-generator-isis"`
	Ipv6Reachability         *IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability         `path:"ipv6-reachability" module:"open-traffic-generator-isis"`
	IsReachability           *IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability           `path:"is-reachability" module:"open-traffic-generator-isis"`
}

IsisRouter_LinkStateDatabase_Lsps_Tlvs represents the /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database/lsp-states/lsps/tlvs YANG schema element.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) AppendCapability added in v0.8.0

AppendCapability appends the supplied IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability struct to the list Capability of IsisRouter_LinkStateDatabase_Lsps_Tlvs. If the key value(s) specified in the supplied IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability already exist in the list, an error is returned.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) DeleteCapability added in v0.8.0

func (t *IsisRouter_LinkStateDatabase_Lsps_Tlvs) DeleteCapability(InstanceNumber uint32)

DeleteCapability deletes the value with the specified keys from the receiver IsisRouter_LinkStateDatabase_Lsps_Tlvs. If there is no such element, the function is a no-op.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) GetCapability added in v0.8.0

GetCapability retrieves the value with the specified key from the Capability map field of IsisRouter_LinkStateDatabase_Lsps_Tlvs. 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 (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) GetExtendedIpv4Reachability

GetExtendedIpv4Reachability returns the value of the ExtendedIpv4Reachability struct pointer from IsisRouter_LinkStateDatabase_Lsps_Tlvs. If the receiver or the field ExtendedIpv4Reachability is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) GetExtendedIsReachability

GetExtendedIsReachability returns the value of the ExtendedIsReachability struct pointer from IsisRouter_LinkStateDatabase_Lsps_Tlvs. If the receiver or the field ExtendedIsReachability is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) GetHostnames

GetHostnames returns the value of the Hostnames struct pointer from IsisRouter_LinkStateDatabase_Lsps_Tlvs. If the receiver or the field Hostnames is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) GetIpv4ExternalReachability

GetIpv4ExternalReachability returns the value of the Ipv4ExternalReachability struct pointer from IsisRouter_LinkStateDatabase_Lsps_Tlvs. If the receiver or the field Ipv4ExternalReachability is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) GetIpv4InternalReachability

GetIpv4InternalReachability returns the value of the Ipv4InternalReachability struct pointer from IsisRouter_LinkStateDatabase_Lsps_Tlvs. If the receiver or the field Ipv4InternalReachability is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) GetIpv6Reachability

GetIpv6Reachability returns the value of the Ipv6Reachability struct pointer from IsisRouter_LinkStateDatabase_Lsps_Tlvs. If the receiver or the field Ipv6Reachability is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) GetIsReachability

GetIsReachability returns the value of the IsReachability struct pointer from IsisRouter_LinkStateDatabase_Lsps_Tlvs. If the receiver or the field IsReachability is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) GetOrCreateCapability added in v0.8.0

GetOrCreateCapability retrieves the value with the specified keys from the receiver IsisRouter_LinkStateDatabase_Lsps_Tlvs. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) GetOrCreateCapabilityMap added in v0.8.0

GetOrCreateCapabilityMap returns the list (map) from IsisRouter_LinkStateDatabase_Lsps_Tlvs.

It initializes the field if not already initialized.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) GetOrCreateExtendedIpv4Reachability

GetOrCreateExtendedIpv4Reachability retrieves the value of the ExtendedIpv4Reachability field or returns the existing field if it already exists.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) GetOrCreateExtendedIsReachability

GetOrCreateExtendedIsReachability retrieves the value of the ExtendedIsReachability field or returns the existing field if it already exists.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) GetOrCreateHostnames

GetOrCreateHostnames retrieves the value of the Hostnames field or returns the existing field if it already exists.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) GetOrCreateIpv4ExternalReachability

GetOrCreateIpv4ExternalReachability retrieves the value of the Ipv4ExternalReachability field or returns the existing field if it already exists.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) GetOrCreateIpv4InternalReachability

GetOrCreateIpv4InternalReachability retrieves the value of the Ipv4InternalReachability field or returns the existing field if it already exists.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) GetOrCreateIpv6Reachability

GetOrCreateIpv6Reachability retrieves the value of the Ipv6Reachability field or returns the existing field if it already exists.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) GetOrCreateIsReachability

GetOrCreateIsReachability retrieves the value of the IsReachability field or returns the existing field if it already exists.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) IsYANGGoStruct

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) IsYANGGoStruct()

IsYANGGoStruct ensures that IsisRouter_LinkStateDatabase_Lsps_Tlvs implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) NewCapability added in v0.8.0

NewCapability creates a new entry in the Capability list of the IsisRouter_LinkStateDatabase_Lsps_Tlvs struct. The keys of the list are populated from the input arguments.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) PopulateDefaults

func (t *IsisRouter_LinkStateDatabase_Lsps_Tlvs) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_LinkStateDatabase_Lsps_Tlvs with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) RenameCapability added in v0.8.0

func (t *IsisRouter_LinkStateDatabase_Lsps_Tlvs) RenameCapability(oldK, newK uint32) error

RenameCapability renames an entry in the list Capability within the IsisRouter_LinkStateDatabase_Lsps_Tlvs struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) ΛBelongingModule

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_LinkStateDatabase_Lsps_Tlvs.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) ΛEnumTypeMap

func (t *IsisRouter_LinkStateDatabase_Lsps_Tlvs) Λ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 (*IsisRouter_LinkStateDatabase_Lsps_Tlvs) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability added in v0.8.0

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability struct {
	Algorithms               []uint32                                                                    `path:"state/algorithms" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	Flags                    []E_Capability_Flags                                                        `path:"state/flags" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	InstanceNumber           *uint32                                                                     `` /* 211-byte string literal not displayed */
	RouterId                 *string                                                                     `path:"state/router-id" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	SegmentRoutingCapability *IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability `path:"state/segment-routing-capability" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	SrLocalBlockRanges       *IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges       `path:"state/sr-local-block-ranges" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability represents the /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database/lsp-states/lsps/tlvs/router-capabilities/capability YANG schema element.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability) GetAlgorithms added in v0.8.0

GetAlgorithms retrieves the value of the leaf Algorithms from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability 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 Algorithms is set, it can safely use t.GetAlgorithms() 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.Algorithms == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability) GetFlags added in v0.8.0

GetFlags retrieves the value of the leaf Flags from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability 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 Flags is set, it can safely use t.GetFlags() 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.Flags == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability) GetInstanceNumber added in v0.8.0

GetInstanceNumber retrieves the value of the leaf InstanceNumber from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability 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 InstanceNumber is set, it can safely use t.GetInstanceNumber() 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.InstanceNumber == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability) GetOrCreateSegmentRoutingCapability added in v0.8.0

GetOrCreateSegmentRoutingCapability retrieves the value of the SegmentRoutingCapability field or returns the existing field if it already exists.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability) GetOrCreateSrLocalBlockRanges added in v0.8.0

GetOrCreateSrLocalBlockRanges retrieves the value of the SrLocalBlockRanges field or returns the existing field if it already exists.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability) GetRouterId added in v0.8.0

GetRouterId retrieves the value of the leaf RouterId from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability 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 RouterId is set, it can safely use t.GetRouterId() 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.RouterId == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability) GetSegmentRoutingCapability added in v0.8.0

GetSegmentRoutingCapability returns the value of the SegmentRoutingCapability struct pointer from IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability. If the receiver or the field SegmentRoutingCapability is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability) GetSrLocalBlockRanges added in v0.8.0

GetSrLocalBlockRanges returns the value of the SrLocalBlockRanges struct pointer from IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability. If the receiver or the field SrLocalBlockRanges is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability) IsYANGGoStruct added in v0.8.0

IsYANGGoStruct ensures that IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability) PopulateDefaults added in v0.8.0

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability) SetAlgorithms added in v0.8.0

SetAlgorithms sets the value of the leaf Algorithms in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability) SetFlags added in v0.8.0

SetFlags sets the value of the leaf Flags in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability) SetInstanceNumber added in v0.8.0

SetInstanceNumber sets the value of the leaf InstanceNumber in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability) SetRouterId added in v0.8.0

SetRouterId sets the value of the leaf RouterId in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability) Validate added in v0.8.0

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability) ΛBelongingModule added in v0.8.0

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability) ΛEnumTypeMap added in v0.8.0

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability) ΛListKeyMap added in v0.8.0

func (t *IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability struct, which is a YANG list entry.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability) ΛValidate added in v0.8.0

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability added in v0.8.0

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability struct {
	Flags          []E_SegmentRoutingCapability_Flags                                                                    `path:"state/flags" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	SrgbDescriptor map[uint32]*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability_SrgbDescriptor `path:"state/srgb-descriptor" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability represents the /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database/lsp-states/lsps/tlvs/router-capabilities/capability/state/segment-routing-capability YANG schema element.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability) AppendSrgbDescriptor added in v0.8.0

AppendSrgbDescriptor appends the supplied IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability_SrgbDescriptor struct to the list SrgbDescriptor of IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability. If the key value(s) specified in the supplied IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability_SrgbDescriptor already exist in the list, an error is returned.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability) DeleteSrgbDescriptor added in v0.8.0

DeleteSrgbDescriptor deletes the value with the specified keys from the receiver IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability. If there is no such element, the function is a no-op.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability) GetFlags added in v0.8.0

GetFlags retrieves the value of the leaf Flags from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability 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 Flags is set, it can safely use t.GetFlags() 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.Flags == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability) GetOrCreateSrgbDescriptor added in v0.8.0

GetOrCreateSrgbDescriptor retrieves the value with the specified keys from the receiver IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability) GetOrCreateSrgbDescriptorMap added in v0.8.0

GetOrCreateSrgbDescriptorMap returns the list (map) from IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability.

It initializes the field if not already initialized.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability) GetSrgbDescriptor added in v0.8.0

GetSrgbDescriptor retrieves the value with the specified key from the SrgbDescriptor map field of IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability. 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 (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability) IsYANGGoStruct added in v0.8.0

IsYANGGoStruct ensures that IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability) NewSrgbDescriptor added in v0.8.0

NewSrgbDescriptor creates a new entry in the SrgbDescriptor list of the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability struct. The keys of the list are populated from the input arguments.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability) PopulateDefaults added in v0.8.0

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability) RenameSrgbDescriptor added in v0.8.0

RenameSrgbDescriptor renames an entry in the list SrgbDescriptor within the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability) SetFlags added in v0.8.0

SetFlags sets the value of the leaf Flags in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability) Validate added in v0.8.0

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability) ΛBelongingModule added in v0.8.0

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability) ΛEnumTypeMap added in v0.8.0

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability) ΛValidate added in v0.8.0

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability_SrgbDescriptor added in v0.8.0

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability_SrgbDescriptor struct {
	Range         *uint32 `` /* 181-byte string literal not displayed */
	StartingLevel *uint32 `path:"state/starting-level" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability_SrgbDescriptor represents the /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database/lsp-states/lsps/tlvs/router-capabilities/capability/state/segment-routing-capability/state/srgb-descriptor YANG schema element.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability_SrgbDescriptor) GetRange added in v0.8.0

GetRange retrieves the value of the leaf Range from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability_SrgbDescriptor 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 Range is set, it can safely use t.GetRange() 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.Range == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability_SrgbDescriptor) GetStartingLevel added in v0.8.0

GetStartingLevel retrieves the value of the leaf StartingLevel from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability_SrgbDescriptor 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 StartingLevel is set, it can safely use t.GetStartingLevel() 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.StartingLevel == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability_SrgbDescriptor) IsYANGGoStruct added in v0.8.0

IsYANGGoStruct ensures that IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability_SrgbDescriptor implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability_SrgbDescriptor) PopulateDefaults added in v0.8.0

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability_SrgbDescriptor with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability_SrgbDescriptor) SetRange added in v0.8.0

SetRange sets the value of the leaf Range in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability_SrgbDescriptor struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability_SrgbDescriptor) SetStartingLevel added in v0.8.0

SetStartingLevel sets the value of the leaf StartingLevel in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability_SrgbDescriptor struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability_SrgbDescriptor) Validate added in v0.8.0

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability_SrgbDescriptor) ΛBelongingModule added in v0.8.0

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability_SrgbDescriptor.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability_SrgbDescriptor) ΛEnumTypeMap added in v0.8.0

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability_SrgbDescriptor) ΛListKeyMap added in v0.8.0

ΛListKeyMap returns the keys of the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability_SrgbDescriptor struct, which is a YANG list entry.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SegmentRoutingCapability_SrgbDescriptor) ΛValidate added in v0.8.0

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges added in v0.8.0

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges struct {
	SrlbsDescriptor map[uint32]*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges_SrlbsDescriptor `path:"state/srlbs-descriptor" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges represents the /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database/lsp-states/lsps/tlvs/router-capabilities/capability/state/sr-local-block-ranges YANG schema element.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges) AppendSrlbsDescriptor added in v0.8.0

AppendSrlbsDescriptor appends the supplied IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges_SrlbsDescriptor struct to the list SrlbsDescriptor of IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges. If the key value(s) specified in the supplied IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges_SrlbsDescriptor already exist in the list, an error is returned.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges) DeleteSrlbsDescriptor added in v0.8.0

DeleteSrlbsDescriptor deletes the value with the specified keys from the receiver IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges. If there is no such element, the function is a no-op.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges) GetOrCreateSrlbsDescriptor added in v0.8.0

GetOrCreateSrlbsDescriptor retrieves the value with the specified keys from the receiver IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges) GetOrCreateSrlbsDescriptorMap added in v0.8.0

GetOrCreateSrlbsDescriptorMap returns the list (map) from IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges.

It initializes the field if not already initialized.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges) GetSrlbsDescriptor added in v0.8.0

GetSrlbsDescriptor retrieves the value with the specified key from the SrlbsDescriptor map field of IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges. 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 (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges) IsYANGGoStruct added in v0.8.0

IsYANGGoStruct ensures that IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges) NewSrlbsDescriptor added in v0.8.0

NewSrlbsDescriptor creates a new entry in the SrlbsDescriptor list of the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges struct. The keys of the list are populated from the input arguments.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges) PopulateDefaults added in v0.8.0

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges) RenameSrlbsDescriptor added in v0.8.0

RenameSrlbsDescriptor renames an entry in the list SrlbsDescriptor within the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges) Validate added in v0.8.0

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges) ΛBelongingModule added in v0.8.0

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges) ΛEnumTypeMap added in v0.8.0

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges) ΛValidate added in v0.8.0

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges_SrlbsDescriptor added in v0.8.0

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges_SrlbsDescriptor struct {
	Range         *uint32 `` /* 181-byte string literal not displayed */
	StartingLevel *uint32 `path:"state/starting-level" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges_SrlbsDescriptor represents the /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database/lsp-states/lsps/tlvs/router-capabilities/capability/state/sr-local-block-ranges/state/srlbs-descriptor YANG schema element.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges_SrlbsDescriptor) GetRange added in v0.8.0

GetRange retrieves the value of the leaf Range from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges_SrlbsDescriptor 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 Range is set, it can safely use t.GetRange() 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.Range == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges_SrlbsDescriptor) GetStartingLevel added in v0.8.0

GetStartingLevel retrieves the value of the leaf StartingLevel from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges_SrlbsDescriptor 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 StartingLevel is set, it can safely use t.GetStartingLevel() 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.StartingLevel == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges_SrlbsDescriptor) IsYANGGoStruct added in v0.8.0

IsYANGGoStruct ensures that IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges_SrlbsDescriptor implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges_SrlbsDescriptor) PopulateDefaults added in v0.8.0

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges_SrlbsDescriptor with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges_SrlbsDescriptor) SetRange added in v0.8.0

SetRange sets the value of the leaf Range in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges_SrlbsDescriptor struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges_SrlbsDescriptor) SetStartingLevel added in v0.8.0

SetStartingLevel sets the value of the leaf StartingLevel in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges_SrlbsDescriptor struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges_SrlbsDescriptor) Validate added in v0.8.0

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges_SrlbsDescriptor) ΛBelongingModule added in v0.8.0

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges_SrlbsDescriptor.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges_SrlbsDescriptor) ΛEnumTypeMap added in v0.8.0

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges_SrlbsDescriptor) ΛListKeyMap added in v0.8.0

ΛListKeyMap returns the keys of the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges_SrlbsDescriptor struct, which is a YANG list entry.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Capability_SrLocalBlockRanges_SrlbsDescriptor) ΛValidate added in v0.8.0

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability struct {
	Prefix map[string]*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix `path:"prefixes/prefix" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability represents the /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database/lsp-states/lsps/tlvs/extended-ipv4-reachability YANG schema element.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability) AppendPrefix

AppendPrefix appends the supplied IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix struct to the list Prefix of IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability. If the key value(s) specified in the supplied IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix already exist in the list, an error is returned.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability) DeletePrefix

DeletePrefix deletes the value with the specified keys from the receiver IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability. If there is no such element, the function is a no-op.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability) GetOrCreatePrefix

GetOrCreatePrefix retrieves the value with the specified keys from the receiver IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability) GetOrCreatePrefixMap added in v0.7.1

GetOrCreatePrefixMap returns the list (map) from IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability.

It initializes the field if not already initialized.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability) GetPrefix

GetPrefix retrieves the value with the specified key from the Prefix map field of IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability. 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 (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability) IsYANGGoStruct

IsYANGGoStruct ensures that IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability) NewPrefix

NewPrefix creates a new entry in the Prefix list of the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability struct. The keys of the list are populated from the input arguments.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability) RenamePrefix added in v0.4.3

RenamePrefix renames an entry in the list Prefix within the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability) ΛBelongingModule

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability) ΛEnumTypeMap

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix struct {
	Metric             *uint32                                                                                      `path:"state/metric" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	Prefix             *string                                                                                      `` /* 184-byte string literal not displayed */
	PrefixAttributes   *IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixAttributes     `path:"state/prefix-attributes" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	PrefixLength       *uint32                                                                                      `path:"state/prefix-length" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	PrefixSid          map[uint32]*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid `path:"state/prefix-sid" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	RedistributionType E_ExtendedIpv4Reachability_Prefix_RedistributionType                                         `path:"state/redistribution-type" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix represents the /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database/lsp-states/lsps/tlvs/extended-ipv4-reachability/prefixes/prefix YANG schema element.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix) AppendPrefixSid added in v0.8.0

AppendPrefixSid appends the supplied IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid struct to the list PrefixSid of IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix. If the key value(s) specified in the supplied IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid already exist in the list, an error is returned.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix) DeletePrefixSid added in v0.8.0

DeletePrefixSid deletes the value with the specified keys from the receiver IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix. If there is no such element, the function is a no-op.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix) GetMetric

GetMetric retrieves the value of the leaf Metric from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix 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 Metric is set, it can safely use t.GetMetric() 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.Metric == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix) GetOrCreatePrefixAttributes

GetOrCreatePrefixAttributes retrieves the value of the PrefixAttributes field or returns the existing field if it already exists.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix) GetOrCreatePrefixSid added in v0.8.0

GetOrCreatePrefixSid retrieves the value with the specified keys from the receiver IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix) GetOrCreatePrefixSidMap added in v0.8.0

GetOrCreatePrefixSidMap returns the list (map) from IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix.

It initializes the field if not already initialized.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix) GetPrefix

GetPrefix retrieves the value of the leaf Prefix from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix 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 (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix) GetPrefixAttributes

GetPrefixAttributes returns the value of the PrefixAttributes struct pointer from IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix. If the receiver or the field PrefixAttributes is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix) GetPrefixLength

GetPrefixLength retrieves the value of the leaf PrefixLength from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix 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 PrefixLength is set, it can safely use t.GetPrefixLength() 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.PrefixLength == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix) GetPrefixSid added in v0.8.0

GetPrefixSid retrieves the value with the specified key from the PrefixSid map field of IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix. 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 (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix) GetRedistributionType

GetRedistributionType retrieves the value of the leaf RedistributionType from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix 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 RedistributionType is set, it can safely use t.GetRedistributionType() 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.RedistributionType == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix) IsYANGGoStruct

IsYANGGoStruct ensures that IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix) NewPrefixSid added in v0.8.0

NewPrefixSid creates a new entry in the PrefixSid list of the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix struct. The keys of the list are populated from the input arguments.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix) RenamePrefixSid added in v0.8.0

RenamePrefixSid renames an entry in the list PrefixSid within the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix) SetMetric

SetMetric sets the value of the leaf Metric in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix) SetPrefix

SetPrefix sets the value of the leaf Prefix in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix) SetPrefixLength

SetPrefixLength sets the value of the leaf PrefixLength in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix) SetRedistributionType

SetRedistributionType sets the value of the leaf RedistributionType in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix) ΛBelongingModule

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix) ΛEnumTypeMap

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix) ΛListKeyMap

ΛListKeyMap returns the keys of the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix struct, which is a YANG list entry.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixAttributes

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixAttributes struct {
	Flags []E_State_Flags `path:"flags" module:"open-traffic-generator-isis"`
}

IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixAttributes represents the /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database/lsp-states/lsps/tlvs/extended-ipv4-reachability/prefixes/prefix/state/prefix-attributes YANG schema element.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixAttributes) GetFlags

GetFlags retrieves the value of the leaf Flags from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixAttributes 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 Flags is set, it can safely use t.GetFlags() 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.Flags == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixAttributes) IsYANGGoStruct

IsYANGGoStruct ensures that IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixAttributes implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixAttributes) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixAttributes with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixAttributes) SetFlags

SetFlags sets the value of the leaf Flags in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixAttributes struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixAttributes) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixAttributes) ΛBelongingModule

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixAttributes.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixAttributes) ΛEnumTypeMap

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixAttributes) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid added in v0.8.0

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid struct {
	Algorithm   *uint8              `path:"state/algorithm" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	Flags       []E_PrefixSid_Flags `path:"state/flags" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	SidInstance *uint32             `` /* 202-byte string literal not displayed */
	Sids        []uint32            `path:"state/sids" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid represents the /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database/lsp-states/lsps/tlvs/extended-ipv4-reachability/prefixes/prefix/state/prefix-sid YANG schema element.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid) GetAlgorithm added in v0.8.0

GetAlgorithm retrieves the value of the leaf Algorithm from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid 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 Algorithm is set, it can safely use t.GetAlgorithm() 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.Algorithm == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid) GetFlags added in v0.8.0

GetFlags retrieves the value of the leaf Flags from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid 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 Flags is set, it can safely use t.GetFlags() 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.Flags == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid) GetSidInstance added in v0.8.0

GetSidInstance retrieves the value of the leaf SidInstance from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid 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 SidInstance is set, it can safely use t.GetSidInstance() 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.SidInstance == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid) GetSids added in v0.8.0

GetSids retrieves the value of the leaf Sids from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid 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 Sids is set, it can safely use t.GetSids() 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.Sids == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid) IsYANGGoStruct added in v0.8.0

IsYANGGoStruct ensures that IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid) PopulateDefaults added in v0.8.0

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid) SetAlgorithm added in v0.8.0

SetAlgorithm sets the value of the leaf Algorithm in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid) SetFlags added in v0.8.0

SetFlags sets the value of the leaf Flags in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid) SetSidInstance added in v0.8.0

SetSidInstance sets the value of the leaf SidInstance in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid) SetSids added in v0.8.0

SetSids sets the value of the leaf Sids in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid) Validate added in v0.8.0

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid) ΛBelongingModule added in v0.8.0

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid) ΛEnumTypeMap added in v0.8.0

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid) ΛListKeyMap added in v0.8.0

ΛListKeyMap returns the keys of the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid struct, which is a YANG list entry.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIpv4Reachability_Prefix_PrefixSid) ΛValidate added in v0.8.0

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability struct {
	Neighbor map[string]*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor `path:"neighbors/neighbor" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability represents the /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database/lsp-states/lsps/tlvs/extended-is-reachability YANG schema element.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability) AppendNeighbor

AppendNeighbor appends the supplied IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor struct to the list Neighbor of IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability. If the key value(s) specified in the supplied IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor already exist in the list, an error is returned.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability) DeleteNeighbor

DeleteNeighbor deletes the value with the specified keys from the receiver IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability. If there is no such element, the function is a no-op.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability) GetNeighbor

GetNeighbor retrieves the value with the specified key from the Neighbor map field of IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability. 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 (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability) GetOrCreateNeighbor

GetOrCreateNeighbor retrieves the value with the specified keys from the receiver IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability) GetOrCreateNeighborMap added in v0.7.1

GetOrCreateNeighborMap returns the list (map) from IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability.

It initializes the field if not already initialized.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability) IsYANGGoStruct

IsYANGGoStruct ensures that IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability) NewNeighbor

NewNeighbor creates a new entry in the Neighbor list of the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability struct. The keys of the list are populated from the input arguments.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability) RenameNeighbor added in v0.4.3

RenameNeighbor renames an entry in the list Neighbor within the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability) ΛBelongingModule

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability) ΛEnumTypeMap

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor struct {
	AdjacencySid map[uint32]*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid `path:"state/adjacency-sid" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	SystemId     *string                                                                                         `` /* 193-byte string literal not displayed */
}

IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor represents the /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database/lsp-states/lsps/tlvs/extended-is-reachability/neighbors/neighbor YANG schema element.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor) AppendAdjacencySid added in v0.8.0

AppendAdjacencySid appends the supplied IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid struct to the list AdjacencySid of IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor. If the key value(s) specified in the supplied IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid already exist in the list, an error is returned.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor) DeleteAdjacencySid added in v0.8.0

DeleteAdjacencySid deletes the value with the specified keys from the receiver IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor. If there is no such element, the function is a no-op.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor) GetAdjacencySid added in v0.8.0

GetAdjacencySid retrieves the value with the specified key from the AdjacencySid map field of IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor. 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 (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor) GetOrCreateAdjacencySid added in v0.8.0

GetOrCreateAdjacencySid retrieves the value with the specified keys from the receiver IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor) GetOrCreateAdjacencySidMap added in v0.8.0

GetOrCreateAdjacencySidMap returns the list (map) from IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor.

It initializes the field if not already initialized.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor) GetSystemId

GetSystemId retrieves the value of the leaf SystemId from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor 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 SystemId is set, it can safely use t.GetSystemId() 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.SystemId == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor) IsYANGGoStruct

IsYANGGoStruct ensures that IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor) NewAdjacencySid added in v0.8.0

NewAdjacencySid creates a new entry in the AdjacencySid list of the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor struct. The keys of the list are populated from the input arguments.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor) RenameAdjacencySid added in v0.8.0

RenameAdjacencySid renames an entry in the list AdjacencySid within the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor) SetSystemId

SetSystemId sets the value of the leaf SystemId in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor) ΛBelongingModule

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor) ΛEnumTypeMap

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor) ΛListKeyMap

ΛListKeyMap returns the keys of the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor struct, which is a YANG list entry.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid added in v0.8.0

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid struct {
	AdjacencyType E_AdjacencySid_AdjacencyType `path:"state/adjacency-type" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	Flags         []E_AdjacencySid_Flags       `path:"state/flags" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	SidInstance   *uint32                      `` /* 202-byte string literal not displayed */
	Sids          []uint32                     `path:"state/sids" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	Weight        *uint8                       `path:"state/weight" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid represents the /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database/lsp-states/lsps/tlvs/extended-is-reachability/neighbors/neighbor/state/adjacency-sid YANG schema element.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid) GetAdjacencyType added in v0.8.0

GetAdjacencyType retrieves the value of the leaf AdjacencyType from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid 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 AdjacencyType is set, it can safely use t.GetAdjacencyType() 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.AdjacencyType == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid) GetFlags added in v0.8.0

GetFlags retrieves the value of the leaf Flags from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid 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 Flags is set, it can safely use t.GetFlags() 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.Flags == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid) GetSidInstance added in v0.8.0

GetSidInstance retrieves the value of the leaf SidInstance from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid 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 SidInstance is set, it can safely use t.GetSidInstance() 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.SidInstance == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid) GetSids added in v0.8.0

GetSids retrieves the value of the leaf Sids from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid 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 Sids is set, it can safely use t.GetSids() 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.Sids == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid) GetWeight added in v0.8.0

GetWeight retrieves the value of the leaf Weight from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid 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 (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid) IsYANGGoStruct added in v0.8.0

IsYANGGoStruct ensures that IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid) PopulateDefaults added in v0.8.0

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid) SetAdjacencyType added in v0.8.0

SetAdjacencyType sets the value of the leaf AdjacencyType in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid) SetFlags added in v0.8.0

SetFlags sets the value of the leaf Flags in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid) SetSidInstance added in v0.8.0

SetSidInstance sets the value of the leaf SidInstance in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid) SetSids added in v0.8.0

SetSids sets the value of the leaf Sids in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid) SetWeight added in v0.8.0

SetWeight sets the value of the leaf Weight in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid) Validate added in v0.8.0

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid) ΛBelongingModule added in v0.8.0

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid) ΛEnumTypeMap added in v0.8.0

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid) ΛListKeyMap added in v0.8.0

ΛListKeyMap returns the keys of the IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid struct, which is a YANG list entry.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_ExtendedIsReachability_Neighbor_AdjacencySid) ΛValidate added in v0.8.0

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Hostnames

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Hostnames struct {
	Hostname []string `path:"state/hostname" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_LinkStateDatabase_Lsps_Tlvs_Hostnames represents the /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database/lsp-states/lsps/tlvs/hostnames YANG schema element.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Hostnames) GetHostname

GetHostname retrieves the value of the leaf Hostname from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Hostnames 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 Hostname is set, it can safely use t.GetHostname() 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.Hostname == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Hostnames) IsYANGGoStruct

IsYANGGoStruct ensures that IsisRouter_LinkStateDatabase_Lsps_Tlvs_Hostnames implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Hostnames) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Hostnames with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Hostnames) SetHostname

SetHostname sets the value of the leaf Hostname in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Hostnames struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Hostnames) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Hostnames) ΛBelongingModule

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_LinkStateDatabase_Lsps_Tlvs_Hostnames.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Hostnames) ΛEnumTypeMap

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Hostnames) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability struct {
	Prefix map[string]*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix `path:"prefixes/prefix" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability represents the /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database/lsp-states/lsps/tlvs/ipv4-external-reachability YANG schema element.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability) AppendPrefix

AppendPrefix appends the supplied IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix struct to the list Prefix of IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability. If the key value(s) specified in the supplied IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix already exist in the list, an error is returned.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability) DeletePrefix

DeletePrefix deletes the value with the specified keys from the receiver IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability. If there is no such element, the function is a no-op.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability) GetOrCreatePrefix

GetOrCreatePrefix retrieves the value with the specified keys from the receiver IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability) GetOrCreatePrefixMap added in v0.7.1

GetOrCreatePrefixMap returns the list (map) from IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability.

It initializes the field if not already initialized.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability) GetPrefix

GetPrefix retrieves the value with the specified key from the Prefix map field of IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability. 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 (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability) IsYANGGoStruct

IsYANGGoStruct ensures that IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability) NewPrefix

NewPrefix creates a new entry in the Prefix list of the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability struct. The keys of the list are populated from the input arguments.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability) RenamePrefix added in v0.4.3

RenamePrefix renames an entry in the list Prefix within the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability) ΛBelongingModule

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability) ΛEnumTypeMap

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix struct {
	DefaultMetric      *uint8                                               `path:"state/default-metric" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	OriginType         E_Ipv4ExternalReachability_Prefix_OriginType         `path:"state/origin-type" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	Prefix             *string                                              `` /* 184-byte string literal not displayed */
	PrefixLength       *uint32                                              `path:"state/prefix-length" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	RedistributionType E_Ipv4ExternalReachability_Prefix_RedistributionType `path:"state/redistribution-type" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix represents the /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database/lsp-states/lsps/tlvs/ipv4-external-reachability/prefixes/prefix YANG schema element.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix) GetDefaultMetric

GetDefaultMetric retrieves the value of the leaf DefaultMetric from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix 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 DefaultMetric is set, it can safely use t.GetDefaultMetric() 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.DefaultMetric == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix) GetOriginType

GetOriginType retrieves the value of the leaf OriginType from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix 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 OriginType is set, it can safely use t.GetOriginType() 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.OriginType == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix) GetPrefix

GetPrefix retrieves the value of the leaf Prefix from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix 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 (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix) GetPrefixLength

GetPrefixLength retrieves the value of the leaf PrefixLength from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix 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 PrefixLength is set, it can safely use t.GetPrefixLength() 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.PrefixLength == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix) GetRedistributionType

GetRedistributionType retrieves the value of the leaf RedistributionType from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix 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 RedistributionType is set, it can safely use t.GetRedistributionType() 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.RedistributionType == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix) IsYANGGoStruct

IsYANGGoStruct ensures that IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix) SetDefaultMetric

SetDefaultMetric sets the value of the leaf DefaultMetric in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix) SetOriginType

SetOriginType sets the value of the leaf OriginType in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix) SetPrefix

SetPrefix sets the value of the leaf Prefix in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix) SetPrefixLength

SetPrefixLength sets the value of the leaf PrefixLength in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix) SetRedistributionType

SetRedistributionType sets the value of the leaf RedistributionType in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix) ΛBelongingModule

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix) ΛEnumTypeMap

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix) ΛListKeyMap

ΛListKeyMap returns the keys of the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix struct, which is a YANG list entry.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4ExternalReachability_Prefix) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability struct {
	Prefix map[string]*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix `path:"prefixes/prefix" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability represents the /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database/lsp-states/lsps/tlvs/ipv4-internal-reachability YANG schema element.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability) AppendPrefix

AppendPrefix appends the supplied IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix struct to the list Prefix of IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability. If the key value(s) specified in the supplied IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix already exist in the list, an error is returned.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability) DeletePrefix

DeletePrefix deletes the value with the specified keys from the receiver IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability. If there is no such element, the function is a no-op.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability) GetOrCreatePrefix

GetOrCreatePrefix retrieves the value with the specified keys from the receiver IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability) GetOrCreatePrefixMap added in v0.7.1

GetOrCreatePrefixMap returns the list (map) from IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability.

It initializes the field if not already initialized.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability) GetPrefix

GetPrefix retrieves the value with the specified key from the Prefix map field of IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability. 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 (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability) IsYANGGoStruct

IsYANGGoStruct ensures that IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability) NewPrefix

NewPrefix creates a new entry in the Prefix list of the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability struct. The keys of the list are populated from the input arguments.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability) RenamePrefix added in v0.4.3

RenamePrefix renames an entry in the list Prefix within the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability) ΛBelongingModule

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability) ΛEnumTypeMap

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix struct {
	DefaultMetric      *uint8                                               `path:"state/default-metric" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	OriginType         E_Ipv4ExternalReachability_Prefix_OriginType         `path:"state/origin-type" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	Prefix             *string                                              `` /* 184-byte string literal not displayed */
	PrefixLength       *uint32                                              `path:"state/prefix-length" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	RedistributionType E_Ipv4ExternalReachability_Prefix_RedistributionType `path:"state/redistribution-type" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix represents the /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database/lsp-states/lsps/tlvs/ipv4-internal-reachability/prefixes/prefix YANG schema element.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix) GetDefaultMetric

GetDefaultMetric retrieves the value of the leaf DefaultMetric from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix 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 DefaultMetric is set, it can safely use t.GetDefaultMetric() 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.DefaultMetric == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix) GetOriginType

GetOriginType retrieves the value of the leaf OriginType from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix 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 OriginType is set, it can safely use t.GetOriginType() 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.OriginType == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix) GetPrefix

GetPrefix retrieves the value of the leaf Prefix from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix 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 (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix) GetPrefixLength

GetPrefixLength retrieves the value of the leaf PrefixLength from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix 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 PrefixLength is set, it can safely use t.GetPrefixLength() 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.PrefixLength == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix) GetRedistributionType

GetRedistributionType retrieves the value of the leaf RedistributionType from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix 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 RedistributionType is set, it can safely use t.GetRedistributionType() 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.RedistributionType == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix) IsYANGGoStruct

IsYANGGoStruct ensures that IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix) SetDefaultMetric

SetDefaultMetric sets the value of the leaf DefaultMetric in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix) SetOriginType

SetOriginType sets the value of the leaf OriginType in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix) SetPrefix

SetPrefix sets the value of the leaf Prefix in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix) SetPrefixLength

SetPrefixLength sets the value of the leaf PrefixLength in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix) SetRedistributionType

SetRedistributionType sets the value of the leaf RedistributionType in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix) ΛBelongingModule

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix) ΛEnumTypeMap

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix) ΛListKeyMap

ΛListKeyMap returns the keys of the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix struct, which is a YANG list entry.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv4InternalReachability_Prefix) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability struct {
	Prefix map[string]*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix `path:"prefixes/prefix" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability represents the /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database/lsp-states/lsps/tlvs/ipv6-reachability YANG schema element.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability) AppendPrefix

AppendPrefix appends the supplied IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix struct to the list Prefix of IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability. If the key value(s) specified in the supplied IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix already exist in the list, an error is returned.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability) DeletePrefix

DeletePrefix deletes the value with the specified keys from the receiver IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability. If there is no such element, the function is a no-op.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability) GetOrCreatePrefix

GetOrCreatePrefix retrieves the value with the specified keys from the receiver IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability) GetOrCreatePrefixMap added in v0.7.1

GetOrCreatePrefixMap returns the list (map) from IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability.

It initializes the field if not already initialized.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability) GetPrefix

GetPrefix retrieves the value with the specified key from the Prefix map field of IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability. 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 (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability) IsYANGGoStruct

IsYANGGoStruct ensures that IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability) NewPrefix

NewPrefix creates a new entry in the Prefix list of the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability struct. The keys of the list are populated from the input arguments.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability) RenamePrefix added in v0.4.3

RenamePrefix renames an entry in the list Prefix within the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability) ΛBelongingModule

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability) ΛEnumTypeMap

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix struct {
	Metric             *uint32                                                                              `path:"state/metric" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	OriginType         E_Ipv6Reachability_Prefix_OriginType                                                 `path:"state/origin-type" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	Prefix             *string                                                                              `` /* 184-byte string literal not displayed */
	PrefixAttributes   *IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixAttributes     `path:"state/prefix-attributes" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	PrefixLength       *uint32                                                                              `path:"state/prefix-length" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	PrefixSid          map[uint32]*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid `path:"state/prefix-sid" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	RedistributionType E_Ipv6Reachability_Prefix_RedistributionType                                         `path:"state/redistribution-type" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix represents the /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database/lsp-states/lsps/tlvs/ipv6-reachability/prefixes/prefix YANG schema element.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix) AppendPrefixSid added in v0.8.0

AppendPrefixSid appends the supplied IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid struct to the list PrefixSid of IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix. If the key value(s) specified in the supplied IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid already exist in the list, an error is returned.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix) DeletePrefixSid added in v0.8.0

DeletePrefixSid deletes the value with the specified keys from the receiver IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix. If there is no such element, the function is a no-op.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix) GetMetric

GetMetric retrieves the value of the leaf Metric from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix 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 Metric is set, it can safely use t.GetMetric() 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.Metric == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix) GetOrCreatePrefixAttributes

GetOrCreatePrefixAttributes retrieves the value of the PrefixAttributes field or returns the existing field if it already exists.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix) GetOrCreatePrefixSid added in v0.8.0

GetOrCreatePrefixSid retrieves the value with the specified keys from the receiver IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix) GetOrCreatePrefixSidMap added in v0.8.0

GetOrCreatePrefixSidMap returns the list (map) from IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix.

It initializes the field if not already initialized.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix) GetOriginType

GetOriginType retrieves the value of the leaf OriginType from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix 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 OriginType is set, it can safely use t.GetOriginType() 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.OriginType == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix) GetPrefix

GetPrefix retrieves the value of the leaf Prefix from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix 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 (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix) GetPrefixAttributes

GetPrefixAttributes returns the value of the PrefixAttributes struct pointer from IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix. If the receiver or the field PrefixAttributes is nil, nil is returned such that the Get* methods can be safely chained.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix) GetPrefixLength

GetPrefixLength retrieves the value of the leaf PrefixLength from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix 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 PrefixLength is set, it can safely use t.GetPrefixLength() 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.PrefixLength == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix) GetPrefixSid added in v0.8.0

GetPrefixSid retrieves the value with the specified key from the PrefixSid map field of IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix. 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 (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix) GetRedistributionType

GetRedistributionType retrieves the value of the leaf RedistributionType from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix 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 RedistributionType is set, it can safely use t.GetRedistributionType() 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.RedistributionType == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix) IsYANGGoStruct

IsYANGGoStruct ensures that IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix) NewPrefixSid added in v0.8.0

NewPrefixSid creates a new entry in the PrefixSid list of the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix struct. The keys of the list are populated from the input arguments.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix) RenamePrefixSid added in v0.8.0

RenamePrefixSid renames an entry in the list PrefixSid within the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix) SetMetric

SetMetric sets the value of the leaf Metric in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix) SetOriginType

SetOriginType sets the value of the leaf OriginType in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix) SetPrefix

SetPrefix sets the value of the leaf Prefix in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix) SetPrefixLength

SetPrefixLength sets the value of the leaf PrefixLength in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix) SetRedistributionType

SetRedistributionType sets the value of the leaf RedistributionType in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix) ΛBelongingModule

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix) ΛEnumTypeMap

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix) ΛListKeyMap

ΛListKeyMap returns the keys of the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix struct, which is a YANG list entry.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixAttributes

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixAttributes struct {
	Flags []E_State_Flags `path:"flags" module:"open-traffic-generator-isis"`
}

IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixAttributes represents the /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database/lsp-states/lsps/tlvs/ipv6-reachability/prefixes/prefix/state/prefix-attributes YANG schema element.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixAttributes) GetFlags

GetFlags retrieves the value of the leaf Flags from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixAttributes 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 Flags is set, it can safely use t.GetFlags() 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.Flags == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixAttributes) IsYANGGoStruct

IsYANGGoStruct ensures that IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixAttributes implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixAttributes) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixAttributes with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixAttributes) SetFlags

SetFlags sets the value of the leaf Flags in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixAttributes struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixAttributes) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixAttributes) ΛBelongingModule

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixAttributes.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixAttributes) ΛEnumTypeMap

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixAttributes) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid added in v0.8.0

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid struct {
	Algorithm   *uint8              `path:"state/algorithm" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	Flags       []E_PrefixSid_Flags `path:"state/flags" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	SidInstance *uint32             `` /* 202-byte string literal not displayed */
	Sids        []uint32            `path:"state/sids" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid represents the /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database/lsp-states/lsps/tlvs/ipv6-reachability/prefixes/prefix/state/prefix-sid YANG schema element.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid) GetAlgorithm added in v0.8.0

GetAlgorithm retrieves the value of the leaf Algorithm from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid 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 Algorithm is set, it can safely use t.GetAlgorithm() 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.Algorithm == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid) GetFlags added in v0.8.0

GetFlags retrieves the value of the leaf Flags from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid 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 Flags is set, it can safely use t.GetFlags() 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.Flags == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid) GetSidInstance added in v0.8.0

GetSidInstance retrieves the value of the leaf SidInstance from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid 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 SidInstance is set, it can safely use t.GetSidInstance() 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.SidInstance == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid) GetSids added in v0.8.0

GetSids retrieves the value of the leaf Sids from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid 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 Sids is set, it can safely use t.GetSids() 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.Sids == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid) IsYANGGoStruct added in v0.8.0

IsYANGGoStruct ensures that IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid) PopulateDefaults added in v0.8.0

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid) SetAlgorithm added in v0.8.0

SetAlgorithm sets the value of the leaf Algorithm in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid) SetFlags added in v0.8.0

SetFlags sets the value of the leaf Flags in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid) SetSidInstance added in v0.8.0

SetSidInstance sets the value of the leaf SidInstance in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid) SetSids added in v0.8.0

SetSids sets the value of the leaf Sids in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid) Validate added in v0.8.0

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid) ΛBelongingModule added in v0.8.0

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid) ΛEnumTypeMap added in v0.8.0

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid) ΛListKeyMap added in v0.8.0

ΛListKeyMap returns the keys of the IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid struct, which is a YANG list entry.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_Ipv6Reachability_Prefix_PrefixSid) ΛValidate added in v0.8.0

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability struct {
	Neighbor map[string]*IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability_Neighbor `path:"neighbors/neighbor" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
}

IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability represents the /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database/lsp-states/lsps/tlvs/is-reachability YANG schema element.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability) AppendNeighbor

AppendNeighbor appends the supplied IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability_Neighbor struct to the list Neighbor of IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability. If the key value(s) specified in the supplied IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability_Neighbor already exist in the list, an error is returned.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability) DeleteNeighbor

DeleteNeighbor deletes the value with the specified keys from the receiver IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability. If there is no such element, the function is a no-op.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability) GetNeighbor

GetNeighbor retrieves the value with the specified key from the Neighbor map field of IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability. 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 (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability) GetOrCreateNeighbor

GetOrCreateNeighbor retrieves the value with the specified keys from the receiver IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability) GetOrCreateNeighborMap added in v0.7.1

GetOrCreateNeighborMap returns the list (map) from IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability.

It initializes the field if not already initialized.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability) IsYANGGoStruct

IsYANGGoStruct ensures that IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability) NewNeighbor

NewNeighbor creates a new entry in the Neighbor list of the IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability struct. The keys of the list are populated from the input arguments.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability) RenameNeighbor added in v0.4.3

RenameNeighbor renames an entry in the list Neighbor within the IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability) ΛBelongingModule

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability) ΛEnumTypeMap

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability_Neighbor

type IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability_Neighbor struct {
	SystemId *string `` /* 193-byte string literal not displayed */
}

IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability_Neighbor represents the /open-traffic-generator-isis/isis-routers/isis-router/state/link-state-database/lsp-states/lsps/tlvs/is-reachability/neighbors/neighbor YANG schema element.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability_Neighbor) GetSystemId

GetSystemId retrieves the value of the leaf SystemId from the IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability_Neighbor 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 SystemId is set, it can safely use t.GetSystemId() 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.SystemId == nil' before retrieving the leaf's value.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability_Neighbor) IsYANGGoStruct

IsYANGGoStruct ensures that IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability_Neighbor implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability_Neighbor) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability_Neighbor with default values as specified in the YANG schema, instantiating any nil container fields.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability_Neighbor) SetSystemId

SetSystemId sets the value of the leaf SystemId in the IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability_Neighbor struct.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability_Neighbor) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability_Neighbor) ΛBelongingModule

ΛBelongingModule returns the name of the module that defines the namespace of IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability_Neighbor.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability_Neighbor) ΛEnumTypeMap

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability_Neighbor) ΛListKeyMap

ΛListKeyMap returns the keys of the IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability_Neighbor struct, which is a YANG list entry.

func (*IsisRouter_LinkStateDatabase_Lsps_Tlvs_IsReachability_Neighbor) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type Lacp

type Lacp struct {
	LagMember map[string]*Lacp_LagMember `path:"lag-members/lag-member" module:"open-traffic-generator-lacp/open-traffic-generator-lacp"`
}

Lacp represents the /open-traffic-generator-lacp/lacp YANG schema element.

func (*Lacp) AppendLagMember

func (t *Lacp) AppendLagMember(v *Lacp_LagMember) error

AppendLagMember appends the supplied Lacp_LagMember struct to the list LagMember of Lacp. If the key value(s) specified in the supplied Lacp_LagMember already exist in the list, an error is returned.

func (*Lacp) DeleteLagMember

func (t *Lacp) DeleteLagMember(Name string)

DeleteLagMember deletes the value with the specified keys from the receiver Lacp. If there is no such element, the function is a no-op.

func (*Lacp) GetLagMember

func (t *Lacp) GetLagMember(Name string) *Lacp_LagMember

GetLagMember retrieves the value with the specified key from the LagMember map field of Lacp. 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 (*Lacp) GetOrCreateLagMember

func (t *Lacp) GetOrCreateLagMember(Name string) *Lacp_LagMember

GetOrCreateLagMember retrieves the value with the specified keys from the receiver Lacp. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Lacp) GetOrCreateLagMemberMap added in v0.7.1

func (t *Lacp) GetOrCreateLagMemberMap() map[string]*Lacp_LagMember

GetOrCreateLagMemberMap returns the list (map) from Lacp.

It initializes the field if not already initialized.

func (*Lacp) IsYANGGoStruct

func (*Lacp) IsYANGGoStruct()

IsYANGGoStruct ensures that Lacp implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Lacp) NewLagMember

func (t *Lacp) NewLagMember(Name string) (*Lacp_LagMember, error)

NewLagMember creates a new entry in the LagMember list of the Lacp struct. The keys of the list are populated from the input arguments.

func (*Lacp) PopulateDefaults

func (t *Lacp) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Lacp with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Lacp) RenameLagMember added in v0.4.3

func (t *Lacp) RenameLagMember(oldK, newK string) error

RenameLagMember renames an entry in the list LagMember within the Lacp struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Lacp) Validate

func (t *Lacp) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Lacp) ΛBelongingModule

func (*Lacp) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Lacp.

func (*Lacp) ΛEnumTypeMap

func (t *Lacp) Λ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 (*Lacp) ΛValidate

func (t *Lacp) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Lacp_LagMember

type Lacp_LagMember struct {
	Activity        E_Lacp_LacpActivityType        `path:"state/activity" module:"open-traffic-generator-lacp/open-traffic-generator-lacp"`
	Aggregatable    *bool                          `path:"state/aggregatable" module:"open-traffic-generator-lacp/open-traffic-generator-lacp"`
	Collecting      *bool                          `path:"state/collecting" module:"open-traffic-generator-lacp/open-traffic-generator-lacp"`
	Counters        *Lacp_LagMember_Counters       `path:"state/counters" module:"open-traffic-generator-lacp/open-traffic-generator-lacp"`
	Distributing    *bool                          `path:"state/distributing" module:"open-traffic-generator-lacp/open-traffic-generator-lacp"`
	Name            *string                        `` /* 178-byte string literal not displayed */
	OperKey         *uint16                        `path:"state/oper-key" module:"open-traffic-generator-lacp/open-traffic-generator-lacp"`
	PartnerId       *string                        `path:"state/partner-id" module:"open-traffic-generator-lacp/open-traffic-generator-lacp"`
	PartnerKey      *uint16                        `path:"state/partner-key" module:"open-traffic-generator-lacp/open-traffic-generator-lacp"`
	PartnerPortNum  *uint16                        `path:"state/partner-port-num" module:"open-traffic-generator-lacp/open-traffic-generator-lacp"`
	PortNum         *uint16                        `path:"state/port-num" module:"open-traffic-generator-lacp/open-traffic-generator-lacp"`
	Synchronization E_Lacp_LacpSynchronizationType `path:"state/synchronization" module:"open-traffic-generator-lacp/open-traffic-generator-lacp"`
	SystemId        *string                        `path:"state/system-id" module:"open-traffic-generator-lacp/open-traffic-generator-lacp"`
	Timeout         E_Lacp_LacpTimeoutType         `path:"state/timeout" module:"open-traffic-generator-lacp/open-traffic-generator-lacp"`
}

Lacp_LagMember represents the /open-traffic-generator-lacp/lacp/lag-members/lag-member YANG schema element.

func (*Lacp_LagMember) GetActivity

func (t *Lacp_LagMember) GetActivity() E_Lacp_LacpActivityType

GetActivity retrieves the value of the leaf Activity from the Lacp_LagMember 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 Activity is set, it can safely use t.GetActivity() 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.Activity == nil' before retrieving the leaf's value.

func (*Lacp_LagMember) GetAggregatable

func (t *Lacp_LagMember) GetAggregatable() bool

GetAggregatable retrieves the value of the leaf Aggregatable from the Lacp_LagMember 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 Aggregatable is set, it can safely use t.GetAggregatable() 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.Aggregatable == nil' before retrieving the leaf's value.

func (*Lacp_LagMember) GetCollecting

func (t *Lacp_LagMember) GetCollecting() bool

GetCollecting retrieves the value of the leaf Collecting from the Lacp_LagMember 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 Collecting is set, it can safely use t.GetCollecting() 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.Collecting == nil' before retrieving the leaf's value.

func (*Lacp_LagMember) GetCounters

func (t *Lacp_LagMember) GetCounters() *Lacp_LagMember_Counters

GetCounters returns the value of the Counters struct pointer from Lacp_LagMember. If the receiver or the field Counters is nil, nil is returned such that the Get* methods can be safely chained.

func (*Lacp_LagMember) GetDistributing

func (t *Lacp_LagMember) GetDistributing() bool

GetDistributing retrieves the value of the leaf Distributing from the Lacp_LagMember 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 Distributing is set, it can safely use t.GetDistributing() 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.Distributing == nil' before retrieving the leaf's value.

func (*Lacp_LagMember) GetName

func (t *Lacp_LagMember) GetName() string

GetName retrieves the value of the leaf Name from the Lacp_LagMember 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 (*Lacp_LagMember) GetOperKey

func (t *Lacp_LagMember) GetOperKey() uint16

GetOperKey retrieves the value of the leaf OperKey from the Lacp_LagMember 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 OperKey is set, it can safely use t.GetOperKey() 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.OperKey == nil' before retrieving the leaf's value.

func (*Lacp_LagMember) GetOrCreateCounters

func (t *Lacp_LagMember) GetOrCreateCounters() *Lacp_LagMember_Counters

GetOrCreateCounters retrieves the value of the Counters field or returns the existing field if it already exists.

func (*Lacp_LagMember) GetPartnerId

func (t *Lacp_LagMember) GetPartnerId() string

GetPartnerId retrieves the value of the leaf PartnerId from the Lacp_LagMember 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 PartnerId is set, it can safely use t.GetPartnerId() 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.PartnerId == nil' before retrieving the leaf's value.

func (*Lacp_LagMember) GetPartnerKey

func (t *Lacp_LagMember) GetPartnerKey() uint16

GetPartnerKey retrieves the value of the leaf PartnerKey from the Lacp_LagMember 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 PartnerKey is set, it can safely use t.GetPartnerKey() 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.PartnerKey == nil' before retrieving the leaf's value.

func (*Lacp_LagMember) GetPartnerPortNum

func (t *Lacp_LagMember) GetPartnerPortNum() uint16

GetPartnerPortNum retrieves the value of the leaf PartnerPortNum from the Lacp_LagMember 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 PartnerPortNum is set, it can safely use t.GetPartnerPortNum() 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.PartnerPortNum == nil' before retrieving the leaf's value.

func (*Lacp_LagMember) GetPortNum

func (t *Lacp_LagMember) GetPortNum() uint16

GetPortNum retrieves the value of the leaf PortNum from the Lacp_LagMember 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 PortNum is set, it can safely use t.GetPortNum() 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.PortNum == nil' before retrieving the leaf's value.

func (*Lacp_LagMember) GetSynchronization

func (t *Lacp_LagMember) GetSynchronization() E_Lacp_LacpSynchronizationType

GetSynchronization retrieves the value of the leaf Synchronization from the Lacp_LagMember 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 Synchronization is set, it can safely use t.GetSynchronization() 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.Synchronization == nil' before retrieving the leaf's value.

func (*Lacp_LagMember) GetSystemId

func (t *Lacp_LagMember) GetSystemId() string

GetSystemId retrieves the value of the leaf SystemId from the Lacp_LagMember 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 SystemId is set, it can safely use t.GetSystemId() 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.SystemId == nil' before retrieving the leaf's value.

func (*Lacp_LagMember) GetTimeout

func (t *Lacp_LagMember) GetTimeout() E_Lacp_LacpTimeoutType

GetTimeout retrieves the value of the leaf Timeout from the Lacp_LagMember 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 Timeout is set, it can safely use t.GetTimeout() 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.Timeout == nil' before retrieving the leaf's value.

func (*Lacp_LagMember) IsYANGGoStruct

func (*Lacp_LagMember) IsYANGGoStruct()

IsYANGGoStruct ensures that Lacp_LagMember implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Lacp_LagMember) PopulateDefaults

func (t *Lacp_LagMember) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Lacp_LagMember with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Lacp_LagMember) SetActivity

func (t *Lacp_LagMember) SetActivity(v E_Lacp_LacpActivityType)

SetActivity sets the value of the leaf Activity in the Lacp_LagMember struct.

func (*Lacp_LagMember) SetAggregatable

func (t *Lacp_LagMember) SetAggregatable(v bool)

SetAggregatable sets the value of the leaf Aggregatable in the Lacp_LagMember struct.

func (*Lacp_LagMember) SetCollecting

func (t *Lacp_LagMember) SetCollecting(v bool)

SetCollecting sets the value of the leaf Collecting in the Lacp_LagMember struct.

func (*Lacp_LagMember) SetDistributing

func (t *Lacp_LagMember) SetDistributing(v bool)

SetDistributing sets the value of the leaf Distributing in the Lacp_LagMember struct.

func (*Lacp_LagMember) SetName

func (t *Lacp_LagMember) SetName(v string)

SetName sets the value of the leaf Name in the Lacp_LagMember struct.

func (*Lacp_LagMember) SetOperKey

func (t *Lacp_LagMember) SetOperKey(v uint16)

SetOperKey sets the value of the leaf OperKey in the Lacp_LagMember struct.

func (*Lacp_LagMember) SetPartnerId

func (t *Lacp_LagMember) SetPartnerId(v string)

SetPartnerId sets the value of the leaf PartnerId in the Lacp_LagMember struct.

func (*Lacp_LagMember) SetPartnerKey

func (t *Lacp_LagMember) SetPartnerKey(v uint16)

SetPartnerKey sets the value of the leaf PartnerKey in the Lacp_LagMember struct.

func (*Lacp_LagMember) SetPartnerPortNum

func (t *Lacp_LagMember) SetPartnerPortNum(v uint16)

SetPartnerPortNum sets the value of the leaf PartnerPortNum in the Lacp_LagMember struct.

func (*Lacp_LagMember) SetPortNum

func (t *Lacp_LagMember) SetPortNum(v uint16)

SetPortNum sets the value of the leaf PortNum in the Lacp_LagMember struct.

func (*Lacp_LagMember) SetSynchronization

func (t *Lacp_LagMember) SetSynchronization(v E_Lacp_LacpSynchronizationType)

SetSynchronization sets the value of the leaf Synchronization in the Lacp_LagMember struct.

func (*Lacp_LagMember) SetSystemId

func (t *Lacp_LagMember) SetSystemId(v string)

SetSystemId sets the value of the leaf SystemId in the Lacp_LagMember struct.

func (*Lacp_LagMember) SetTimeout

func (t *Lacp_LagMember) SetTimeout(v E_Lacp_LacpTimeoutType)

SetTimeout sets the value of the leaf Timeout in the Lacp_LagMember struct.

func (*Lacp_LagMember) Validate

func (t *Lacp_LagMember) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Lacp_LagMember) ΛBelongingModule

func (*Lacp_LagMember) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Lacp_LagMember.

func (*Lacp_LagMember) ΛEnumTypeMap

func (t *Lacp_LagMember) Λ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 (*Lacp_LagMember) ΛListKeyMap

func (t *Lacp_LagMember) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Lacp_LagMember struct, which is a YANG list entry.

func (*Lacp_LagMember) ΛValidate

func (t *Lacp_LagMember) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Lacp_LagMember_Counters

type Lacp_LagMember_Counters struct {
	LacpInPkts   *uint64 `path:"lacp-in-pkts" module:"open-traffic-generator-lacp"`
	LacpOutPkts  *uint64 `path:"lacp-out-pkts" module:"open-traffic-generator-lacp"`
	LacpRxErrors *uint64 `path:"lacp-rx-errors" module:"open-traffic-generator-lacp"`
}

Lacp_LagMember_Counters represents the /open-traffic-generator-lacp/lacp/lag-members/lag-member/state/counters YANG schema element.

func (*Lacp_LagMember_Counters) GetLacpInPkts

func (t *Lacp_LagMember_Counters) GetLacpInPkts() uint64

GetLacpInPkts retrieves the value of the leaf LacpInPkts from the Lacp_LagMember_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 LacpInPkts is set, it can safely use t.GetLacpInPkts() 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.LacpInPkts == nil' before retrieving the leaf's value.

func (*Lacp_LagMember_Counters) GetLacpOutPkts

func (t *Lacp_LagMember_Counters) GetLacpOutPkts() uint64

GetLacpOutPkts retrieves the value of the leaf LacpOutPkts from the Lacp_LagMember_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 LacpOutPkts is set, it can safely use t.GetLacpOutPkts() 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.LacpOutPkts == nil' before retrieving the leaf's value.

func (*Lacp_LagMember_Counters) GetLacpRxErrors

func (t *Lacp_LagMember_Counters) GetLacpRxErrors() uint64

GetLacpRxErrors retrieves the value of the leaf LacpRxErrors from the Lacp_LagMember_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 LacpRxErrors is set, it can safely use t.GetLacpRxErrors() 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.LacpRxErrors == nil' before retrieving the leaf's value.

func (*Lacp_LagMember_Counters) IsYANGGoStruct

func (*Lacp_LagMember_Counters) IsYANGGoStruct()

IsYANGGoStruct ensures that Lacp_LagMember_Counters implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Lacp_LagMember_Counters) PopulateDefaults

func (t *Lacp_LagMember_Counters) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Lacp_LagMember_Counters with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Lacp_LagMember_Counters) SetLacpInPkts

func (t *Lacp_LagMember_Counters) SetLacpInPkts(v uint64)

SetLacpInPkts sets the value of the leaf LacpInPkts in the Lacp_LagMember_Counters struct.

func (*Lacp_LagMember_Counters) SetLacpOutPkts

func (t *Lacp_LagMember_Counters) SetLacpOutPkts(v uint64)

SetLacpOutPkts sets the value of the leaf LacpOutPkts in the Lacp_LagMember_Counters struct.

func (*Lacp_LagMember_Counters) SetLacpRxErrors

func (t *Lacp_LagMember_Counters) SetLacpRxErrors(v uint64)

SetLacpRxErrors sets the value of the leaf LacpRxErrors in the Lacp_LagMember_Counters struct.

func (*Lacp_LagMember_Counters) Validate

func (t *Lacp_LagMember_Counters) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Lacp_LagMember_Counters) ΛBelongingModule

func (*Lacp_LagMember_Counters) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Lacp_LagMember_Counters.

func (*Lacp_LagMember_Counters) ΛEnumTypeMap

func (t *Lacp_LagMember_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 (*Lacp_LagMember_Counters) ΛValidate

func (t *Lacp_LagMember_Counters) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Lag

type Lag struct {
	Counters   *Lag_Counters    `path:"state/counters" module:"open-traffic-generator-lag/open-traffic-generator-lag"`
	InRate     Binary           `path:"state/in-rate" module:"open-traffic-generator-lag/open-traffic-generator-lag"`
	Name       *string          `` /* 174-byte string literal not displayed */
	OperStatus E_Lag_OperStatus `path:"state/oper-status" module:"open-traffic-generator-lag/open-traffic-generator-lag"`
	OutRate    Binary           `path:"state/out-rate" module:"open-traffic-generator-lag/open-traffic-generator-lag"`
}

Lag represents the /open-traffic-generator-lag/lags/lag YANG schema element.

func (*Lag) GetCounters

func (t *Lag) GetCounters() *Lag_Counters

GetCounters returns the value of the Counters struct pointer from Lag. If the receiver or the field Counters is nil, nil is returned such that the Get* methods can be safely chained.

func (*Lag) GetInRate

func (t *Lag) GetInRate() Binary

GetInRate retrieves the value of the leaf InRate from the Lag struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if InRate is set, it can safely use t.GetInRate() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.InRate == nil' before retrieving the leaf's value.

func (*Lag) GetName

func (t *Lag) GetName() string

GetName retrieves the value of the leaf Name from the Lag 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 (*Lag) GetOperStatus

func (t *Lag) GetOperStatus() E_Lag_OperStatus

GetOperStatus retrieves the value of the leaf OperStatus from the Lag 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 (*Lag) GetOrCreateCounters

func (t *Lag) GetOrCreateCounters() *Lag_Counters

GetOrCreateCounters retrieves the value of the Counters field or returns the existing field if it already exists.

func (*Lag) GetOutRate

func (t *Lag) GetOutRate() Binary

GetOutRate retrieves the value of the leaf OutRate from the Lag struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if OutRate is set, it can safely use t.GetOutRate() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.OutRate == nil' before retrieving the leaf's value.

func (*Lag) IsYANGGoStruct

func (*Lag) IsYANGGoStruct()

IsYANGGoStruct ensures that Lag implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Lag) PopulateDefaults

func (t *Lag) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Lag with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Lag) SetInRate

func (t *Lag) SetInRate(v Binary)

SetInRate sets the value of the leaf InRate in the Lag struct.

func (*Lag) SetName

func (t *Lag) SetName(v string)

SetName sets the value of the leaf Name in the Lag struct.

func (*Lag) SetOperStatus

func (t *Lag) SetOperStatus(v E_Lag_OperStatus)

SetOperStatus sets the value of the leaf OperStatus in the Lag struct.

func (*Lag) SetOutRate

func (t *Lag) SetOutRate(v Binary)

SetOutRate sets the value of the leaf OutRate in the Lag struct.

func (*Lag) Validate

func (t *Lag) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Lag) ΛBelongingModule

func (*Lag) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Lag.

func (*Lag) ΛEnumTypeMap

func (t *Lag) Λ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 (*Lag) ΛListKeyMap

func (t *Lag) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Lag struct, which is a YANG list entry.

func (*Lag) ΛValidate

func (t *Lag) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Lag_Counters

type Lag_Counters struct {
	InFrames      *uint64 `path:"in-frames" module:"open-traffic-generator-lag"`
	InOctets      *uint64 `path:"in-octets" module:"open-traffic-generator-lag"`
	MemberPortsUp *uint64 `path:"member-ports-up" module:"open-traffic-generator-lag"`
	OutFrames     *uint64 `path:"out-frames" module:"open-traffic-generator-lag"`
	OutOctets     *uint64 `path:"out-octets" module:"open-traffic-generator-lag"`
}

Lag_Counters represents the /open-traffic-generator-lag/lags/lag/state/counters YANG schema element.

func (*Lag_Counters) GetInFrames

func (t *Lag_Counters) GetInFrames() uint64

GetInFrames retrieves the value of the leaf InFrames from the Lag_Counters struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if InFrames is set, it can safely use t.GetInFrames() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.InFrames == nil' before retrieving the leaf's value.

func (*Lag_Counters) GetInOctets

func (t *Lag_Counters) GetInOctets() uint64

GetInOctets retrieves the value of the leaf InOctets from the Lag_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 (*Lag_Counters) GetMemberPortsUp

func (t *Lag_Counters) GetMemberPortsUp() uint64

GetMemberPortsUp retrieves the value of the leaf MemberPortsUp from the Lag_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 MemberPortsUp is set, it can safely use t.GetMemberPortsUp() 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.MemberPortsUp == nil' before retrieving the leaf's value.

func (*Lag_Counters) GetOutFrames

func (t *Lag_Counters) GetOutFrames() uint64

GetOutFrames retrieves the value of the leaf OutFrames from the Lag_Counters struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if OutFrames is set, it can safely use t.GetOutFrames() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.OutFrames == nil' before retrieving the leaf's value.

func (*Lag_Counters) GetOutOctets

func (t *Lag_Counters) GetOutOctets() uint64

GetOutOctets retrieves the value of the leaf OutOctets from the Lag_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 (*Lag_Counters) IsYANGGoStruct

func (*Lag_Counters) IsYANGGoStruct()

IsYANGGoStruct ensures that Lag_Counters implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Lag_Counters) PopulateDefaults

func (t *Lag_Counters) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Lag_Counters with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Lag_Counters) SetInFrames

func (t *Lag_Counters) SetInFrames(v uint64)

SetInFrames sets the value of the leaf InFrames in the Lag_Counters struct.

func (*Lag_Counters) SetInOctets

func (t *Lag_Counters) SetInOctets(v uint64)

SetInOctets sets the value of the leaf InOctets in the Lag_Counters struct.

func (*Lag_Counters) SetMemberPortsUp

func (t *Lag_Counters) SetMemberPortsUp(v uint64)

SetMemberPortsUp sets the value of the leaf MemberPortsUp in the Lag_Counters struct.

func (*Lag_Counters) SetOutFrames

func (t *Lag_Counters) SetOutFrames(v uint64)

SetOutFrames sets the value of the leaf OutFrames in the Lag_Counters struct.

func (*Lag_Counters) SetOutOctets

func (t *Lag_Counters) SetOutOctets(v uint64)

SetOutOctets sets the value of the leaf OutOctets in the Lag_Counters struct.

func (*Lag_Counters) Validate

func (t *Lag_Counters) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Lag_Counters) ΛBelongingModule

func (*Lag_Counters) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Lag_Counters.

func (*Lag_Counters) ΛEnumTypeMap

func (t *Lag_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 (*Lag_Counters) ΛValidate

func (t *Lag_Counters) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type LldpInterface

type LldpInterface struct {
	Counters             *LldpInterface_Counters             `path:"state/counters" module:"open-traffic-generator-lldp/open-traffic-generator-lldp"`
	LldpNeighborDatabase *LldpInterface_LldpNeighborDatabase `path:"state/lldp-neighbor-database" module:"open-traffic-generator-lldp/open-traffic-generator-lldp"`
	Name                 *string                             `` /* 178-byte string literal not displayed */
}

LldpInterface represents the /open-traffic-generator-lldp/lldps/lldp-interface YANG schema element.

func (*LldpInterface) GetCounters

func (t *LldpInterface) GetCounters() *LldpInterface_Counters

GetCounters returns the value of the Counters struct pointer from LldpInterface. If the receiver or the field Counters is nil, nil is returned such that the Get* methods can be safely chained.

func (*LldpInterface) GetLldpNeighborDatabase

func (t *LldpInterface) GetLldpNeighborDatabase() *LldpInterface_LldpNeighborDatabase

GetLldpNeighborDatabase returns the value of the LldpNeighborDatabase struct pointer from LldpInterface. If the receiver or the field LldpNeighborDatabase is nil, nil is returned such that the Get* methods can be safely chained.

func (*LldpInterface) GetName

func (t *LldpInterface) GetName() string

GetName retrieves the value of the leaf Name from the LldpInterface 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 (*LldpInterface) GetOrCreateCounters

func (t *LldpInterface) GetOrCreateCounters() *LldpInterface_Counters

GetOrCreateCounters retrieves the value of the Counters field or returns the existing field if it already exists.

func (*LldpInterface) GetOrCreateLldpNeighborDatabase

func (t *LldpInterface) GetOrCreateLldpNeighborDatabase() *LldpInterface_LldpNeighborDatabase

GetOrCreateLldpNeighborDatabase retrieves the value of the LldpNeighborDatabase field or returns the existing field if it already exists.

func (*LldpInterface) IsYANGGoStruct

func (*LldpInterface) IsYANGGoStruct()

IsYANGGoStruct ensures that LldpInterface implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*LldpInterface) PopulateDefaults

func (t *LldpInterface) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the LldpInterface with default values as specified in the YANG schema, instantiating any nil container fields.

func (*LldpInterface) SetName

func (t *LldpInterface) SetName(v string)

SetName sets the value of the leaf Name in the LldpInterface struct.

func (*LldpInterface) Validate

func (t *LldpInterface) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*LldpInterface) ΛBelongingModule

func (*LldpInterface) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of LldpInterface.

func (*LldpInterface) ΛEnumTypeMap

func (t *LldpInterface) Λ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 (*LldpInterface) ΛListKeyMap

func (t *LldpInterface) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the LldpInterface struct, which is a YANG list entry.

func (*LldpInterface) ΛValidate

func (t *LldpInterface) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type LldpInterface_Counters

type LldpInterface_Counters struct {
	FrameDiscard *uint64 `path:"frame-discard" module:"open-traffic-generator-lldp"`
	FrameErrorIn *uint64 `path:"frame-error-in" module:"open-traffic-generator-lldp"`
	FrameIn      *uint64 `path:"frame-in" module:"open-traffic-generator-lldp"`
	FrameOut     *uint64 `path:"frame-out" module:"open-traffic-generator-lldp"`
	TlvDiscard   *uint64 `path:"tlv-discard" module:"open-traffic-generator-lldp"`
	TlvUnknown   *uint64 `path:"tlv-unknown" module:"open-traffic-generator-lldp"`
}

LldpInterface_Counters represents the /open-traffic-generator-lldp/lldps/lldp-interface/state/counters YANG schema element.

func (*LldpInterface_Counters) GetFrameDiscard

func (t *LldpInterface_Counters) GetFrameDiscard() uint64

GetFrameDiscard retrieves the value of the leaf FrameDiscard from the LldpInterface_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 FrameDiscard is set, it can safely use t.GetFrameDiscard() 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.FrameDiscard == nil' before retrieving the leaf's value.

func (*LldpInterface_Counters) GetFrameErrorIn

func (t *LldpInterface_Counters) GetFrameErrorIn() uint64

GetFrameErrorIn retrieves the value of the leaf FrameErrorIn from the LldpInterface_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 FrameErrorIn is set, it can safely use t.GetFrameErrorIn() 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.FrameErrorIn == nil' before retrieving the leaf's value.

func (*LldpInterface_Counters) GetFrameIn

func (t *LldpInterface_Counters) GetFrameIn() uint64

GetFrameIn retrieves the value of the leaf FrameIn from the LldpInterface_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 FrameIn is set, it can safely use t.GetFrameIn() 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.FrameIn == nil' before retrieving the leaf's value.

func (*LldpInterface_Counters) GetFrameOut

func (t *LldpInterface_Counters) GetFrameOut() uint64

GetFrameOut retrieves the value of the leaf FrameOut from the LldpInterface_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 FrameOut is set, it can safely use t.GetFrameOut() 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.FrameOut == nil' before retrieving the leaf's value.

func (*LldpInterface_Counters) GetTlvDiscard

func (t *LldpInterface_Counters) GetTlvDiscard() uint64

GetTlvDiscard retrieves the value of the leaf TlvDiscard from the LldpInterface_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 TlvDiscard is set, it can safely use t.GetTlvDiscard() 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.TlvDiscard == nil' before retrieving the leaf's value.

func (*LldpInterface_Counters) GetTlvUnknown

func (t *LldpInterface_Counters) GetTlvUnknown() uint64

GetTlvUnknown retrieves the value of the leaf TlvUnknown from the LldpInterface_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 TlvUnknown is set, it can safely use t.GetTlvUnknown() 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.TlvUnknown == nil' before retrieving the leaf's value.

func (*LldpInterface_Counters) IsYANGGoStruct

func (*LldpInterface_Counters) IsYANGGoStruct()

IsYANGGoStruct ensures that LldpInterface_Counters implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*LldpInterface_Counters) PopulateDefaults

func (t *LldpInterface_Counters) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the LldpInterface_Counters with default values as specified in the YANG schema, instantiating any nil container fields.

func (*LldpInterface_Counters) SetFrameDiscard

func (t *LldpInterface_Counters) SetFrameDiscard(v uint64)

SetFrameDiscard sets the value of the leaf FrameDiscard in the LldpInterface_Counters struct.

func (*LldpInterface_Counters) SetFrameErrorIn

func (t *LldpInterface_Counters) SetFrameErrorIn(v uint64)

SetFrameErrorIn sets the value of the leaf FrameErrorIn in the LldpInterface_Counters struct.

func (*LldpInterface_Counters) SetFrameIn

func (t *LldpInterface_Counters) SetFrameIn(v uint64)

SetFrameIn sets the value of the leaf FrameIn in the LldpInterface_Counters struct.

func (*LldpInterface_Counters) SetFrameOut

func (t *LldpInterface_Counters) SetFrameOut(v uint64)

SetFrameOut sets the value of the leaf FrameOut in the LldpInterface_Counters struct.

func (*LldpInterface_Counters) SetTlvDiscard

func (t *LldpInterface_Counters) SetTlvDiscard(v uint64)

SetTlvDiscard sets the value of the leaf TlvDiscard in the LldpInterface_Counters struct.

func (*LldpInterface_Counters) SetTlvUnknown

func (t *LldpInterface_Counters) SetTlvUnknown(v uint64)

SetTlvUnknown sets the value of the leaf TlvUnknown in the LldpInterface_Counters struct.

func (*LldpInterface_Counters) Validate

func (t *LldpInterface_Counters) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*LldpInterface_Counters) ΛBelongingModule

func (*LldpInterface_Counters) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of LldpInterface_Counters.

func (*LldpInterface_Counters) ΛEnumTypeMap

func (t *LldpInterface_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 (*LldpInterface_Counters) ΛValidate

func (t *LldpInterface_Counters) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type LldpInterface_LldpNeighborDatabase

type LldpInterface_LldpNeighborDatabase struct {
	LldpNeighbor map[string]*LldpInterface_LldpNeighborDatabase_LldpNeighbor `path:"lldp-neighbors/lldp-neighbor" module:"open-traffic-generator-lldp/open-traffic-generator-lldp"`
}

LldpInterface_LldpNeighborDatabase represents the /open-traffic-generator-lldp/lldps/lldp-interface/state/lldp-neighbor-database YANG schema element.

func (*LldpInterface_LldpNeighborDatabase) AppendLldpNeighbor

AppendLldpNeighbor appends the supplied LldpInterface_LldpNeighborDatabase_LldpNeighbor struct to the list LldpNeighbor of LldpInterface_LldpNeighborDatabase. If the key value(s) specified in the supplied LldpInterface_LldpNeighborDatabase_LldpNeighbor already exist in the list, an error is returned.

func (*LldpInterface_LldpNeighborDatabase) DeleteLldpNeighbor

func (t *LldpInterface_LldpNeighborDatabase) DeleteLldpNeighbor(NeighborId string)

DeleteLldpNeighbor deletes the value with the specified keys from the receiver LldpInterface_LldpNeighborDatabase. If there is no such element, the function is a no-op.

func (*LldpInterface_LldpNeighborDatabase) GetLldpNeighbor

GetLldpNeighbor retrieves the value with the specified key from the LldpNeighbor map field of LldpInterface_LldpNeighborDatabase. 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 (*LldpInterface_LldpNeighborDatabase) GetOrCreateLldpNeighbor

GetOrCreateLldpNeighbor retrieves the value with the specified keys from the receiver LldpInterface_LldpNeighborDatabase. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*LldpInterface_LldpNeighborDatabase) GetOrCreateLldpNeighborMap added in v0.7.1

GetOrCreateLldpNeighborMap returns the list (map) from LldpInterface_LldpNeighborDatabase.

It initializes the field if not already initialized.

func (*LldpInterface_LldpNeighborDatabase) IsYANGGoStruct

func (*LldpInterface_LldpNeighborDatabase) IsYANGGoStruct()

IsYANGGoStruct ensures that LldpInterface_LldpNeighborDatabase implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*LldpInterface_LldpNeighborDatabase) NewLldpNeighbor

NewLldpNeighbor creates a new entry in the LldpNeighbor list of the LldpInterface_LldpNeighborDatabase struct. The keys of the list are populated from the input arguments.

func (*LldpInterface_LldpNeighborDatabase) PopulateDefaults

func (t *LldpInterface_LldpNeighborDatabase) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the LldpInterface_LldpNeighborDatabase with default values as specified in the YANG schema, instantiating any nil container fields.

func (*LldpInterface_LldpNeighborDatabase) RenameLldpNeighbor added in v0.4.3

func (t *LldpInterface_LldpNeighborDatabase) RenameLldpNeighbor(oldK, newK string) error

RenameLldpNeighbor renames an entry in the list LldpNeighbor within the LldpInterface_LldpNeighborDatabase struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*LldpInterface_LldpNeighborDatabase) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*LldpInterface_LldpNeighborDatabase) ΛBelongingModule

func (*LldpInterface_LldpNeighborDatabase) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of LldpInterface_LldpNeighborDatabase.

func (*LldpInterface_LldpNeighborDatabase) ΛEnumTypeMap

func (t *LldpInterface_LldpNeighborDatabase) Λ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 (*LldpInterface_LldpNeighborDatabase) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type LldpInterface_LldpNeighborDatabase_LldpNeighbor

type LldpInterface_LldpNeighborDatabase_LldpNeighbor struct {
	Age                   *uint32                                                                                                                      `path:"state/age" module:"open-traffic-generator-lldp/open-traffic-generator-lldp"`
	Capabilities          map[E_Capabilities_Name]*LldpInterface_LldpNeighborDatabase_LldpNeighbor_Capabilities                                        `path:"capabilities" module:"open-traffic-generator-lldp"`
	ChassisId             *string                                                                                                                      `path:"state/chassis-id" module:"open-traffic-generator-lldp/open-traffic-generator-lldp"`
	ChassisIdType         E_LldpNeighbor_ChassisIdType                                                                                                 `path:"state/chassis-id-type" module:"open-traffic-generator-lldp/open-traffic-generator-lldp"`
	CustomTlv             map[LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv_Key]*LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv `path:"custom-tlv" module:"open-traffic-generator-lldp"`
	LastUpdate            *uint32                                                                                                                      `path:"state/last_update" module:"open-traffic-generator-lldp/open-traffic-generator-lldp"`
	ManagementAddress     *string                                                                                                                      `path:"state/management-address" module:"open-traffic-generator-lldp/open-traffic-generator-lldp"`
	ManagementAddressType *string                                                                                                                      `path:"state/management-address-type" module:"open-traffic-generator-lldp/open-traffic-generator-lldp"`
	NeighborId            *string                                                                                                                      `` /* 199-byte string literal not displayed */
	PortDescription       *string                                                                                                                      `path:"state/port-description" module:"open-traffic-generator-lldp/open-traffic-generator-lldp"`
	PortId                *string                                                                                                                      `path:"state/port-id" module:"open-traffic-generator-lldp/open-traffic-generator-lldp"`
	PortIdType            E_LldpNeighbor_PortIdType                                                                                                    `path:"state/port-id-type" module:"open-traffic-generator-lldp/open-traffic-generator-lldp"`
	SystemDescription     *string                                                                                                                      `path:"state/system-description" module:"open-traffic-generator-lldp/open-traffic-generator-lldp"`
	SystemName            *string                                                                                                                      `path:"state/system-name" module:"open-traffic-generator-lldp/open-traffic-generator-lldp"`
	Ttl                   *uint32                                                                                                                      `path:"state/ttl" module:"open-traffic-generator-lldp/open-traffic-generator-lldp"`
}

LldpInterface_LldpNeighborDatabase_LldpNeighbor represents the /open-traffic-generator-lldp/lldps/lldp-interface/state/lldp-neighbor-database/lldp-neighbors/lldp-neighbor YANG schema element.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) AppendCapabilities

AppendCapabilities appends the supplied LldpInterface_LldpNeighborDatabase_LldpNeighbor_Capabilities struct to the list Capabilities of LldpInterface_LldpNeighborDatabase_LldpNeighbor. If the key value(s) specified in the supplied LldpInterface_LldpNeighborDatabase_LldpNeighbor_Capabilities already exist in the list, an error is returned.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) AppendCustomTlv

AppendCustomTlv appends the supplied LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv struct to the list CustomTlv of LldpInterface_LldpNeighborDatabase_LldpNeighbor. If the key value(s) specified in the supplied LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv already exist in the list, an error is returned.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) DeleteCapabilities

DeleteCapabilities deletes the value with the specified keys from the receiver LldpInterface_LldpNeighborDatabase_LldpNeighbor. If there is no such element, the function is a no-op.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) DeleteCustomTlv

func (t *LldpInterface_LldpNeighborDatabase_LldpNeighbor) DeleteCustomTlv(CustomType uint32, Oui string, OuiSubtype uint32)

DeleteCustomTlv deletes the value with the specified keys from the receiver LldpInterface_LldpNeighborDatabase_LldpNeighbor. If there is no such element, the function is a no-op.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) GetAge

GetAge retrieves the value of the leaf Age from the LldpInterface_LldpNeighborDatabase_LldpNeighbor 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 Age is set, it can safely use t.GetAge() 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.Age == nil' before retrieving the leaf's value.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) GetCapabilities

GetCapabilities retrieves the value with the specified key from the Capabilities map field of LldpInterface_LldpNeighborDatabase_LldpNeighbor. 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 (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) GetChassisId

GetChassisId retrieves the value of the leaf ChassisId from the LldpInterface_LldpNeighborDatabase_LldpNeighbor 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 ChassisId is set, it can safely use t.GetChassisId() 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.ChassisId == nil' before retrieving the leaf's value.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) GetChassisIdType

GetChassisIdType retrieves the value of the leaf ChassisIdType from the LldpInterface_LldpNeighborDatabase_LldpNeighbor 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 ChassisIdType is set, it can safely use t.GetChassisIdType() 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.ChassisIdType == nil' before retrieving the leaf's value.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) GetCustomTlv

GetCustomTlv retrieves the value with the specified key from the CustomTlv map field of LldpInterface_LldpNeighborDatabase_LldpNeighbor. 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 (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) GetLastUpdate

GetLastUpdate retrieves the value of the leaf LastUpdate from the LldpInterface_LldpNeighborDatabase_LldpNeighbor 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 LastUpdate is set, it can safely use t.GetLastUpdate() 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.LastUpdate == nil' before retrieving the leaf's value.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) GetManagementAddress

func (t *LldpInterface_LldpNeighborDatabase_LldpNeighbor) GetManagementAddress() string

GetManagementAddress retrieves the value of the leaf ManagementAddress from the LldpInterface_LldpNeighborDatabase_LldpNeighbor 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 ManagementAddress is set, it can safely use t.GetManagementAddress() 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.ManagementAddress == nil' before retrieving the leaf's value.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) GetManagementAddressType

func (t *LldpInterface_LldpNeighborDatabase_LldpNeighbor) GetManagementAddressType() string

GetManagementAddressType retrieves the value of the leaf ManagementAddressType from the LldpInterface_LldpNeighborDatabase_LldpNeighbor 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 ManagementAddressType is set, it can safely use t.GetManagementAddressType() 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.ManagementAddressType == nil' before retrieving the leaf's value.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) GetNeighborId

GetNeighborId retrieves the value of the leaf NeighborId from the LldpInterface_LldpNeighborDatabase_LldpNeighbor 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 NeighborId is set, it can safely use t.GetNeighborId() 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.NeighborId == nil' before retrieving the leaf's value.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) GetOrCreateCapabilities

GetOrCreateCapabilities retrieves the value with the specified keys from the receiver LldpInterface_LldpNeighborDatabase_LldpNeighbor. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) GetOrCreateCapabilitiesMap added in v0.7.1

GetOrCreateCapabilitiesMap returns the list (map) from LldpInterface_LldpNeighborDatabase_LldpNeighbor.

It initializes the field if not already initialized.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) GetOrCreateCustomTlv

GetOrCreateCustomTlv retrieves the value with the specified keys from the receiver LldpInterface_LldpNeighborDatabase_LldpNeighbor. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) GetOrCreateCustomTlvMap added in v0.7.1

GetOrCreateCustomTlvMap returns the list (map) from LldpInterface_LldpNeighborDatabase_LldpNeighbor.

It initializes the field if not already initialized.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) GetPortDescription

GetPortDescription retrieves the value of the leaf PortDescription from the LldpInterface_LldpNeighborDatabase_LldpNeighbor 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 PortDescription is set, it can safely use t.GetPortDescription() 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.PortDescription == nil' before retrieving the leaf's value.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) GetPortId

GetPortId retrieves the value of the leaf PortId from the LldpInterface_LldpNeighborDatabase_LldpNeighbor 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 PortId is set, it can safely use t.GetPortId() 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.PortId == nil' before retrieving the leaf's value.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) GetPortIdType

GetPortIdType retrieves the value of the leaf PortIdType from the LldpInterface_LldpNeighborDatabase_LldpNeighbor 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 PortIdType is set, it can safely use t.GetPortIdType() 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.PortIdType == nil' before retrieving the leaf's value.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) GetSystemDescription

func (t *LldpInterface_LldpNeighborDatabase_LldpNeighbor) GetSystemDescription() string

GetSystemDescription retrieves the value of the leaf SystemDescription from the LldpInterface_LldpNeighborDatabase_LldpNeighbor 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 SystemDescription is set, it can safely use t.GetSystemDescription() 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.SystemDescription == nil' before retrieving the leaf's value.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) GetSystemName

GetSystemName retrieves the value of the leaf SystemName from the LldpInterface_LldpNeighborDatabase_LldpNeighbor 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 SystemName is set, it can safely use t.GetSystemName() 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.SystemName == nil' before retrieving the leaf's value.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) GetTtl

GetTtl retrieves the value of the leaf Ttl from the LldpInterface_LldpNeighborDatabase_LldpNeighbor 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 Ttl is set, it can safely use t.GetTtl() 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.Ttl == nil' before retrieving the leaf's value.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) IsYANGGoStruct

IsYANGGoStruct ensures that LldpInterface_LldpNeighborDatabase_LldpNeighbor implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) NewCapabilities

NewCapabilities creates a new entry in the Capabilities list of the LldpInterface_LldpNeighborDatabase_LldpNeighbor struct. The keys of the list are populated from the input arguments.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) NewCustomTlv

NewCustomTlv creates a new entry in the CustomTlv list of the LldpInterface_LldpNeighborDatabase_LldpNeighbor struct. The keys of the list are populated from the input arguments.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the LldpInterface_LldpNeighborDatabase_LldpNeighbor with default values as specified in the YANG schema, instantiating any nil container fields.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) RenameCapabilities added in v0.4.3

RenameCapabilities renames an entry in the list Capabilities within the LldpInterface_LldpNeighborDatabase_LldpNeighbor struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) RenameCustomTlv added in v0.4.3

RenameCustomTlv renames an entry in the list CustomTlv within the LldpInterface_LldpNeighborDatabase_LldpNeighbor struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) SetAge

SetAge sets the value of the leaf Age in the LldpInterface_LldpNeighborDatabase_LldpNeighbor struct.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) SetChassisId

SetChassisId sets the value of the leaf ChassisId in the LldpInterface_LldpNeighborDatabase_LldpNeighbor struct.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) SetChassisIdType

SetChassisIdType sets the value of the leaf ChassisIdType in the LldpInterface_LldpNeighborDatabase_LldpNeighbor struct.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) SetLastUpdate

SetLastUpdate sets the value of the leaf LastUpdate in the LldpInterface_LldpNeighborDatabase_LldpNeighbor struct.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) SetManagementAddress

func (t *LldpInterface_LldpNeighborDatabase_LldpNeighbor) SetManagementAddress(v string)

SetManagementAddress sets the value of the leaf ManagementAddress in the LldpInterface_LldpNeighborDatabase_LldpNeighbor struct.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) SetManagementAddressType

func (t *LldpInterface_LldpNeighborDatabase_LldpNeighbor) SetManagementAddressType(v string)

SetManagementAddressType sets the value of the leaf ManagementAddressType in the LldpInterface_LldpNeighborDatabase_LldpNeighbor struct.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) SetNeighborId

SetNeighborId sets the value of the leaf NeighborId in the LldpInterface_LldpNeighborDatabase_LldpNeighbor struct.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) SetPortDescription

SetPortDescription sets the value of the leaf PortDescription in the LldpInterface_LldpNeighborDatabase_LldpNeighbor struct.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) SetPortId

SetPortId sets the value of the leaf PortId in the LldpInterface_LldpNeighborDatabase_LldpNeighbor struct.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) SetPortIdType

SetPortIdType sets the value of the leaf PortIdType in the LldpInterface_LldpNeighborDatabase_LldpNeighbor struct.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) SetSystemDescription

func (t *LldpInterface_LldpNeighborDatabase_LldpNeighbor) SetSystemDescription(v string)

SetSystemDescription sets the value of the leaf SystemDescription in the LldpInterface_LldpNeighborDatabase_LldpNeighbor struct.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) SetSystemName

SetSystemName sets the value of the leaf SystemName in the LldpInterface_LldpNeighborDatabase_LldpNeighbor struct.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) SetTtl

SetTtl sets the value of the leaf Ttl in the LldpInterface_LldpNeighborDatabase_LldpNeighbor struct.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) ΛBelongingModule

ΛBelongingModule returns the name of the module that defines the namespace of LldpInterface_LldpNeighborDatabase_LldpNeighbor.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) ΛEnumTypeMap

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) ΛListKeyMap

func (t *LldpInterface_LldpNeighborDatabase_LldpNeighbor) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the LldpInterface_LldpNeighborDatabase_LldpNeighbor struct, which is a YANG list entry.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type LldpInterface_LldpNeighborDatabase_LldpNeighbor_Capabilities

type LldpInterface_LldpNeighborDatabase_LldpNeighbor_Capabilities struct {
	Enabled *bool               `path:"state/enabled" module:"open-traffic-generator-lldp/open-traffic-generator-lldp"`
	Name    E_Capabilities_Name `` /* 178-byte string literal not displayed */
}

LldpInterface_LldpNeighborDatabase_LldpNeighbor_Capabilities represents the /open-traffic-generator-lldp/lldps/lldp-interface/state/lldp-neighbor-database/lldp-neighbors/lldp-neighbor/capabilities YANG schema element.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor_Capabilities) GetEnabled

GetEnabled retrieves the value of the leaf Enabled from the LldpInterface_LldpNeighborDatabase_LldpNeighbor_Capabilities 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 (*LldpInterface_LldpNeighborDatabase_LldpNeighbor_Capabilities) GetName

GetName retrieves the value of the leaf Name from the LldpInterface_LldpNeighborDatabase_LldpNeighbor_Capabilities 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 (*LldpInterface_LldpNeighborDatabase_LldpNeighbor_Capabilities) IsYANGGoStruct

IsYANGGoStruct ensures that LldpInterface_LldpNeighborDatabase_LldpNeighbor_Capabilities implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor_Capabilities) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the LldpInterface_LldpNeighborDatabase_LldpNeighbor_Capabilities with default values as specified in the YANG schema, instantiating any nil container fields.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor_Capabilities) SetEnabled

SetEnabled sets the value of the leaf Enabled in the LldpInterface_LldpNeighborDatabase_LldpNeighbor_Capabilities struct.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor_Capabilities) SetName

SetName sets the value of the leaf Name in the LldpInterface_LldpNeighborDatabase_LldpNeighbor_Capabilities struct.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor_Capabilities) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor_Capabilities) ΛBelongingModule

ΛBelongingModule returns the name of the module that defines the namespace of LldpInterface_LldpNeighborDatabase_LldpNeighbor_Capabilities.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor_Capabilities) ΛEnumTypeMap

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor_Capabilities) ΛListKeyMap

func (t *LldpInterface_LldpNeighborDatabase_LldpNeighbor_Capabilities) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the LldpInterface_LldpNeighborDatabase_LldpNeighbor_Capabilities struct, which is a YANG list entry.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor_Capabilities) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv

type LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv struct {
	CustomType *uint32 `` /* 199-byte string literal not displayed */
	Oui        *string `` /* 175-byte string literal not displayed */
	OuiSubtype *uint32 `` /* 199-byte string literal not displayed */
}

LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv represents the /open-traffic-generator-lldp/lldps/lldp-interface/state/lldp-neighbor-database/lldp-neighbors/lldp-neighbor/custom-tlv YANG schema element.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv) GetCustomType

GetCustomType retrieves the value of the leaf CustomType from the LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv 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 CustomType is set, it can safely use t.GetCustomType() 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.CustomType == nil' before retrieving the leaf's value.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv) GetOui

GetOui retrieves the value of the leaf Oui from the LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv 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 Oui is set, it can safely use t.GetOui() 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.Oui == nil' before retrieving the leaf's value.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv) GetOuiSubtype

GetOuiSubtype retrieves the value of the leaf OuiSubtype from the LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv 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 OuiSubtype is set, it can safely use t.GetOuiSubtype() 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.OuiSubtype == nil' before retrieving the leaf's value.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv) IsYANGGoStruct

IsYANGGoStruct ensures that LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv with default values as specified in the YANG schema, instantiating any nil container fields.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv) SetCustomType

SetCustomType sets the value of the leaf CustomType in the LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv struct.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv) SetOui

SetOui sets the value of the leaf Oui in the LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv struct.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv) SetOuiSubtype

SetOuiSubtype sets the value of the leaf OuiSubtype in the LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv struct.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv) ΛBelongingModule

ΛBelongingModule returns the name of the module that defines the namespace of LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv) ΛEnumTypeMap

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv) ΛListKeyMap

func (t *LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv struct, which is a YANG list entry.

func (*LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv_Key

type LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv_Key struct {
	CustomType uint32 `path:"custom-type"`
	Oui        string `path:"oui"`
	OuiSubtype uint32 `path:"oui-subtype"`
}

LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv_Key represents the key for list CustomTlv of element /open-traffic-generator-lldp/lldps/lldp-interface/state/lldp-neighbor-database/lldp-neighbors/lldp-neighbor.

func (LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv_Key) IsYANGGoKeyStruct

IsYANGGoKeyStruct ensures that LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv_Key partially implements the yang.GoKeyStruct interface. This allows functions that need to handle this key struct to identify it as being generated by gogen.

func (LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv_Key) ΛListKeyMap

ΛListKeyMap returns the values of the LldpInterface_LldpNeighborDatabase_LldpNeighbor_CustomTlv_Key key struct.

type Ospfv2Router added in v0.7.1

type Ospfv2Router struct {
	Counters          *Ospfv2Router_Counters          `path:"state/counters" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	LinkStateDatabase *Ospfv2Router_LinkStateDatabase `path:"state/link-state-database" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	Name              *string                         `` /* 186-byte string literal not displayed */
}

Ospfv2Router represents the /open-traffic-generator-ospfv2/ospfv2-routers/ospfv2-router YANG schema element.

func (*Ospfv2Router) GetCounters added in v0.7.1

func (t *Ospfv2Router) GetCounters() *Ospfv2Router_Counters

GetCounters returns the value of the Counters struct pointer from Ospfv2Router. If the receiver or the field Counters is nil, nil is returned such that the Get* methods can be safely chained.

func (*Ospfv2Router) GetLinkStateDatabase added in v0.7.1

func (t *Ospfv2Router) GetLinkStateDatabase() *Ospfv2Router_LinkStateDatabase

GetLinkStateDatabase returns the value of the LinkStateDatabase struct pointer from Ospfv2Router. If the receiver or the field LinkStateDatabase is nil, nil is returned such that the Get* methods can be safely chained.

func (*Ospfv2Router) GetName added in v0.7.1

func (t *Ospfv2Router) GetName() string

GetName retrieves the value of the leaf Name from the Ospfv2Router 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 (*Ospfv2Router) GetOrCreateCounters added in v0.7.1

func (t *Ospfv2Router) GetOrCreateCounters() *Ospfv2Router_Counters

GetOrCreateCounters retrieves the value of the Counters field or returns the existing field if it already exists.

func (*Ospfv2Router) GetOrCreateLinkStateDatabase added in v0.7.1

func (t *Ospfv2Router) GetOrCreateLinkStateDatabase() *Ospfv2Router_LinkStateDatabase

GetOrCreateLinkStateDatabase retrieves the value of the LinkStateDatabase field or returns the existing field if it already exists.

func (*Ospfv2Router) IsYANGGoStruct added in v0.7.1

func (*Ospfv2Router) IsYANGGoStruct()

IsYANGGoStruct ensures that Ospfv2Router implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ospfv2Router) PopulateDefaults added in v0.7.1

func (t *Ospfv2Router) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Ospfv2Router with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Ospfv2Router) SetName added in v0.7.1

func (t *Ospfv2Router) SetName(v string)

SetName sets the value of the leaf Name in the Ospfv2Router struct.

func (*Ospfv2Router) Validate added in v0.7.1

func (t *Ospfv2Router) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Ospfv2Router) ΛBelongingModule added in v0.7.1

func (*Ospfv2Router) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Ospfv2Router.

func (*Ospfv2Router) ΛEnumTypeMap added in v0.7.1

func (t *Ospfv2Router) Λ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 (*Ospfv2Router) ΛListKeyMap added in v0.7.1

func (t *Ospfv2Router) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Ospfv2Router struct, which is a YANG list entry.

func (*Ospfv2Router) ΛValidate added in v0.7.1

func (t *Ospfv2Router) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Ospfv2Router_Counters added in v0.7.1

type Ospfv2Router_Counters struct {
	InDbds          *uint64 `path:"in-dbds" module:"open-traffic-generator-ospfv2"`
	InExternalLsas  *uint64 `path:"in-external-lsas" module:"open-traffic-generator-ospfv2"`
	InHellos        *uint64 `path:"in-hellos" module:"open-traffic-generator-ospfv2"`
	InLsAcks        *uint64 `path:"in-ls-acks" module:"open-traffic-generator-ospfv2"`
	InLsRequests    *uint64 `path:"in-ls-requests" module:"open-traffic-generator-ospfv2"`
	InLsUpdates     *uint64 `path:"in-ls-updates" module:"open-traffic-generator-ospfv2"`
	InLsaAcks       *uint64 `path:"in-lsa-acks" module:"open-traffic-generator-ospfv2"`
	InLsas          *uint64 `path:"in-lsas" module:"open-traffic-generator-ospfv2"`
	InNssaLsas      *uint64 `path:"in-nssa-lsas" module:"open-traffic-generator-ospfv2"`
	InRouterLsas    *uint64 `path:"in-router-lsas" module:"open-traffic-generator-ospfv2"`
	InSummaryLsas   *uint64 `path:"in-summary-lsas" module:"open-traffic-generator-ospfv2"`
	OutDbds         *uint64 `path:"out-dbds" module:"open-traffic-generator-ospfv2"`
	OutExternalLsas *uint64 `path:"out-external-lsas" module:"open-traffic-generator-ospfv2"`
	OutHellos       *uint64 `path:"out-hellos" module:"open-traffic-generator-ospfv2"`
	OutLsAcks       *uint64 `path:"out-ls-acks" module:"open-traffic-generator-ospfv2"`
	OutLsRequests   *uint64 `path:"out-ls-requests" module:"open-traffic-generator-ospfv2"`
	OutLsUpdates    *uint64 `path:"out-ls-updates" module:"open-traffic-generator-ospfv2"`
	OutLsaAcks      *uint64 `path:"out-lsa-acks" module:"open-traffic-generator-ospfv2"`
	OutLsas         *uint64 `path:"out-lsas" module:"open-traffic-generator-ospfv2"`
	OutNssaLsas     *uint64 `path:"out-nssa-lsas" module:"open-traffic-generator-ospfv2"`
	OutRouterLsas   *uint64 `path:"out-router-lsas" module:"open-traffic-generator-ospfv2"`
	OutSummaryLsas  *uint64 `path:"out-summary-lsas" module:"open-traffic-generator-ospfv2"`
	SessionsDown    *uint64 `path:"sessions-down" module:"open-traffic-generator-ospfv2"`
	SessionsFlap    *uint64 `path:"sessions-flap" module:"open-traffic-generator-ospfv2"`
	SessionsUp      *uint64 `path:"sessions-up" module:"open-traffic-generator-ospfv2"`
}

Ospfv2Router_Counters represents the /open-traffic-generator-ospfv2/ospfv2-routers/ospfv2-router/state/counters YANG schema element.

func (*Ospfv2Router_Counters) GetInDbds added in v0.7.1

func (t *Ospfv2Router_Counters) GetInDbds() uint64

GetInDbds retrieves the value of the leaf InDbds from the Ospfv2Router_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 InDbds is set, it can safely use t.GetInDbds() 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.InDbds == nil' before retrieving the leaf's value.

func (*Ospfv2Router_Counters) GetInExternalLsas added in v0.7.1

func (t *Ospfv2Router_Counters) GetInExternalLsas() uint64

GetInExternalLsas retrieves the value of the leaf InExternalLsas from the Ospfv2Router_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 InExternalLsas is set, it can safely use t.GetInExternalLsas() 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.InExternalLsas == nil' before retrieving the leaf's value.

func (*Ospfv2Router_Counters) GetInHellos added in v0.7.1

func (t *Ospfv2Router_Counters) GetInHellos() uint64

GetInHellos retrieves the value of the leaf InHellos from the Ospfv2Router_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 InHellos is set, it can safely use t.GetInHellos() 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.InHellos == nil' before retrieving the leaf's value.

func (*Ospfv2Router_Counters) GetInLsAcks added in v0.7.1

func (t *Ospfv2Router_Counters) GetInLsAcks() uint64

GetInLsAcks retrieves the value of the leaf InLsAcks from the Ospfv2Router_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 InLsAcks is set, it can safely use t.GetInLsAcks() 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.InLsAcks == nil' before retrieving the leaf's value.

func (*Ospfv2Router_Counters) GetInLsRequests added in v0.7.1

func (t *Ospfv2Router_Counters) GetInLsRequests() uint64

GetInLsRequests retrieves the value of the leaf InLsRequests from the Ospfv2Router_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 InLsRequests is set, it can safely use t.GetInLsRequests() 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.InLsRequests == nil' before retrieving the leaf's value.

func (*Ospfv2Router_Counters) GetInLsUpdates added in v0.7.1

func (t *Ospfv2Router_Counters) GetInLsUpdates() uint64

GetInLsUpdates retrieves the value of the leaf InLsUpdates from the Ospfv2Router_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 InLsUpdates is set, it can safely use t.GetInLsUpdates() 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.InLsUpdates == nil' before retrieving the leaf's value.

func (*Ospfv2Router_Counters) GetInLsaAcks added in v0.7.1

func (t *Ospfv2Router_Counters) GetInLsaAcks() uint64

GetInLsaAcks retrieves the value of the leaf InLsaAcks from the Ospfv2Router_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 InLsaAcks is set, it can safely use t.GetInLsaAcks() 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.InLsaAcks == nil' before retrieving the leaf's value.

func (*Ospfv2Router_Counters) GetInLsas added in v0.7.1

func (t *Ospfv2Router_Counters) GetInLsas() uint64

GetInLsas retrieves the value of the leaf InLsas from the Ospfv2Router_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 InLsas is set, it can safely use t.GetInLsas() 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.InLsas == nil' before retrieving the leaf's value.

func (*Ospfv2Router_Counters) GetInNssaLsas added in v0.7.1

func (t *Ospfv2Router_Counters) GetInNssaLsas() uint64

GetInNssaLsas retrieves the value of the leaf InNssaLsas from the Ospfv2Router_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 InNssaLsas is set, it can safely use t.GetInNssaLsas() 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.InNssaLsas == nil' before retrieving the leaf's value.

func (*Ospfv2Router_Counters) GetInRouterLsas added in v0.7.1

func (t *Ospfv2Router_Counters) GetInRouterLsas() uint64

GetInRouterLsas retrieves the value of the leaf InRouterLsas from the Ospfv2Router_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 InRouterLsas is set, it can safely use t.GetInRouterLsas() 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.InRouterLsas == nil' before retrieving the leaf's value.

func (*Ospfv2Router_Counters) GetInSummaryLsas added in v0.7.1

func (t *Ospfv2Router_Counters) GetInSummaryLsas() uint64

GetInSummaryLsas retrieves the value of the leaf InSummaryLsas from the Ospfv2Router_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 InSummaryLsas is set, it can safely use t.GetInSummaryLsas() 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.InSummaryLsas == nil' before retrieving the leaf's value.

func (*Ospfv2Router_Counters) GetOutDbds added in v0.7.1

func (t *Ospfv2Router_Counters) GetOutDbds() uint64

GetOutDbds retrieves the value of the leaf OutDbds from the Ospfv2Router_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 OutDbds is set, it can safely use t.GetOutDbds() 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.OutDbds == nil' before retrieving the leaf's value.

func (*Ospfv2Router_Counters) GetOutExternalLsas added in v0.7.1

func (t *Ospfv2Router_Counters) GetOutExternalLsas() uint64

GetOutExternalLsas retrieves the value of the leaf OutExternalLsas from the Ospfv2Router_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 OutExternalLsas is set, it can safely use t.GetOutExternalLsas() 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.OutExternalLsas == nil' before retrieving the leaf's value.

func (*Ospfv2Router_Counters) GetOutHellos added in v0.7.1

func (t *Ospfv2Router_Counters) GetOutHellos() uint64

GetOutHellos retrieves the value of the leaf OutHellos from the Ospfv2Router_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 OutHellos is set, it can safely use t.GetOutHellos() 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.OutHellos == nil' before retrieving the leaf's value.

func (*Ospfv2Router_Counters) GetOutLsAcks added in v0.7.1

func (t *Ospfv2Router_Counters) GetOutLsAcks() uint64

GetOutLsAcks retrieves the value of the leaf OutLsAcks from the Ospfv2Router_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 OutLsAcks is set, it can safely use t.GetOutLsAcks() 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.OutLsAcks == nil' before retrieving the leaf's value.

func (*Ospfv2Router_Counters) GetOutLsRequests added in v0.7.1

func (t *Ospfv2Router_Counters) GetOutLsRequests() uint64

GetOutLsRequests retrieves the value of the leaf OutLsRequests from the Ospfv2Router_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 OutLsRequests is set, it can safely use t.GetOutLsRequests() 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.OutLsRequests == nil' before retrieving the leaf's value.

func (*Ospfv2Router_Counters) GetOutLsUpdates added in v0.7.1

func (t *Ospfv2Router_Counters) GetOutLsUpdates() uint64

GetOutLsUpdates retrieves the value of the leaf OutLsUpdates from the Ospfv2Router_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 OutLsUpdates is set, it can safely use t.GetOutLsUpdates() 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.OutLsUpdates == nil' before retrieving the leaf's value.

func (*Ospfv2Router_Counters) GetOutLsaAcks added in v0.7.1

func (t *Ospfv2Router_Counters) GetOutLsaAcks() uint64

GetOutLsaAcks retrieves the value of the leaf OutLsaAcks from the Ospfv2Router_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 OutLsaAcks is set, it can safely use t.GetOutLsaAcks() 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.OutLsaAcks == nil' before retrieving the leaf's value.

func (*Ospfv2Router_Counters) GetOutLsas added in v0.7.1

func (t *Ospfv2Router_Counters) GetOutLsas() uint64

GetOutLsas retrieves the value of the leaf OutLsas from the Ospfv2Router_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 OutLsas is set, it can safely use t.GetOutLsas() 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.OutLsas == nil' before retrieving the leaf's value.

func (*Ospfv2Router_Counters) GetOutNssaLsas added in v0.7.1

func (t *Ospfv2Router_Counters) GetOutNssaLsas() uint64

GetOutNssaLsas retrieves the value of the leaf OutNssaLsas from the Ospfv2Router_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 OutNssaLsas is set, it can safely use t.GetOutNssaLsas() 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.OutNssaLsas == nil' before retrieving the leaf's value.

func (*Ospfv2Router_Counters) GetOutRouterLsas added in v0.7.1

func (t *Ospfv2Router_Counters) GetOutRouterLsas() uint64

GetOutRouterLsas retrieves the value of the leaf OutRouterLsas from the Ospfv2Router_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 OutRouterLsas is set, it can safely use t.GetOutRouterLsas() 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.OutRouterLsas == nil' before retrieving the leaf's value.

func (*Ospfv2Router_Counters) GetOutSummaryLsas added in v0.7.1

func (t *Ospfv2Router_Counters) GetOutSummaryLsas() uint64

GetOutSummaryLsas retrieves the value of the leaf OutSummaryLsas from the Ospfv2Router_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 OutSummaryLsas is set, it can safely use t.GetOutSummaryLsas() 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.OutSummaryLsas == nil' before retrieving the leaf's value.

func (*Ospfv2Router_Counters) GetSessionsDown added in v0.7.1

func (t *Ospfv2Router_Counters) GetSessionsDown() uint64

GetSessionsDown retrieves the value of the leaf SessionsDown from the Ospfv2Router_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 SessionsDown is set, it can safely use t.GetSessionsDown() 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.SessionsDown == nil' before retrieving the leaf's value.

func (*Ospfv2Router_Counters) GetSessionsFlap added in v0.7.1

func (t *Ospfv2Router_Counters) GetSessionsFlap() uint64

GetSessionsFlap retrieves the value of the leaf SessionsFlap from the Ospfv2Router_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 SessionsFlap is set, it can safely use t.GetSessionsFlap() 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.SessionsFlap == nil' before retrieving the leaf's value.

func (*Ospfv2Router_Counters) GetSessionsUp added in v0.7.1

func (t *Ospfv2Router_Counters) GetSessionsUp() uint64

GetSessionsUp retrieves the value of the leaf SessionsUp from the Ospfv2Router_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 SessionsUp is set, it can safely use t.GetSessionsUp() 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.SessionsUp == nil' before retrieving the leaf's value.

func (*Ospfv2Router_Counters) IsYANGGoStruct added in v0.7.1

func (*Ospfv2Router_Counters) IsYANGGoStruct()

IsYANGGoStruct ensures that Ospfv2Router_Counters implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ospfv2Router_Counters) PopulateDefaults added in v0.7.1

func (t *Ospfv2Router_Counters) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Ospfv2Router_Counters with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Ospfv2Router_Counters) SetInDbds added in v0.7.1

func (t *Ospfv2Router_Counters) SetInDbds(v uint64)

SetInDbds sets the value of the leaf InDbds in the Ospfv2Router_Counters struct.

func (*Ospfv2Router_Counters) SetInExternalLsas added in v0.7.1

func (t *Ospfv2Router_Counters) SetInExternalLsas(v uint64)

SetInExternalLsas sets the value of the leaf InExternalLsas in the Ospfv2Router_Counters struct.

func (*Ospfv2Router_Counters) SetInHellos added in v0.7.1

func (t *Ospfv2Router_Counters) SetInHellos(v uint64)

SetInHellos sets the value of the leaf InHellos in the Ospfv2Router_Counters struct.

func (*Ospfv2Router_Counters) SetInLsAcks added in v0.7.1

func (t *Ospfv2Router_Counters) SetInLsAcks(v uint64)

SetInLsAcks sets the value of the leaf InLsAcks in the Ospfv2Router_Counters struct.

func (*Ospfv2Router_Counters) SetInLsRequests added in v0.7.1

func (t *Ospfv2Router_Counters) SetInLsRequests(v uint64)

SetInLsRequests sets the value of the leaf InLsRequests in the Ospfv2Router_Counters struct.

func (*Ospfv2Router_Counters) SetInLsUpdates added in v0.7.1

func (t *Ospfv2Router_Counters) SetInLsUpdates(v uint64)

SetInLsUpdates sets the value of the leaf InLsUpdates in the Ospfv2Router_Counters struct.

func (*Ospfv2Router_Counters) SetInLsaAcks added in v0.7.1

func (t *Ospfv2Router_Counters) SetInLsaAcks(v uint64)

SetInLsaAcks sets the value of the leaf InLsaAcks in the Ospfv2Router_Counters struct.

func (*Ospfv2Router_Counters) SetInLsas added in v0.7.1

func (t *Ospfv2Router_Counters) SetInLsas(v uint64)

SetInLsas sets the value of the leaf InLsas in the Ospfv2Router_Counters struct.

func (*Ospfv2Router_Counters) SetInNssaLsas added in v0.7.1

func (t *Ospfv2Router_Counters) SetInNssaLsas(v uint64)

SetInNssaLsas sets the value of the leaf InNssaLsas in the Ospfv2Router_Counters struct.

func (*Ospfv2Router_Counters) SetInRouterLsas added in v0.7.1

func (t *Ospfv2Router_Counters) SetInRouterLsas(v uint64)

SetInRouterLsas sets the value of the leaf InRouterLsas in the Ospfv2Router_Counters struct.

func (*Ospfv2Router_Counters) SetInSummaryLsas added in v0.7.1

func (t *Ospfv2Router_Counters) SetInSummaryLsas(v uint64)

SetInSummaryLsas sets the value of the leaf InSummaryLsas in the Ospfv2Router_Counters struct.

func (*Ospfv2Router_Counters) SetOutDbds added in v0.7.1

func (t *Ospfv2Router_Counters) SetOutDbds(v uint64)

SetOutDbds sets the value of the leaf OutDbds in the Ospfv2Router_Counters struct.

func (*Ospfv2Router_Counters) SetOutExternalLsas added in v0.7.1

func (t *Ospfv2Router_Counters) SetOutExternalLsas(v uint64)

SetOutExternalLsas sets the value of the leaf OutExternalLsas in the Ospfv2Router_Counters struct.

func (*Ospfv2Router_Counters) SetOutHellos added in v0.7.1

func (t *Ospfv2Router_Counters) SetOutHellos(v uint64)

SetOutHellos sets the value of the leaf OutHellos in the Ospfv2Router_Counters struct.

func (*Ospfv2Router_Counters) SetOutLsAcks added in v0.7.1

func (t *Ospfv2Router_Counters) SetOutLsAcks(v uint64)

SetOutLsAcks sets the value of the leaf OutLsAcks in the Ospfv2Router_Counters struct.

func (*Ospfv2Router_Counters) SetOutLsRequests added in v0.7.1

func (t *Ospfv2Router_Counters) SetOutLsRequests(v uint64)

SetOutLsRequests sets the value of the leaf OutLsRequests in the Ospfv2Router_Counters struct.

func (*Ospfv2Router_Counters) SetOutLsUpdates added in v0.7.1

func (t *Ospfv2Router_Counters) SetOutLsUpdates(v uint64)

SetOutLsUpdates sets the value of the leaf OutLsUpdates in the Ospfv2Router_Counters struct.

func (*Ospfv2Router_Counters) SetOutLsaAcks added in v0.7.1

func (t *Ospfv2Router_Counters) SetOutLsaAcks(v uint64)

SetOutLsaAcks sets the value of the leaf OutLsaAcks in the Ospfv2Router_Counters struct.

func (*Ospfv2Router_Counters) SetOutLsas added in v0.7.1

func (t *Ospfv2Router_Counters) SetOutLsas(v uint64)

SetOutLsas sets the value of the leaf OutLsas in the Ospfv2Router_Counters struct.

func (*Ospfv2Router_Counters) SetOutNssaLsas added in v0.7.1

func (t *Ospfv2Router_Counters) SetOutNssaLsas(v uint64)

SetOutNssaLsas sets the value of the leaf OutNssaLsas in the Ospfv2Router_Counters struct.

func (*Ospfv2Router_Counters) SetOutRouterLsas added in v0.7.1

func (t *Ospfv2Router_Counters) SetOutRouterLsas(v uint64)

SetOutRouterLsas sets the value of the leaf OutRouterLsas in the Ospfv2Router_Counters struct.

func (*Ospfv2Router_Counters) SetOutSummaryLsas added in v0.7.1

func (t *Ospfv2Router_Counters) SetOutSummaryLsas(v uint64)

SetOutSummaryLsas sets the value of the leaf OutSummaryLsas in the Ospfv2Router_Counters struct.

func (*Ospfv2Router_Counters) SetSessionsDown added in v0.7.1

func (t *Ospfv2Router_Counters) SetSessionsDown(v uint64)

SetSessionsDown sets the value of the leaf SessionsDown in the Ospfv2Router_Counters struct.

func (*Ospfv2Router_Counters) SetSessionsFlap added in v0.7.1

func (t *Ospfv2Router_Counters) SetSessionsFlap(v uint64)

SetSessionsFlap sets the value of the leaf SessionsFlap in the Ospfv2Router_Counters struct.

func (*Ospfv2Router_Counters) SetSessionsUp added in v0.7.1

func (t *Ospfv2Router_Counters) SetSessionsUp(v uint64)

SetSessionsUp sets the value of the leaf SessionsUp in the Ospfv2Router_Counters struct.

func (*Ospfv2Router_Counters) Validate added in v0.7.1

func (t *Ospfv2Router_Counters) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Ospfv2Router_Counters) ΛBelongingModule added in v0.7.1

func (*Ospfv2Router_Counters) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Ospfv2Router_Counters.

func (*Ospfv2Router_Counters) ΛEnumTypeMap added in v0.7.1

func (t *Ospfv2Router_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 (*Ospfv2Router_Counters) ΛValidate added in v0.7.1

func (t *Ospfv2Router_Counters) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Ospfv2Router_LinkStateDatabase added in v0.7.1

type Ospfv2Router_LinkStateDatabase struct {
	LsaStates *Ospfv2Router_LinkStateDatabase_LsaStates `path:"lsa-states" module:"open-traffic-generator-ospfv2"`
}

Ospfv2Router_LinkStateDatabase represents the /open-traffic-generator-ospfv2/ospfv2-routers/ospfv2-router/state/link-state-database YANG schema element.

func (*Ospfv2Router_LinkStateDatabase) GetLsaStates added in v0.7.1

GetLsaStates returns the value of the LsaStates struct pointer from Ospfv2Router_LinkStateDatabase. If the receiver or the field LsaStates is nil, nil is returned such that the Get* methods can be safely chained.

func (*Ospfv2Router_LinkStateDatabase) GetOrCreateLsaStates added in v0.7.1

GetOrCreateLsaStates retrieves the value of the LsaStates field or returns the existing field if it already exists.

func (*Ospfv2Router_LinkStateDatabase) IsYANGGoStruct added in v0.7.1

func (*Ospfv2Router_LinkStateDatabase) IsYANGGoStruct()

IsYANGGoStruct ensures that Ospfv2Router_LinkStateDatabase implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ospfv2Router_LinkStateDatabase) PopulateDefaults added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Ospfv2Router_LinkStateDatabase with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Ospfv2Router_LinkStateDatabase) Validate added in v0.7.1

Validate validates s against the YANG schema corresponding to its type.

func (*Ospfv2Router_LinkStateDatabase) ΛBelongingModule added in v0.7.1

func (*Ospfv2Router_LinkStateDatabase) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Ospfv2Router_LinkStateDatabase.

func (*Ospfv2Router_LinkStateDatabase) ΛEnumTypeMap added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase) Λ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 (*Ospfv2Router_LinkStateDatabase) ΛValidate added in v0.7.1

Validate validates s against the YANG schema corresponding to its type.

type Ospfv2Router_LinkStateDatabase_LsaStates added in v0.7.1

type Ospfv2Router_LinkStateDatabase_LsaStates struct {
	ExternalAsLsa     map[string]*Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa     `path:"external-as-lsa" module:"open-traffic-generator-ospfv2"`
	NetworkLsa        map[string]*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa        `path:"network-lsa" module:"open-traffic-generator-ospfv2"`
	NetworkSummaryLsa map[string]*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa `path:"network-summary-lsa" module:"open-traffic-generator-ospfv2"`
	NssaLsa           map[string]*Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa           `path:"nssa-lsa" module:"open-traffic-generator-ospfv2"`
	OpaqueLsa         map[string]*Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa         `path:"opaque-lsa" module:"open-traffic-generator-ospfv2"`
	RouterLsa         map[string]*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa         `path:"router-lsa" module:"open-traffic-generator-ospfv2"`
	SummaryAsLsa      map[string]*Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa      `path:"summary-as-lsa" module:"open-traffic-generator-ospfv2"`
}

Ospfv2Router_LinkStateDatabase_LsaStates represents the /open-traffic-generator-ospfv2/ospfv2-routers/ospfv2-router/state/link-state-database/lsa-states YANG schema element.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) AppendExternalAsLsa added in v0.7.1

AppendExternalAsLsa appends the supplied Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa struct to the list ExternalAsLsa of Ospfv2Router_LinkStateDatabase_LsaStates. If the key value(s) specified in the supplied Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa already exist in the list, an error is returned.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) AppendNetworkLsa added in v0.7.1

AppendNetworkLsa appends the supplied Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa struct to the list NetworkLsa of Ospfv2Router_LinkStateDatabase_LsaStates. If the key value(s) specified in the supplied Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa already exist in the list, an error is returned.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) AppendNetworkSummaryLsa added in v0.7.1

AppendNetworkSummaryLsa appends the supplied Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa struct to the list NetworkSummaryLsa of Ospfv2Router_LinkStateDatabase_LsaStates. If the key value(s) specified in the supplied Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa already exist in the list, an error is returned.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) AppendNssaLsa added in v0.7.1

AppendNssaLsa appends the supplied Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa struct to the list NssaLsa of Ospfv2Router_LinkStateDatabase_LsaStates. If the key value(s) specified in the supplied Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa already exist in the list, an error is returned.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) AppendOpaqueLsa added in v0.7.1

AppendOpaqueLsa appends the supplied Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa struct to the list OpaqueLsa of Ospfv2Router_LinkStateDatabase_LsaStates. If the key value(s) specified in the supplied Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa already exist in the list, an error is returned.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) AppendRouterLsa added in v0.7.1

AppendRouterLsa appends the supplied Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa struct to the list RouterLsa of Ospfv2Router_LinkStateDatabase_LsaStates. If the key value(s) specified in the supplied Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa already exist in the list, an error is returned.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) AppendSummaryAsLsa added in v0.7.1

AppendSummaryAsLsa appends the supplied Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa struct to the list SummaryAsLsa of Ospfv2Router_LinkStateDatabase_LsaStates. If the key value(s) specified in the supplied Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa already exist in the list, an error is returned.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) DeleteExternalAsLsa added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates) DeleteExternalAsLsa(LinkStateId string)

DeleteExternalAsLsa deletes the value with the specified keys from the receiver Ospfv2Router_LinkStateDatabase_LsaStates. If there is no such element, the function is a no-op.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) DeleteNetworkLsa added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates) DeleteNetworkLsa(LinkStateId string)

DeleteNetworkLsa deletes the value with the specified keys from the receiver Ospfv2Router_LinkStateDatabase_LsaStates. If there is no such element, the function is a no-op.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) DeleteNetworkSummaryLsa added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates) DeleteNetworkSummaryLsa(LinkStateId string)

DeleteNetworkSummaryLsa deletes the value with the specified keys from the receiver Ospfv2Router_LinkStateDatabase_LsaStates. If there is no such element, the function is a no-op.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) DeleteNssaLsa added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates) DeleteNssaLsa(LinkStateId string)

DeleteNssaLsa deletes the value with the specified keys from the receiver Ospfv2Router_LinkStateDatabase_LsaStates. If there is no such element, the function is a no-op.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) DeleteOpaqueLsa added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates) DeleteOpaqueLsa(LinkStateId string)

DeleteOpaqueLsa deletes the value with the specified keys from the receiver Ospfv2Router_LinkStateDatabase_LsaStates. If there is no such element, the function is a no-op.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) DeleteRouterLsa added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates) DeleteRouterLsa(LinkStateId string)

DeleteRouterLsa deletes the value with the specified keys from the receiver Ospfv2Router_LinkStateDatabase_LsaStates. If there is no such element, the function is a no-op.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) DeleteSummaryAsLsa added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates) DeleteSummaryAsLsa(LinkStateId string)

DeleteSummaryAsLsa deletes the value with the specified keys from the receiver Ospfv2Router_LinkStateDatabase_LsaStates. If there is no such element, the function is a no-op.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) GetExternalAsLsa added in v0.7.1

GetExternalAsLsa retrieves the value with the specified key from the ExternalAsLsa map field of Ospfv2Router_LinkStateDatabase_LsaStates. 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 (*Ospfv2Router_LinkStateDatabase_LsaStates) GetNetworkLsa added in v0.7.1

GetNetworkLsa retrieves the value with the specified key from the NetworkLsa map field of Ospfv2Router_LinkStateDatabase_LsaStates. 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 (*Ospfv2Router_LinkStateDatabase_LsaStates) GetNetworkSummaryLsa added in v0.7.1

GetNetworkSummaryLsa retrieves the value with the specified key from the NetworkSummaryLsa map field of Ospfv2Router_LinkStateDatabase_LsaStates. 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 (*Ospfv2Router_LinkStateDatabase_LsaStates) GetNssaLsa added in v0.7.1

GetNssaLsa retrieves the value with the specified key from the NssaLsa map field of Ospfv2Router_LinkStateDatabase_LsaStates. 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 (*Ospfv2Router_LinkStateDatabase_LsaStates) GetOpaqueLsa added in v0.7.1

GetOpaqueLsa retrieves the value with the specified key from the OpaqueLsa map field of Ospfv2Router_LinkStateDatabase_LsaStates. 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 (*Ospfv2Router_LinkStateDatabase_LsaStates) GetOrCreateExternalAsLsa added in v0.7.1

GetOrCreateExternalAsLsa retrieves the value with the specified keys from the receiver Ospfv2Router_LinkStateDatabase_LsaStates. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) GetOrCreateExternalAsLsaMap added in v0.7.1

GetOrCreateExternalAsLsaMap returns the list (map) from Ospfv2Router_LinkStateDatabase_LsaStates.

It initializes the field if not already initialized.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) GetOrCreateNetworkLsa added in v0.7.1

GetOrCreateNetworkLsa retrieves the value with the specified keys from the receiver Ospfv2Router_LinkStateDatabase_LsaStates. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) GetOrCreateNetworkLsaMap added in v0.7.1

GetOrCreateNetworkLsaMap returns the list (map) from Ospfv2Router_LinkStateDatabase_LsaStates.

It initializes the field if not already initialized.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) GetOrCreateNetworkSummaryLsa added in v0.7.1

GetOrCreateNetworkSummaryLsa retrieves the value with the specified keys from the receiver Ospfv2Router_LinkStateDatabase_LsaStates. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) GetOrCreateNetworkSummaryLsaMap added in v0.7.1

GetOrCreateNetworkSummaryLsaMap returns the list (map) from Ospfv2Router_LinkStateDatabase_LsaStates.

It initializes the field if not already initialized.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) GetOrCreateNssaLsa added in v0.7.1

GetOrCreateNssaLsa retrieves the value with the specified keys from the receiver Ospfv2Router_LinkStateDatabase_LsaStates. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) GetOrCreateNssaLsaMap added in v0.7.1

GetOrCreateNssaLsaMap returns the list (map) from Ospfv2Router_LinkStateDatabase_LsaStates.

It initializes the field if not already initialized.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) GetOrCreateOpaqueLsa added in v0.7.1

GetOrCreateOpaqueLsa retrieves the value with the specified keys from the receiver Ospfv2Router_LinkStateDatabase_LsaStates. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) GetOrCreateOpaqueLsaMap added in v0.7.1

GetOrCreateOpaqueLsaMap returns the list (map) from Ospfv2Router_LinkStateDatabase_LsaStates.

It initializes the field if not already initialized.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) GetOrCreateRouterLsa added in v0.7.1

GetOrCreateRouterLsa retrieves the value with the specified keys from the receiver Ospfv2Router_LinkStateDatabase_LsaStates. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) GetOrCreateRouterLsaMap added in v0.7.1

GetOrCreateRouterLsaMap returns the list (map) from Ospfv2Router_LinkStateDatabase_LsaStates.

It initializes the field if not already initialized.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) GetOrCreateSummaryAsLsa added in v0.7.1

GetOrCreateSummaryAsLsa retrieves the value with the specified keys from the receiver Ospfv2Router_LinkStateDatabase_LsaStates. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) GetOrCreateSummaryAsLsaMap added in v0.7.1

GetOrCreateSummaryAsLsaMap returns the list (map) from Ospfv2Router_LinkStateDatabase_LsaStates.

It initializes the field if not already initialized.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) GetRouterLsa added in v0.7.1

GetRouterLsa retrieves the value with the specified key from the RouterLsa map field of Ospfv2Router_LinkStateDatabase_LsaStates. 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 (*Ospfv2Router_LinkStateDatabase_LsaStates) GetSummaryAsLsa added in v0.7.1

GetSummaryAsLsa retrieves the value with the specified key from the SummaryAsLsa map field of Ospfv2Router_LinkStateDatabase_LsaStates. 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 (*Ospfv2Router_LinkStateDatabase_LsaStates) IsYANGGoStruct added in v0.7.1

func (*Ospfv2Router_LinkStateDatabase_LsaStates) IsYANGGoStruct()

IsYANGGoStruct ensures that Ospfv2Router_LinkStateDatabase_LsaStates implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) NewExternalAsLsa added in v0.7.1

NewExternalAsLsa creates a new entry in the ExternalAsLsa list of the Ospfv2Router_LinkStateDatabase_LsaStates struct. The keys of the list are populated from the input arguments.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) NewNetworkLsa added in v0.7.1

NewNetworkLsa creates a new entry in the NetworkLsa list of the Ospfv2Router_LinkStateDatabase_LsaStates struct. The keys of the list are populated from the input arguments.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) NewNetworkSummaryLsa added in v0.7.1

NewNetworkSummaryLsa creates a new entry in the NetworkSummaryLsa list of the Ospfv2Router_LinkStateDatabase_LsaStates struct. The keys of the list are populated from the input arguments.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) NewNssaLsa added in v0.7.1

NewNssaLsa creates a new entry in the NssaLsa list of the Ospfv2Router_LinkStateDatabase_LsaStates struct. The keys of the list are populated from the input arguments.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) NewOpaqueLsa added in v0.7.1

NewOpaqueLsa creates a new entry in the OpaqueLsa list of the Ospfv2Router_LinkStateDatabase_LsaStates struct. The keys of the list are populated from the input arguments.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) NewRouterLsa added in v0.7.1

NewRouterLsa creates a new entry in the RouterLsa list of the Ospfv2Router_LinkStateDatabase_LsaStates struct. The keys of the list are populated from the input arguments.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) NewSummaryAsLsa added in v0.7.1

NewSummaryAsLsa creates a new entry in the SummaryAsLsa list of the Ospfv2Router_LinkStateDatabase_LsaStates struct. The keys of the list are populated from the input arguments.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) PopulateDefaults added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Ospfv2Router_LinkStateDatabase_LsaStates with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) RenameExternalAsLsa added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates) RenameExternalAsLsa(oldK, newK string) error

RenameExternalAsLsa renames an entry in the list ExternalAsLsa within the Ospfv2Router_LinkStateDatabase_LsaStates struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) RenameNetworkLsa added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates) RenameNetworkLsa(oldK, newK string) error

RenameNetworkLsa renames an entry in the list NetworkLsa within the Ospfv2Router_LinkStateDatabase_LsaStates struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) RenameNetworkSummaryLsa added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates) RenameNetworkSummaryLsa(oldK, newK string) error

RenameNetworkSummaryLsa renames an entry in the list NetworkSummaryLsa within the Ospfv2Router_LinkStateDatabase_LsaStates struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) RenameNssaLsa added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates) RenameNssaLsa(oldK, newK string) error

RenameNssaLsa renames an entry in the list NssaLsa within the Ospfv2Router_LinkStateDatabase_LsaStates struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) RenameOpaqueLsa added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates) RenameOpaqueLsa(oldK, newK string) error

RenameOpaqueLsa renames an entry in the list OpaqueLsa within the Ospfv2Router_LinkStateDatabase_LsaStates struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) RenameRouterLsa added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates) RenameRouterLsa(oldK, newK string) error

RenameRouterLsa renames an entry in the list RouterLsa within the Ospfv2Router_LinkStateDatabase_LsaStates struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) RenameSummaryAsLsa added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates) RenameSummaryAsLsa(oldK, newK string) error

RenameSummaryAsLsa renames an entry in the list SummaryAsLsa within the Ospfv2Router_LinkStateDatabase_LsaStates struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) Validate added in v0.7.1

Validate validates s against the YANG schema corresponding to its type.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) ΛBelongingModule added in v0.7.1

func (*Ospfv2Router_LinkStateDatabase_LsaStates) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Ospfv2Router_LinkStateDatabase_LsaStates.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) ΛEnumTypeMap added in v0.7.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Ospfv2Router_LinkStateDatabase_LsaStates) ΛValidate added in v0.7.1

Validate validates s against the YANG schema corresponding to its type.

type Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa added in v0.7.1

type Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa struct {
	AdvertisingRouter *string `path:"state/advertising-router" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	Age               *uint16 `path:"state/age" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	LinkStateId       *string `` /* 213-byte string literal not displayed */
	Metric            *uint16 `path:"state/metric" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	MetricType        *uint32 `path:"state/metric-type" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	NetworkMask       *string `path:"state/network-mask" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	OptionBits        *uint32 `path:"state/option-bits" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	SequenceNumber    *uint32 `path:"state/sequence-number" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
}

Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa represents the /open-traffic-generator-ospfv2/ospfv2-routers/ospfv2-router/state/link-state-database/lsa-states/external-as-lsa YANG schema element.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa) GetAdvertisingRouter added in v0.7.1

GetAdvertisingRouter retrieves the value of the leaf AdvertisingRouter from the Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa 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 AdvertisingRouter is set, it can safely use t.GetAdvertisingRouter() 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.AdvertisingRouter == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa) GetAge added in v0.7.1

GetAge retrieves the value of the leaf Age from the Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa 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 Age is set, it can safely use t.GetAge() 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.Age == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa) GetLinkStateId added in v0.7.1

GetLinkStateId retrieves the value of the leaf LinkStateId from the Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa 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 LinkStateId is set, it can safely use t.GetLinkStateId() 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.LinkStateId == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa) GetMetric added in v0.7.1

GetMetric retrieves the value of the leaf Metric from the Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa 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 Metric is set, it can safely use t.GetMetric() 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.Metric == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa) GetMetricType added in v0.7.1

GetMetricType retrieves the value of the leaf MetricType from the Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa 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 MetricType is set, it can safely use t.GetMetricType() 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.MetricType == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa) GetNetworkMask added in v0.7.1

GetNetworkMask retrieves the value of the leaf NetworkMask from the Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa 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 NetworkMask is set, it can safely use t.GetNetworkMask() 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.NetworkMask == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa) GetOptionBits added in v0.7.1

GetOptionBits retrieves the value of the leaf OptionBits from the Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa 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 OptionBits is set, it can safely use t.GetOptionBits() 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.OptionBits == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa) GetSequenceNumber added in v0.7.1

GetSequenceNumber retrieves the value of the leaf SequenceNumber from the Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa 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 SequenceNumber is set, it can safely use t.GetSequenceNumber() 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.SequenceNumber == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa) IsYANGGoStruct added in v0.7.1

IsYANGGoStruct ensures that Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa) PopulateDefaults added in v0.7.1

PopulateDefaults recursively populates unset leaf fields in the Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa) SetAdvertisingRouter added in v0.7.1

SetAdvertisingRouter sets the value of the leaf AdvertisingRouter in the Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa) SetAge added in v0.7.1

SetAge sets the value of the leaf Age in the Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa) SetLinkStateId added in v0.7.1

SetLinkStateId sets the value of the leaf LinkStateId in the Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa) SetMetric added in v0.7.1

SetMetric sets the value of the leaf Metric in the Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa) SetMetricType added in v0.7.1

SetMetricType sets the value of the leaf MetricType in the Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa) SetNetworkMask added in v0.7.1

SetNetworkMask sets the value of the leaf NetworkMask in the Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa) SetOptionBits added in v0.7.1

SetOptionBits sets the value of the leaf OptionBits in the Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa) SetSequenceNumber added in v0.7.1

SetSequenceNumber sets the value of the leaf SequenceNumber in the Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa) Validate added in v0.7.1

Validate validates s against the YANG schema corresponding to its type.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa) ΛBelongingModule added in v0.7.1

ΛBelongingModule returns the name of the module that defines the namespace of Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa) ΛEnumTypeMap added in v0.7.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa) ΛListKeyMap added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa struct, which is a YANG list entry.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_ExternalAsLsa) ΛValidate added in v0.7.1

Validate validates s against the YANG schema corresponding to its type.

type Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa added in v0.7.1

type Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa struct {
	AdvertisingRouter *string  `path:"state/advertising-router" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	Age               *uint16  `path:"state/age" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	AttachedRouter    []string `path:"state/attached-router" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	LinkStateId       *string  `` /* 213-byte string literal not displayed */
	NetworkMask       *string  `path:"state/network-mask" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	OptionBits        *uint32  `path:"state/option-bits" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	SequenceNumber    *uint32  `path:"state/sequence-number" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
}

Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa represents the /open-traffic-generator-ospfv2/ospfv2-routers/ospfv2-router/state/link-state-database/lsa-states/network-lsa YANG schema element.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa) GetAdvertisingRouter added in v0.7.1

GetAdvertisingRouter retrieves the value of the leaf AdvertisingRouter from the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa 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 AdvertisingRouter is set, it can safely use t.GetAdvertisingRouter() 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.AdvertisingRouter == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa) GetAge added in v0.7.1

GetAge retrieves the value of the leaf Age from the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa 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 Age is set, it can safely use t.GetAge() 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.Age == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa) GetAttachedRouter added in v0.7.1

GetAttachedRouter retrieves the value of the leaf AttachedRouter from the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa 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 AttachedRouter is set, it can safely use t.GetAttachedRouter() 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.AttachedRouter == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa) GetLinkStateId added in v0.7.1

GetLinkStateId retrieves the value of the leaf LinkStateId from the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa 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 LinkStateId is set, it can safely use t.GetLinkStateId() 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.LinkStateId == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa) GetNetworkMask added in v0.7.1

GetNetworkMask retrieves the value of the leaf NetworkMask from the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa 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 NetworkMask is set, it can safely use t.GetNetworkMask() 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.NetworkMask == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa) GetOptionBits added in v0.7.1

GetOptionBits retrieves the value of the leaf OptionBits from the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa 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 OptionBits is set, it can safely use t.GetOptionBits() 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.OptionBits == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa) GetSequenceNumber added in v0.7.1

GetSequenceNumber retrieves the value of the leaf SequenceNumber from the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa 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 SequenceNumber is set, it can safely use t.GetSequenceNumber() 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.SequenceNumber == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa) IsYANGGoStruct added in v0.7.1

IsYANGGoStruct ensures that Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa) PopulateDefaults added in v0.7.1

PopulateDefaults recursively populates unset leaf fields in the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa) SetAdvertisingRouter added in v0.7.1

SetAdvertisingRouter sets the value of the leaf AdvertisingRouter in the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa) SetAge added in v0.7.1

SetAge sets the value of the leaf Age in the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa) SetAttachedRouter added in v0.7.1

SetAttachedRouter sets the value of the leaf AttachedRouter in the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa) SetLinkStateId added in v0.7.1

SetLinkStateId sets the value of the leaf LinkStateId in the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa) SetNetworkMask added in v0.7.1

SetNetworkMask sets the value of the leaf NetworkMask in the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa) SetOptionBits added in v0.7.1

SetOptionBits sets the value of the leaf OptionBits in the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa) SetSequenceNumber added in v0.7.1

SetSequenceNumber sets the value of the leaf SequenceNumber in the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa) Validate added in v0.7.1

Validate validates s against the YANG schema corresponding to its type.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa) ΛBelongingModule added in v0.7.1

ΛBelongingModule returns the name of the module that defines the namespace of Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa) ΛEnumTypeMap added in v0.7.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa) ΛListKeyMap added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa struct, which is a YANG list entry.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkLsa) ΛValidate added in v0.7.1

Validate validates s against the YANG schema corresponding to its type.

type Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa added in v0.7.1

type Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa struct {
	AdvertisingRouter *string `path:"state/advertising-router" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	Age               *uint16 `path:"state/age" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	LinkStateId       *string `` /* 213-byte string literal not displayed */
	Metric            *uint16 `path:"state/metric" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	NetworkMask       *string `path:"state/network-mask" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	OptionBits        *uint32 `path:"state/option-bits" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	SequenceNumber    *uint32 `path:"state/sequence-number" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
}

Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa represents the /open-traffic-generator-ospfv2/ospfv2-routers/ospfv2-router/state/link-state-database/lsa-states/network-summary-lsa YANG schema element.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa) GetAdvertisingRouter added in v0.7.1

GetAdvertisingRouter retrieves the value of the leaf AdvertisingRouter from the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa 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 AdvertisingRouter is set, it can safely use t.GetAdvertisingRouter() 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.AdvertisingRouter == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa) GetAge added in v0.7.1

GetAge retrieves the value of the leaf Age from the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa 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 Age is set, it can safely use t.GetAge() 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.Age == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa) GetLinkStateId added in v0.7.1

GetLinkStateId retrieves the value of the leaf LinkStateId from the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa 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 LinkStateId is set, it can safely use t.GetLinkStateId() 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.LinkStateId == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa) GetMetric added in v0.7.1

GetMetric retrieves the value of the leaf Metric from the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa 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 Metric is set, it can safely use t.GetMetric() 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.Metric == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa) GetNetworkMask added in v0.7.1

GetNetworkMask retrieves the value of the leaf NetworkMask from the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa 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 NetworkMask is set, it can safely use t.GetNetworkMask() 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.NetworkMask == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa) GetOptionBits added in v0.7.1

GetOptionBits retrieves the value of the leaf OptionBits from the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa 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 OptionBits is set, it can safely use t.GetOptionBits() 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.OptionBits == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa) GetSequenceNumber added in v0.7.1

GetSequenceNumber retrieves the value of the leaf SequenceNumber from the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa 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 SequenceNumber is set, it can safely use t.GetSequenceNumber() 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.SequenceNumber == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa) IsYANGGoStruct added in v0.7.1

IsYANGGoStruct ensures that Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa) PopulateDefaults added in v0.7.1

PopulateDefaults recursively populates unset leaf fields in the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa) SetAdvertisingRouter added in v0.7.1

SetAdvertisingRouter sets the value of the leaf AdvertisingRouter in the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa) SetAge added in v0.7.1

SetAge sets the value of the leaf Age in the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa) SetLinkStateId added in v0.7.1

SetLinkStateId sets the value of the leaf LinkStateId in the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa) SetMetric added in v0.7.1

SetMetric sets the value of the leaf Metric in the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa) SetNetworkMask added in v0.7.1

SetNetworkMask sets the value of the leaf NetworkMask in the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa) SetOptionBits added in v0.7.1

SetOptionBits sets the value of the leaf OptionBits in the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa) SetSequenceNumber added in v0.7.1

SetSequenceNumber sets the value of the leaf SequenceNumber in the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa) Validate added in v0.7.1

Validate validates s against the YANG schema corresponding to its type.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa) ΛBelongingModule added in v0.7.1

ΛBelongingModule returns the name of the module that defines the namespace of Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa) ΛEnumTypeMap added in v0.7.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa) ΛListKeyMap added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa struct, which is a YANG list entry.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NetworkSummaryLsa) ΛValidate added in v0.7.1

Validate validates s against the YANG schema corresponding to its type.

type Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa added in v0.7.1

type Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa struct {
	AdvertisingRouter *string `path:"state/advertising-router" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	Age               *uint16 `path:"state/age" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	ForwardingAddress *string `path:"state/forwarding-address" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	LinkStateId       *string `` /* 213-byte string literal not displayed */
	Metric            *uint16 `path:"state/metric" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	MetricType        *uint32 `path:"state/metric-type" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	NetworkMask       *string `path:"state/network-mask" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	OptionBits        *uint32 `path:"state/option-bits" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	SequenceNumber    *uint32 `path:"state/sequence-number" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
}

Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa represents the /open-traffic-generator-ospfv2/ospfv2-routers/ospfv2-router/state/link-state-database/lsa-states/nssa-lsa YANG schema element.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) GetAdvertisingRouter added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) GetAdvertisingRouter() string

GetAdvertisingRouter retrieves the value of the leaf AdvertisingRouter from the Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa 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 AdvertisingRouter is set, it can safely use t.GetAdvertisingRouter() 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.AdvertisingRouter == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) GetAge added in v0.7.1

GetAge retrieves the value of the leaf Age from the Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa 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 Age is set, it can safely use t.GetAge() 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.Age == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) GetForwardingAddress added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) GetForwardingAddress() string

GetForwardingAddress retrieves the value of the leaf ForwardingAddress from the Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa 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 ForwardingAddress is set, it can safely use t.GetForwardingAddress() 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.ForwardingAddress == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) GetLinkStateId added in v0.7.1

GetLinkStateId retrieves the value of the leaf LinkStateId from the Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa 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 LinkStateId is set, it can safely use t.GetLinkStateId() 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.LinkStateId == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) GetMetric added in v0.7.1

GetMetric retrieves the value of the leaf Metric from the Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa 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 Metric is set, it can safely use t.GetMetric() 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.Metric == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) GetMetricType added in v0.7.1

GetMetricType retrieves the value of the leaf MetricType from the Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa 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 MetricType is set, it can safely use t.GetMetricType() 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.MetricType == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) GetNetworkMask added in v0.7.1

GetNetworkMask retrieves the value of the leaf NetworkMask from the Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa 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 NetworkMask is set, it can safely use t.GetNetworkMask() 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.NetworkMask == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) GetOptionBits added in v0.7.1

GetOptionBits retrieves the value of the leaf OptionBits from the Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa 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 OptionBits is set, it can safely use t.GetOptionBits() 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.OptionBits == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) GetSequenceNumber added in v0.7.1

GetSequenceNumber retrieves the value of the leaf SequenceNumber from the Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa 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 SequenceNumber is set, it can safely use t.GetSequenceNumber() 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.SequenceNumber == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) IsYANGGoStruct added in v0.7.1

IsYANGGoStruct ensures that Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) PopulateDefaults added in v0.7.1

PopulateDefaults recursively populates unset leaf fields in the Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) SetAdvertisingRouter added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) SetAdvertisingRouter(v string)

SetAdvertisingRouter sets the value of the leaf AdvertisingRouter in the Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) SetAge added in v0.7.1

SetAge sets the value of the leaf Age in the Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) SetForwardingAddress added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) SetForwardingAddress(v string)

SetForwardingAddress sets the value of the leaf ForwardingAddress in the Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) SetLinkStateId added in v0.7.1

SetLinkStateId sets the value of the leaf LinkStateId in the Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) SetMetric added in v0.7.1

SetMetric sets the value of the leaf Metric in the Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) SetMetricType added in v0.7.1

SetMetricType sets the value of the leaf MetricType in the Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) SetNetworkMask added in v0.7.1

SetNetworkMask sets the value of the leaf NetworkMask in the Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) SetOptionBits added in v0.7.1

SetOptionBits sets the value of the leaf OptionBits in the Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) SetSequenceNumber added in v0.7.1

SetSequenceNumber sets the value of the leaf SequenceNumber in the Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) Validate added in v0.7.1

Validate validates s against the YANG schema corresponding to its type.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) ΛBelongingModule added in v0.7.1

ΛBelongingModule returns the name of the module that defines the namespace of Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) ΛEnumTypeMap added in v0.7.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) ΛListKeyMap added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa struct, which is a YANG list entry.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_NssaLsa) ΛValidate added in v0.7.1

Validate validates s against the YANG schema corresponding to its type.

type Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa added in v0.7.1

type Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa struct {
	AdvertisingRouter *string          `path:"state/advertising-router" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	Age               *uint16          `path:"state/age" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	LinkStateId       *string          `` /* 213-byte string literal not displayed */
	OptionBits        *uint32          `path:"state/option-bits" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	SequenceNumber    *uint32          `path:"state/sequence-number" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	Type              E_OpaqueLsa_Type `path:"state/type" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
}

Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa represents the /open-traffic-generator-ospfv2/ospfv2-routers/ospfv2-router/state/link-state-database/lsa-states/opaque-lsa YANG schema element.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa) GetAdvertisingRouter added in v0.7.1

GetAdvertisingRouter retrieves the value of the leaf AdvertisingRouter from the Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa 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 AdvertisingRouter is set, it can safely use t.GetAdvertisingRouter() 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.AdvertisingRouter == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa) GetAge added in v0.7.1

GetAge retrieves the value of the leaf Age from the Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa 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 Age is set, it can safely use t.GetAge() 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.Age == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa) GetLinkStateId added in v0.7.1

GetLinkStateId retrieves the value of the leaf LinkStateId from the Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa 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 LinkStateId is set, it can safely use t.GetLinkStateId() 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.LinkStateId == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa) GetOptionBits added in v0.7.1

GetOptionBits retrieves the value of the leaf OptionBits from the Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa 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 OptionBits is set, it can safely use t.GetOptionBits() 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.OptionBits == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa) GetSequenceNumber added in v0.7.1

GetSequenceNumber retrieves the value of the leaf SequenceNumber from the Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa 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 SequenceNumber is set, it can safely use t.GetSequenceNumber() 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.SequenceNumber == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa) GetType added in v0.7.1

GetType retrieves the value of the leaf Type from the Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa 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 (*Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa) IsYANGGoStruct added in v0.7.1

IsYANGGoStruct ensures that Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa) PopulateDefaults added in v0.7.1

PopulateDefaults recursively populates unset leaf fields in the Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa) SetAdvertisingRouter added in v0.7.1

SetAdvertisingRouter sets the value of the leaf AdvertisingRouter in the Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa) SetAge added in v0.7.1

SetAge sets the value of the leaf Age in the Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa) SetLinkStateId added in v0.7.1

SetLinkStateId sets the value of the leaf LinkStateId in the Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa) SetOptionBits added in v0.7.1

SetOptionBits sets the value of the leaf OptionBits in the Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa) SetSequenceNumber added in v0.7.1

SetSequenceNumber sets the value of the leaf SequenceNumber in the Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa) SetType added in v0.7.1

SetType sets the value of the leaf Type in the Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa) Validate added in v0.7.1

Validate validates s against the YANG schema corresponding to its type.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa) ΛBelongingModule added in v0.7.1

ΛBelongingModule returns the name of the module that defines the namespace of Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa) ΛEnumTypeMap added in v0.7.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa) ΛListKeyMap added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa struct, which is a YANG list entry.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_OpaqueLsa) ΛValidate added in v0.7.1

Validate validates s against the YANG schema corresponding to its type.

type Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa added in v0.7.1

type Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa struct {
	AdvertisingRouter *string                                                             `path:"state/advertising-router" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	Age               *uint16                                                             `path:"state/age" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	Link              map[string]*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link `path:"state/link" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	LinkStateId       *string                                                             `` /* 213-byte string literal not displayed */
	OptionBits        *uint32                                                             `path:"state/option-bits" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	SequenceNumber    *uint32                                                             `path:"state/sequence-number" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
}

Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa represents the /open-traffic-generator-ospfv2/ospfv2-routers/ospfv2-router/state/link-state-database/lsa-states/router-lsa YANG schema element.

AppendLink appends the supplied Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link struct to the list Link of Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa. If the key value(s) specified in the supplied Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link already exist in the list, an error is returned.

DeleteLink deletes the value with the specified keys from the receiver Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa. If there is no such element, the function is a no-op.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa) GetAdvertisingRouter added in v0.7.1

GetAdvertisingRouter retrieves the value of the leaf AdvertisingRouter from the Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa 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 AdvertisingRouter is set, it can safely use t.GetAdvertisingRouter() 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.AdvertisingRouter == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa) GetAge added in v0.7.1

GetAge retrieves the value of the leaf Age from the Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa 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 Age is set, it can safely use t.GetAge() 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.Age == nil' before retrieving the leaf's value.

GetLink retrieves the value with the specified key from the Link map field of Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa. 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 (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa) GetLinkStateId added in v0.7.1

GetLinkStateId retrieves the value of the leaf LinkStateId from the Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa 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 LinkStateId is set, it can safely use t.GetLinkStateId() 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.LinkStateId == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa) GetOptionBits added in v0.7.1

GetOptionBits retrieves the value of the leaf OptionBits from the Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa 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 OptionBits is set, it can safely use t.GetOptionBits() 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.OptionBits == nil' before retrieving the leaf's value.

GetOrCreateLink retrieves the value with the specified keys from the receiver Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa) GetOrCreateLinkMap added in v0.7.1

GetOrCreateLinkMap returns the list (map) from Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa.

It initializes the field if not already initialized.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa) GetSequenceNumber added in v0.7.1

GetSequenceNumber retrieves the value of the leaf SequenceNumber from the Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa 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 SequenceNumber is set, it can safely use t.GetSequenceNumber() 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.SequenceNumber == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa) IsYANGGoStruct added in v0.7.1

IsYANGGoStruct ensures that Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

NewLink creates a new entry in the Link list of the Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa struct. The keys of the list are populated from the input arguments.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa) PopulateDefaults added in v0.7.1

PopulateDefaults recursively populates unset leaf fields in the Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa with default values as specified in the YANG schema, instantiating any nil container fields.

RenameLink renames an entry in the list Link within the Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa) SetAdvertisingRouter added in v0.7.1

SetAdvertisingRouter sets the value of the leaf AdvertisingRouter in the Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa) SetAge added in v0.7.1

SetAge sets the value of the leaf Age in the Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa) SetLinkStateId added in v0.7.1

SetLinkStateId sets the value of the leaf LinkStateId in the Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa) SetOptionBits added in v0.7.1

SetOptionBits sets the value of the leaf OptionBits in the Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa) SetSequenceNumber added in v0.7.1

SetSequenceNumber sets the value of the leaf SequenceNumber in the Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa) Validate added in v0.7.1

Validate validates s against the YANG schema corresponding to its type.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa) ΛBelongingModule added in v0.7.1

ΛBelongingModule returns the name of the module that defines the namespace of Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa) ΛEnumTypeMap added in v0.7.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa) ΛListKeyMap added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa struct, which is a YANG list entry.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa) ΛValidate added in v0.7.1

Validate validates s against the YANG schema corresponding to its type.

type Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link struct {
	Data   *string     `path:"state/data" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	Id     *string     `` /* 180-byte string literal not displayed */
	Metric *uint16     `path:"state/metric" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	Type   E_Link_Type `path:"state/type" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
}

Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link represents the /open-traffic-generator-ospfv2/ospfv2-routers/ospfv2-router/state/link-state-database/lsa-states/router-lsa/state/link YANG schema element.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link) GetData added in v0.7.1

GetData retrieves the value of the leaf Data from the Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link 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 Data is set, it can safely use t.GetData() 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.Data == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link) GetId added in v0.7.1

GetId retrieves the value of the leaf Id from the Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link 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 (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link) GetMetric added in v0.7.1

GetMetric retrieves the value of the leaf Metric from the Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link 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 Metric is set, it can safely use t.GetMetric() 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.Metric == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link) GetType added in v0.7.1

GetType retrieves the value of the leaf Type from the Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link 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 (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link) IsYANGGoStruct added in v0.7.1

IsYANGGoStruct ensures that Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link) PopulateDefaults added in v0.7.1

PopulateDefaults recursively populates unset leaf fields in the Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link) SetData added in v0.7.1

SetData sets the value of the leaf Data in the Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link) SetId added in v0.7.1

SetId sets the value of the leaf Id in the Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link) SetMetric added in v0.7.1

SetMetric sets the value of the leaf Metric in the Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link) SetType added in v0.7.1

SetType sets the value of the leaf Type in the Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link) Validate added in v0.7.1

Validate validates s against the YANG schema corresponding to its type.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link) ΛBelongingModule added in v0.7.1

ΛBelongingModule returns the name of the module that defines the namespace of Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link) ΛEnumTypeMap added in v0.7.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link) ΛListKeyMap added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link struct, which is a YANG list entry.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_RouterLsa_Link) ΛValidate added in v0.7.1

Validate validates s against the YANG schema corresponding to its type.

type Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa added in v0.7.1

type Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa struct {
	AdvertisingRouter *string `path:"state/advertising-router" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	Age               *uint16 `path:"state/age" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	LinkStateId       *string `` /* 213-byte string literal not displayed */
	Metric            *uint16 `path:"state/metric" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	NetworkMask       *string `path:"state/network-mask" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	OptionBits        *uint32 `path:"state/option-bits" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	SequenceNumber    *uint32 `path:"state/sequence-number" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
}

Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa represents the /open-traffic-generator-ospfv2/ospfv2-routers/ospfv2-router/state/link-state-database/lsa-states/summary-as-lsa YANG schema element.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa) GetAdvertisingRouter added in v0.7.1

GetAdvertisingRouter retrieves the value of the leaf AdvertisingRouter from the Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa 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 AdvertisingRouter is set, it can safely use t.GetAdvertisingRouter() 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.AdvertisingRouter == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa) GetAge added in v0.7.1

GetAge retrieves the value of the leaf Age from the Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa 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 Age is set, it can safely use t.GetAge() 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.Age == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa) GetLinkStateId added in v0.7.1

GetLinkStateId retrieves the value of the leaf LinkStateId from the Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa 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 LinkStateId is set, it can safely use t.GetLinkStateId() 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.LinkStateId == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa) GetMetric added in v0.7.1

GetMetric retrieves the value of the leaf Metric from the Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa 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 Metric is set, it can safely use t.GetMetric() 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.Metric == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa) GetNetworkMask added in v0.7.1

GetNetworkMask retrieves the value of the leaf NetworkMask from the Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa 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 NetworkMask is set, it can safely use t.GetNetworkMask() 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.NetworkMask == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa) GetOptionBits added in v0.7.1

GetOptionBits retrieves the value of the leaf OptionBits from the Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa 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 OptionBits is set, it can safely use t.GetOptionBits() 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.OptionBits == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa) GetSequenceNumber added in v0.7.1

GetSequenceNumber retrieves the value of the leaf SequenceNumber from the Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa 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 SequenceNumber is set, it can safely use t.GetSequenceNumber() 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.SequenceNumber == nil' before retrieving the leaf's value.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa) IsYANGGoStruct added in v0.7.1

IsYANGGoStruct ensures that Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa) PopulateDefaults added in v0.7.1

PopulateDefaults recursively populates unset leaf fields in the Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa) SetAdvertisingRouter added in v0.7.1

SetAdvertisingRouter sets the value of the leaf AdvertisingRouter in the Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa) SetAge added in v0.7.1

SetAge sets the value of the leaf Age in the Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa) SetLinkStateId added in v0.7.1

SetLinkStateId sets the value of the leaf LinkStateId in the Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa) SetMetric added in v0.7.1

SetMetric sets the value of the leaf Metric in the Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa) SetNetworkMask added in v0.7.1

SetNetworkMask sets the value of the leaf NetworkMask in the Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa) SetOptionBits added in v0.7.1

SetOptionBits sets the value of the leaf OptionBits in the Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa) SetSequenceNumber added in v0.7.1

SetSequenceNumber sets the value of the leaf SequenceNumber in the Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa struct.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa) Validate added in v0.7.1

Validate validates s against the YANG schema corresponding to its type.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa) ΛBelongingModule added in v0.7.1

ΛBelongingModule returns the name of the module that defines the namespace of Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa) ΛEnumTypeMap added in v0.7.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa) ΛListKeyMap added in v0.7.1

func (t *Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa struct, which is a YANG list entry.

func (*Ospfv2Router_LinkStateDatabase_LsaStates_SummaryAsLsa) ΛValidate added in v0.7.1

Validate validates s against the YANG schema corresponding to its type.

type Ospfv3Router added in v0.9.1

type Ospfv3Router struct {
	Counters          *Ospfv3Router_Counters          `path:"state/counters" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	LinkStateDatabase *Ospfv3Router_LinkStateDatabase `path:"state/link-state-database" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	Name              *string                         `` /* 186-byte string literal not displayed */
}

Ospfv3Router represents the /open-traffic-generator-ospfv3/ospfv3-routers/ospfv3-router YANG schema element.

func (*Ospfv3Router) GetCounters added in v0.9.1

func (t *Ospfv3Router) GetCounters() *Ospfv3Router_Counters

GetCounters returns the value of the Counters struct pointer from Ospfv3Router. If the receiver or the field Counters is nil, nil is returned such that the Get* methods can be safely chained.

func (*Ospfv3Router) GetLinkStateDatabase added in v0.9.1

func (t *Ospfv3Router) GetLinkStateDatabase() *Ospfv3Router_LinkStateDatabase

GetLinkStateDatabase returns the value of the LinkStateDatabase struct pointer from Ospfv3Router. If the receiver or the field LinkStateDatabase is nil, nil is returned such that the Get* methods can be safely chained.

func (*Ospfv3Router) GetName added in v0.9.1

func (t *Ospfv3Router) GetName() string

GetName retrieves the value of the leaf Name from the Ospfv3Router 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 (*Ospfv3Router) GetOrCreateCounters added in v0.9.1

func (t *Ospfv3Router) GetOrCreateCounters() *Ospfv3Router_Counters

GetOrCreateCounters retrieves the value of the Counters field or returns the existing field if it already exists.

func (*Ospfv3Router) GetOrCreateLinkStateDatabase added in v0.9.1

func (t *Ospfv3Router) GetOrCreateLinkStateDatabase() *Ospfv3Router_LinkStateDatabase

GetOrCreateLinkStateDatabase retrieves the value of the LinkStateDatabase field or returns the existing field if it already exists.

func (*Ospfv3Router) IsYANGGoStruct added in v0.9.1

func (*Ospfv3Router) IsYANGGoStruct()

IsYANGGoStruct ensures that Ospfv3Router implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ospfv3Router) PopulateDefaults added in v0.9.1

func (t *Ospfv3Router) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Ospfv3Router with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Ospfv3Router) SetName added in v0.9.1

func (t *Ospfv3Router) SetName(v string)

SetName sets the value of the leaf Name in the Ospfv3Router struct.

func (*Ospfv3Router) Validate added in v0.9.1

func (t *Ospfv3Router) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Ospfv3Router) ΛBelongingModule added in v0.9.1

func (*Ospfv3Router) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Ospfv3Router.

func (*Ospfv3Router) ΛEnumTypeMap added in v0.9.1

func (t *Ospfv3Router) Λ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 (*Ospfv3Router) ΛListKeyMap added in v0.9.1

func (t *Ospfv3Router) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Ospfv3Router struct, which is a YANG list entry.

func (*Ospfv3Router) ΛValidate added in v0.9.1

func (t *Ospfv3Router) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Ospfv3Router_Counters added in v0.9.1

type Ospfv3Router_Counters struct {
	InDbds                 *uint64 `path:"in-dbds" module:"open-traffic-generator-ospfv3"`
	InExternalLsas         *uint64 `path:"in-external-lsas" module:"open-traffic-generator-ospfv3"`
	InHellos               *uint64 `path:"in-hellos" module:"open-traffic-generator-ospfv3"`
	InInterAreaPrefixLsas  *uint64 `path:"in-inter-area-prefix-lsas" module:"open-traffic-generator-ospfv3"`
	InInterAreaRouterLsas  *uint64 `path:"in-inter-area-router-lsas" module:"open-traffic-generator-ospfv3"`
	InIntraAreaPrefixLsas  *uint64 `path:"in-intra-area-prefix-lsas" module:"open-traffic-generator-ospfv3"`
	InLinkLsas             *uint64 `path:"in-link-lsas" module:"open-traffic-generator-ospfv3"`
	InLsAcks               *uint64 `path:"in-ls-acks" module:"open-traffic-generator-ospfv3"`
	InLsRequests           *uint64 `path:"in-ls-requests" module:"open-traffic-generator-ospfv3"`
	InLsUpdates            *uint64 `path:"in-ls-updates" module:"open-traffic-generator-ospfv3"`
	InLsas                 *uint64 `path:"in-lsas" module:"open-traffic-generator-ospfv3"`
	InNetworkLsas          *uint64 `path:"in-network-lsas" module:"open-traffic-generator-ospfv3"`
	InNssaLsas             *uint64 `path:"in-nssa-lsas" module:"open-traffic-generator-ospfv3"`
	InRouterLsas           *uint64 `path:"in-router-lsas" module:"open-traffic-generator-ospfv3"`
	OutDbds                *uint64 `path:"out-dbds" module:"open-traffic-generator-ospfv3"`
	OutExternalLsas        *uint64 `path:"out-external-lsas" module:"open-traffic-generator-ospfv3"`
	OutHellos              *uint64 `path:"out-hellos" module:"open-traffic-generator-ospfv3"`
	OutInterAreaPrefixLsas *uint64 `path:"out-inter-area-prefix-lsas" module:"open-traffic-generator-ospfv3"`
	OutInterAreaRouterLsas *uint64 `path:"out-inter-area-router-lsas" module:"open-traffic-generator-ospfv3"`
	OutIntraAreaPrefixLsas *uint64 `path:"out-intra-area-prefix-lsas" module:"open-traffic-generator-ospfv3"`
	OutLinkLsas            *uint64 `path:"out-link-lsas" module:"open-traffic-generator-ospfv3"`
	OutLsAcks              *uint64 `path:"out-ls-acks" module:"open-traffic-generator-ospfv3"`
	OutLsRequests          *uint64 `path:"out-ls-requests" module:"open-traffic-generator-ospfv3"`
	OutLsUpdates           *uint64 `path:"out-ls-updates" module:"open-traffic-generator-ospfv3"`
	OutLsas                *uint64 `path:"out-lsas" module:"open-traffic-generator-ospfv3"`
	OutNetworkLsas         *uint64 `path:"out-network-lsas" module:"open-traffic-generator-ospfv3"`
	OutNssaLsas            *uint64 `path:"out-nssa-lsas" module:"open-traffic-generator-ospfv3"`
	OutRouterLsas          *uint64 `path:"out-router-lsas" module:"open-traffic-generator-ospfv3"`
	SessionsDown           *uint64 `path:"sessions-down" module:"open-traffic-generator-ospfv3"`
	SessionsFlap           *uint64 `path:"sessions-flap" module:"open-traffic-generator-ospfv3"`
	SessionsUp             *uint64 `path:"sessions-up" module:"open-traffic-generator-ospfv3"`
}

Ospfv3Router_Counters represents the /open-traffic-generator-ospfv3/ospfv3-routers/ospfv3-router/state/counters YANG schema element.

func (*Ospfv3Router_Counters) GetInDbds added in v0.9.1

func (t *Ospfv3Router_Counters) GetInDbds() uint64

GetInDbds retrieves the value of the leaf InDbds from the Ospfv3Router_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 InDbds is set, it can safely use t.GetInDbds() 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.InDbds == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetInExternalLsas added in v0.9.1

func (t *Ospfv3Router_Counters) GetInExternalLsas() uint64

GetInExternalLsas retrieves the value of the leaf InExternalLsas from the Ospfv3Router_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 InExternalLsas is set, it can safely use t.GetInExternalLsas() 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.InExternalLsas == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetInHellos added in v0.9.1

func (t *Ospfv3Router_Counters) GetInHellos() uint64

GetInHellos retrieves the value of the leaf InHellos from the Ospfv3Router_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 InHellos is set, it can safely use t.GetInHellos() 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.InHellos == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetInInterAreaPrefixLsas added in v0.9.1

func (t *Ospfv3Router_Counters) GetInInterAreaPrefixLsas() uint64

GetInInterAreaPrefixLsas retrieves the value of the leaf InInterAreaPrefixLsas from the Ospfv3Router_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 InInterAreaPrefixLsas is set, it can safely use t.GetInInterAreaPrefixLsas() 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.InInterAreaPrefixLsas == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetInInterAreaRouterLsas added in v0.9.1

func (t *Ospfv3Router_Counters) GetInInterAreaRouterLsas() uint64

GetInInterAreaRouterLsas retrieves the value of the leaf InInterAreaRouterLsas from the Ospfv3Router_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 InInterAreaRouterLsas is set, it can safely use t.GetInInterAreaRouterLsas() 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.InInterAreaRouterLsas == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetInIntraAreaPrefixLsas added in v0.9.1

func (t *Ospfv3Router_Counters) GetInIntraAreaPrefixLsas() uint64

GetInIntraAreaPrefixLsas retrieves the value of the leaf InIntraAreaPrefixLsas from the Ospfv3Router_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 InIntraAreaPrefixLsas is set, it can safely use t.GetInIntraAreaPrefixLsas() 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.InIntraAreaPrefixLsas == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetInLinkLsas added in v0.9.1

func (t *Ospfv3Router_Counters) GetInLinkLsas() uint64

GetInLinkLsas retrieves the value of the leaf InLinkLsas from the Ospfv3Router_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 InLinkLsas is set, it can safely use t.GetInLinkLsas() 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.InLinkLsas == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetInLsAcks added in v0.9.1

func (t *Ospfv3Router_Counters) GetInLsAcks() uint64

GetInLsAcks retrieves the value of the leaf InLsAcks from the Ospfv3Router_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 InLsAcks is set, it can safely use t.GetInLsAcks() 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.InLsAcks == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetInLsRequests added in v0.9.1

func (t *Ospfv3Router_Counters) GetInLsRequests() uint64

GetInLsRequests retrieves the value of the leaf InLsRequests from the Ospfv3Router_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 InLsRequests is set, it can safely use t.GetInLsRequests() 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.InLsRequests == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetInLsUpdates added in v0.9.1

func (t *Ospfv3Router_Counters) GetInLsUpdates() uint64

GetInLsUpdates retrieves the value of the leaf InLsUpdates from the Ospfv3Router_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 InLsUpdates is set, it can safely use t.GetInLsUpdates() 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.InLsUpdates == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetInLsas added in v0.9.1

func (t *Ospfv3Router_Counters) GetInLsas() uint64

GetInLsas retrieves the value of the leaf InLsas from the Ospfv3Router_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 InLsas is set, it can safely use t.GetInLsas() 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.InLsas == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetInNetworkLsas added in v0.9.1

func (t *Ospfv3Router_Counters) GetInNetworkLsas() uint64

GetInNetworkLsas retrieves the value of the leaf InNetworkLsas from the Ospfv3Router_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 InNetworkLsas is set, it can safely use t.GetInNetworkLsas() 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.InNetworkLsas == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetInNssaLsas added in v0.9.1

func (t *Ospfv3Router_Counters) GetInNssaLsas() uint64

GetInNssaLsas retrieves the value of the leaf InNssaLsas from the Ospfv3Router_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 InNssaLsas is set, it can safely use t.GetInNssaLsas() 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.InNssaLsas == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetInRouterLsas added in v0.9.1

func (t *Ospfv3Router_Counters) GetInRouterLsas() uint64

GetInRouterLsas retrieves the value of the leaf InRouterLsas from the Ospfv3Router_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 InRouterLsas is set, it can safely use t.GetInRouterLsas() 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.InRouterLsas == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetOutDbds added in v0.9.1

func (t *Ospfv3Router_Counters) GetOutDbds() uint64

GetOutDbds retrieves the value of the leaf OutDbds from the Ospfv3Router_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 OutDbds is set, it can safely use t.GetOutDbds() 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.OutDbds == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetOutExternalLsas added in v0.9.1

func (t *Ospfv3Router_Counters) GetOutExternalLsas() uint64

GetOutExternalLsas retrieves the value of the leaf OutExternalLsas from the Ospfv3Router_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 OutExternalLsas is set, it can safely use t.GetOutExternalLsas() 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.OutExternalLsas == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetOutHellos added in v0.9.1

func (t *Ospfv3Router_Counters) GetOutHellos() uint64

GetOutHellos retrieves the value of the leaf OutHellos from the Ospfv3Router_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 OutHellos is set, it can safely use t.GetOutHellos() 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.OutHellos == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetOutInterAreaPrefixLsas added in v0.9.1

func (t *Ospfv3Router_Counters) GetOutInterAreaPrefixLsas() uint64

GetOutInterAreaPrefixLsas retrieves the value of the leaf OutInterAreaPrefixLsas from the Ospfv3Router_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 OutInterAreaPrefixLsas is set, it can safely use t.GetOutInterAreaPrefixLsas() 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.OutInterAreaPrefixLsas == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetOutInterAreaRouterLsas added in v0.9.1

func (t *Ospfv3Router_Counters) GetOutInterAreaRouterLsas() uint64

GetOutInterAreaRouterLsas retrieves the value of the leaf OutInterAreaRouterLsas from the Ospfv3Router_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 OutInterAreaRouterLsas is set, it can safely use t.GetOutInterAreaRouterLsas() 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.OutInterAreaRouterLsas == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetOutIntraAreaPrefixLsas added in v0.9.1

func (t *Ospfv3Router_Counters) GetOutIntraAreaPrefixLsas() uint64

GetOutIntraAreaPrefixLsas retrieves the value of the leaf OutIntraAreaPrefixLsas from the Ospfv3Router_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 OutIntraAreaPrefixLsas is set, it can safely use t.GetOutIntraAreaPrefixLsas() 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.OutIntraAreaPrefixLsas == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetOutLinkLsas added in v0.9.1

func (t *Ospfv3Router_Counters) GetOutLinkLsas() uint64

GetOutLinkLsas retrieves the value of the leaf OutLinkLsas from the Ospfv3Router_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 OutLinkLsas is set, it can safely use t.GetOutLinkLsas() 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.OutLinkLsas == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetOutLsAcks added in v0.9.1

func (t *Ospfv3Router_Counters) GetOutLsAcks() uint64

GetOutLsAcks retrieves the value of the leaf OutLsAcks from the Ospfv3Router_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 OutLsAcks is set, it can safely use t.GetOutLsAcks() 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.OutLsAcks == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetOutLsRequests added in v0.9.1

func (t *Ospfv3Router_Counters) GetOutLsRequests() uint64

GetOutLsRequests retrieves the value of the leaf OutLsRequests from the Ospfv3Router_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 OutLsRequests is set, it can safely use t.GetOutLsRequests() 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.OutLsRequests == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetOutLsUpdates added in v0.9.1

func (t *Ospfv3Router_Counters) GetOutLsUpdates() uint64

GetOutLsUpdates retrieves the value of the leaf OutLsUpdates from the Ospfv3Router_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 OutLsUpdates is set, it can safely use t.GetOutLsUpdates() 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.OutLsUpdates == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetOutLsas added in v0.9.1

func (t *Ospfv3Router_Counters) GetOutLsas() uint64

GetOutLsas retrieves the value of the leaf OutLsas from the Ospfv3Router_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 OutLsas is set, it can safely use t.GetOutLsas() 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.OutLsas == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetOutNetworkLsas added in v0.9.1

func (t *Ospfv3Router_Counters) GetOutNetworkLsas() uint64

GetOutNetworkLsas retrieves the value of the leaf OutNetworkLsas from the Ospfv3Router_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 OutNetworkLsas is set, it can safely use t.GetOutNetworkLsas() 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.OutNetworkLsas == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetOutNssaLsas added in v0.9.1

func (t *Ospfv3Router_Counters) GetOutNssaLsas() uint64

GetOutNssaLsas retrieves the value of the leaf OutNssaLsas from the Ospfv3Router_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 OutNssaLsas is set, it can safely use t.GetOutNssaLsas() 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.OutNssaLsas == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetOutRouterLsas added in v0.9.1

func (t *Ospfv3Router_Counters) GetOutRouterLsas() uint64

GetOutRouterLsas retrieves the value of the leaf OutRouterLsas from the Ospfv3Router_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 OutRouterLsas is set, it can safely use t.GetOutRouterLsas() 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.OutRouterLsas == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetSessionsDown added in v0.9.1

func (t *Ospfv3Router_Counters) GetSessionsDown() uint64

GetSessionsDown retrieves the value of the leaf SessionsDown from the Ospfv3Router_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 SessionsDown is set, it can safely use t.GetSessionsDown() 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.SessionsDown == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetSessionsFlap added in v0.9.1

func (t *Ospfv3Router_Counters) GetSessionsFlap() uint64

GetSessionsFlap retrieves the value of the leaf SessionsFlap from the Ospfv3Router_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 SessionsFlap is set, it can safely use t.GetSessionsFlap() 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.SessionsFlap == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) GetSessionsUp added in v0.9.1

func (t *Ospfv3Router_Counters) GetSessionsUp() uint64

GetSessionsUp retrieves the value of the leaf SessionsUp from the Ospfv3Router_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 SessionsUp is set, it can safely use t.GetSessionsUp() 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.SessionsUp == nil' before retrieving the leaf's value.

func (*Ospfv3Router_Counters) IsYANGGoStruct added in v0.9.1

func (*Ospfv3Router_Counters) IsYANGGoStruct()

IsYANGGoStruct ensures that Ospfv3Router_Counters implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ospfv3Router_Counters) PopulateDefaults added in v0.9.1

func (t *Ospfv3Router_Counters) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Ospfv3Router_Counters with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Ospfv3Router_Counters) SetInDbds added in v0.9.1

func (t *Ospfv3Router_Counters) SetInDbds(v uint64)

SetInDbds sets the value of the leaf InDbds in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetInExternalLsas added in v0.9.1

func (t *Ospfv3Router_Counters) SetInExternalLsas(v uint64)

SetInExternalLsas sets the value of the leaf InExternalLsas in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetInHellos added in v0.9.1

func (t *Ospfv3Router_Counters) SetInHellos(v uint64)

SetInHellos sets the value of the leaf InHellos in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetInInterAreaPrefixLsas added in v0.9.1

func (t *Ospfv3Router_Counters) SetInInterAreaPrefixLsas(v uint64)

SetInInterAreaPrefixLsas sets the value of the leaf InInterAreaPrefixLsas in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetInInterAreaRouterLsas added in v0.9.1

func (t *Ospfv3Router_Counters) SetInInterAreaRouterLsas(v uint64)

SetInInterAreaRouterLsas sets the value of the leaf InInterAreaRouterLsas in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetInIntraAreaPrefixLsas added in v0.9.1

func (t *Ospfv3Router_Counters) SetInIntraAreaPrefixLsas(v uint64)

SetInIntraAreaPrefixLsas sets the value of the leaf InIntraAreaPrefixLsas in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetInLinkLsas added in v0.9.1

func (t *Ospfv3Router_Counters) SetInLinkLsas(v uint64)

SetInLinkLsas sets the value of the leaf InLinkLsas in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetInLsAcks added in v0.9.1

func (t *Ospfv3Router_Counters) SetInLsAcks(v uint64)

SetInLsAcks sets the value of the leaf InLsAcks in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetInLsRequests added in v0.9.1

func (t *Ospfv3Router_Counters) SetInLsRequests(v uint64)

SetInLsRequests sets the value of the leaf InLsRequests in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetInLsUpdates added in v0.9.1

func (t *Ospfv3Router_Counters) SetInLsUpdates(v uint64)

SetInLsUpdates sets the value of the leaf InLsUpdates in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetInLsas added in v0.9.1

func (t *Ospfv3Router_Counters) SetInLsas(v uint64)

SetInLsas sets the value of the leaf InLsas in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetInNetworkLsas added in v0.9.1

func (t *Ospfv3Router_Counters) SetInNetworkLsas(v uint64)

SetInNetworkLsas sets the value of the leaf InNetworkLsas in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetInNssaLsas added in v0.9.1

func (t *Ospfv3Router_Counters) SetInNssaLsas(v uint64)

SetInNssaLsas sets the value of the leaf InNssaLsas in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetInRouterLsas added in v0.9.1

func (t *Ospfv3Router_Counters) SetInRouterLsas(v uint64)

SetInRouterLsas sets the value of the leaf InRouterLsas in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetOutDbds added in v0.9.1

func (t *Ospfv3Router_Counters) SetOutDbds(v uint64)

SetOutDbds sets the value of the leaf OutDbds in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetOutExternalLsas added in v0.9.1

func (t *Ospfv3Router_Counters) SetOutExternalLsas(v uint64)

SetOutExternalLsas sets the value of the leaf OutExternalLsas in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetOutHellos added in v0.9.1

func (t *Ospfv3Router_Counters) SetOutHellos(v uint64)

SetOutHellos sets the value of the leaf OutHellos in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetOutInterAreaPrefixLsas added in v0.9.1

func (t *Ospfv3Router_Counters) SetOutInterAreaPrefixLsas(v uint64)

SetOutInterAreaPrefixLsas sets the value of the leaf OutInterAreaPrefixLsas in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetOutInterAreaRouterLsas added in v0.9.1

func (t *Ospfv3Router_Counters) SetOutInterAreaRouterLsas(v uint64)

SetOutInterAreaRouterLsas sets the value of the leaf OutInterAreaRouterLsas in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetOutIntraAreaPrefixLsas added in v0.9.1

func (t *Ospfv3Router_Counters) SetOutIntraAreaPrefixLsas(v uint64)

SetOutIntraAreaPrefixLsas sets the value of the leaf OutIntraAreaPrefixLsas in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetOutLinkLsas added in v0.9.1

func (t *Ospfv3Router_Counters) SetOutLinkLsas(v uint64)

SetOutLinkLsas sets the value of the leaf OutLinkLsas in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetOutLsAcks added in v0.9.1

func (t *Ospfv3Router_Counters) SetOutLsAcks(v uint64)

SetOutLsAcks sets the value of the leaf OutLsAcks in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetOutLsRequests added in v0.9.1

func (t *Ospfv3Router_Counters) SetOutLsRequests(v uint64)

SetOutLsRequests sets the value of the leaf OutLsRequests in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetOutLsUpdates added in v0.9.1

func (t *Ospfv3Router_Counters) SetOutLsUpdates(v uint64)

SetOutLsUpdates sets the value of the leaf OutLsUpdates in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetOutLsas added in v0.9.1

func (t *Ospfv3Router_Counters) SetOutLsas(v uint64)

SetOutLsas sets the value of the leaf OutLsas in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetOutNetworkLsas added in v0.9.1

func (t *Ospfv3Router_Counters) SetOutNetworkLsas(v uint64)

SetOutNetworkLsas sets the value of the leaf OutNetworkLsas in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetOutNssaLsas added in v0.9.1

func (t *Ospfv3Router_Counters) SetOutNssaLsas(v uint64)

SetOutNssaLsas sets the value of the leaf OutNssaLsas in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetOutRouterLsas added in v0.9.1

func (t *Ospfv3Router_Counters) SetOutRouterLsas(v uint64)

SetOutRouterLsas sets the value of the leaf OutRouterLsas in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetSessionsDown added in v0.9.1

func (t *Ospfv3Router_Counters) SetSessionsDown(v uint64)

SetSessionsDown sets the value of the leaf SessionsDown in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetSessionsFlap added in v0.9.1

func (t *Ospfv3Router_Counters) SetSessionsFlap(v uint64)

SetSessionsFlap sets the value of the leaf SessionsFlap in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) SetSessionsUp added in v0.9.1

func (t *Ospfv3Router_Counters) SetSessionsUp(v uint64)

SetSessionsUp sets the value of the leaf SessionsUp in the Ospfv3Router_Counters struct.

func (*Ospfv3Router_Counters) Validate added in v0.9.1

func (t *Ospfv3Router_Counters) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Ospfv3Router_Counters) ΛBelongingModule added in v0.9.1

func (*Ospfv3Router_Counters) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Ospfv3Router_Counters.

func (*Ospfv3Router_Counters) ΛEnumTypeMap added in v0.9.1

func (t *Ospfv3Router_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 (*Ospfv3Router_Counters) ΛValidate added in v0.9.1

func (t *Ospfv3Router_Counters) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Ospfv3Router_LinkStateDatabase added in v0.9.1

type Ospfv3Router_LinkStateDatabase struct {
	LsaStates *Ospfv3Router_LinkStateDatabase_LsaStates `path:"lsa-states" module:"open-traffic-generator-ospfv3"`
}

Ospfv3Router_LinkStateDatabase represents the /open-traffic-generator-ospfv3/ospfv3-routers/ospfv3-router/state/link-state-database YANG schema element.

func (*Ospfv3Router_LinkStateDatabase) GetLsaStates added in v0.9.1

GetLsaStates returns the value of the LsaStates struct pointer from Ospfv3Router_LinkStateDatabase. If the receiver or the field LsaStates is nil, nil is returned such that the Get* methods can be safely chained.

func (*Ospfv3Router_LinkStateDatabase) GetOrCreateLsaStates added in v0.9.1

GetOrCreateLsaStates retrieves the value of the LsaStates field or returns the existing field if it already exists.

func (*Ospfv3Router_LinkStateDatabase) IsYANGGoStruct added in v0.9.1

func (*Ospfv3Router_LinkStateDatabase) IsYANGGoStruct()

IsYANGGoStruct ensures that Ospfv3Router_LinkStateDatabase implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ospfv3Router_LinkStateDatabase) PopulateDefaults added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Ospfv3Router_LinkStateDatabase with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Ospfv3Router_LinkStateDatabase) Validate added in v0.9.1

Validate validates s against the YANG schema corresponding to its type.

func (*Ospfv3Router_LinkStateDatabase) ΛBelongingModule added in v0.9.1

func (*Ospfv3Router_LinkStateDatabase) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Ospfv3Router_LinkStateDatabase.

func (*Ospfv3Router_LinkStateDatabase) ΛEnumTypeMap added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase) Λ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 (*Ospfv3Router_LinkStateDatabase) ΛValidate added in v0.9.1

Validate validates s against the YANG schema corresponding to its type.

type Ospfv3Router_LinkStateDatabase_LsaStates added in v0.9.1

type Ospfv3Router_LinkStateDatabase_LsaStates struct {
	ExternalAsLsa      map[string]*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa      `path:"external-as-lsa" module:"open-traffic-generator-ospfv3"`
	InterAreaPrefixLsa map[string]*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa `path:"inter-area-prefix-lsa" module:"open-traffic-generator-ospfv3"`
	InterAreaRouterLsa map[string]*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa `path:"inter-area-router-lsa" module:"open-traffic-generator-ospfv3"`
	IntraAreaPrefixLsa map[string]*Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa `path:"intra-area-prefix-lsa" module:"open-traffic-generator-ospfv3"`
	LinkLsa            map[string]*Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa            `path:"link-lsa" module:"open-traffic-generator-ospfv3"`
	NetworkLsa         map[string]*Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa         `path:"network-lsa" module:"open-traffic-generator-ospfv3"`
	NssaLsa            map[string]*Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa            `path:"nssa-lsa" module:"open-traffic-generator-ospfv3"`
	RouterLsa          map[string]*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa          `path:"router-lsa" module:"open-traffic-generator-ospfv3"`
}

Ospfv3Router_LinkStateDatabase_LsaStates represents the /open-traffic-generator-ospfv3/ospfv3-routers/ospfv3-router/state/link-state-database/lsa-states YANG schema element.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) AppendExternalAsLsa added in v0.9.1

AppendExternalAsLsa appends the supplied Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa struct to the list ExternalAsLsa of Ospfv3Router_LinkStateDatabase_LsaStates. If the key value(s) specified in the supplied Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa already exist in the list, an error is returned.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) AppendInterAreaPrefixLsa added in v0.9.1

AppendInterAreaPrefixLsa appends the supplied Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa struct to the list InterAreaPrefixLsa of Ospfv3Router_LinkStateDatabase_LsaStates. If the key value(s) specified in the supplied Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa already exist in the list, an error is returned.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) AppendInterAreaRouterLsa added in v0.9.1

AppendInterAreaRouterLsa appends the supplied Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa struct to the list InterAreaRouterLsa of Ospfv3Router_LinkStateDatabase_LsaStates. If the key value(s) specified in the supplied Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa already exist in the list, an error is returned.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) AppendIntraAreaPrefixLsa added in v0.9.1

AppendIntraAreaPrefixLsa appends the supplied Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa struct to the list IntraAreaPrefixLsa of Ospfv3Router_LinkStateDatabase_LsaStates. If the key value(s) specified in the supplied Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa already exist in the list, an error is returned.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) AppendLinkLsa added in v0.9.1

AppendLinkLsa appends the supplied Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa struct to the list LinkLsa of Ospfv3Router_LinkStateDatabase_LsaStates. If the key value(s) specified in the supplied Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa already exist in the list, an error is returned.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) AppendNetworkLsa added in v0.9.1

AppendNetworkLsa appends the supplied Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa struct to the list NetworkLsa of Ospfv3Router_LinkStateDatabase_LsaStates. If the key value(s) specified in the supplied Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa already exist in the list, an error is returned.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) AppendNssaLsa added in v0.9.1

AppendNssaLsa appends the supplied Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa struct to the list NssaLsa of Ospfv3Router_LinkStateDatabase_LsaStates. If the key value(s) specified in the supplied Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa already exist in the list, an error is returned.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) AppendRouterLsa added in v0.9.1

AppendRouterLsa appends the supplied Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa struct to the list RouterLsa of Ospfv3Router_LinkStateDatabase_LsaStates. If the key value(s) specified in the supplied Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa already exist in the list, an error is returned.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) DeleteExternalAsLsa added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates) DeleteExternalAsLsa(LinkStateId string)

DeleteExternalAsLsa deletes the value with the specified keys from the receiver Ospfv3Router_LinkStateDatabase_LsaStates. If there is no such element, the function is a no-op.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) DeleteInterAreaPrefixLsa added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates) DeleteInterAreaPrefixLsa(LinkStateId string)

DeleteInterAreaPrefixLsa deletes the value with the specified keys from the receiver Ospfv3Router_LinkStateDatabase_LsaStates. If there is no such element, the function is a no-op.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) DeleteInterAreaRouterLsa added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates) DeleteInterAreaRouterLsa(LinkStateId string)

DeleteInterAreaRouterLsa deletes the value with the specified keys from the receiver Ospfv3Router_LinkStateDatabase_LsaStates. If there is no such element, the function is a no-op.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) DeleteIntraAreaPrefixLsa added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates) DeleteIntraAreaPrefixLsa(LinkStateId string)

DeleteIntraAreaPrefixLsa deletes the value with the specified keys from the receiver Ospfv3Router_LinkStateDatabase_LsaStates. If there is no such element, the function is a no-op.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) DeleteLinkLsa added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates) DeleteLinkLsa(LinkStateId string)

DeleteLinkLsa deletes the value with the specified keys from the receiver Ospfv3Router_LinkStateDatabase_LsaStates. If there is no such element, the function is a no-op.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) DeleteNetworkLsa added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates) DeleteNetworkLsa(LinkStateId string)

DeleteNetworkLsa deletes the value with the specified keys from the receiver Ospfv3Router_LinkStateDatabase_LsaStates. If there is no such element, the function is a no-op.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) DeleteNssaLsa added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates) DeleteNssaLsa(LinkStateId string)

DeleteNssaLsa deletes the value with the specified keys from the receiver Ospfv3Router_LinkStateDatabase_LsaStates. If there is no such element, the function is a no-op.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) DeleteRouterLsa added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates) DeleteRouterLsa(LinkStateId string)

DeleteRouterLsa deletes the value with the specified keys from the receiver Ospfv3Router_LinkStateDatabase_LsaStates. If there is no such element, the function is a no-op.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) GetExternalAsLsa added in v0.9.1

GetExternalAsLsa retrieves the value with the specified key from the ExternalAsLsa map field of Ospfv3Router_LinkStateDatabase_LsaStates. 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 (*Ospfv3Router_LinkStateDatabase_LsaStates) GetInterAreaPrefixLsa added in v0.9.1

GetInterAreaPrefixLsa retrieves the value with the specified key from the InterAreaPrefixLsa map field of Ospfv3Router_LinkStateDatabase_LsaStates. 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 (*Ospfv3Router_LinkStateDatabase_LsaStates) GetInterAreaRouterLsa added in v0.9.1

GetInterAreaRouterLsa retrieves the value with the specified key from the InterAreaRouterLsa map field of Ospfv3Router_LinkStateDatabase_LsaStates. 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 (*Ospfv3Router_LinkStateDatabase_LsaStates) GetIntraAreaPrefixLsa added in v0.9.1

GetIntraAreaPrefixLsa retrieves the value with the specified key from the IntraAreaPrefixLsa map field of Ospfv3Router_LinkStateDatabase_LsaStates. 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 (*Ospfv3Router_LinkStateDatabase_LsaStates) GetLinkLsa added in v0.9.1

GetLinkLsa retrieves the value with the specified key from the LinkLsa map field of Ospfv3Router_LinkStateDatabase_LsaStates. 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 (*Ospfv3Router_LinkStateDatabase_LsaStates) GetNetworkLsa added in v0.9.1

GetNetworkLsa retrieves the value with the specified key from the NetworkLsa map field of Ospfv3Router_LinkStateDatabase_LsaStates. 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 (*Ospfv3Router_LinkStateDatabase_LsaStates) GetNssaLsa added in v0.9.1

GetNssaLsa retrieves the value with the specified key from the NssaLsa map field of Ospfv3Router_LinkStateDatabase_LsaStates. 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 (*Ospfv3Router_LinkStateDatabase_LsaStates) GetOrCreateExternalAsLsa added in v0.9.1

GetOrCreateExternalAsLsa retrieves the value with the specified keys from the receiver Ospfv3Router_LinkStateDatabase_LsaStates. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) GetOrCreateExternalAsLsaMap added in v0.9.1

GetOrCreateExternalAsLsaMap returns the list (map) from Ospfv3Router_LinkStateDatabase_LsaStates.

It initializes the field if not already initialized.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) GetOrCreateInterAreaPrefixLsa added in v0.9.1

GetOrCreateInterAreaPrefixLsa retrieves the value with the specified keys from the receiver Ospfv3Router_LinkStateDatabase_LsaStates. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) GetOrCreateInterAreaPrefixLsaMap added in v0.9.1

GetOrCreateInterAreaPrefixLsaMap returns the list (map) from Ospfv3Router_LinkStateDatabase_LsaStates.

It initializes the field if not already initialized.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) GetOrCreateInterAreaRouterLsa added in v0.9.1

GetOrCreateInterAreaRouterLsa retrieves the value with the specified keys from the receiver Ospfv3Router_LinkStateDatabase_LsaStates. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) GetOrCreateInterAreaRouterLsaMap added in v0.9.1

GetOrCreateInterAreaRouterLsaMap returns the list (map) from Ospfv3Router_LinkStateDatabase_LsaStates.

It initializes the field if not already initialized.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) GetOrCreateIntraAreaPrefixLsa added in v0.9.1

GetOrCreateIntraAreaPrefixLsa retrieves the value with the specified keys from the receiver Ospfv3Router_LinkStateDatabase_LsaStates. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) GetOrCreateIntraAreaPrefixLsaMap added in v0.9.1

GetOrCreateIntraAreaPrefixLsaMap returns the list (map) from Ospfv3Router_LinkStateDatabase_LsaStates.

It initializes the field if not already initialized.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) GetOrCreateLinkLsa added in v0.9.1

GetOrCreateLinkLsa retrieves the value with the specified keys from the receiver Ospfv3Router_LinkStateDatabase_LsaStates. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) GetOrCreateLinkLsaMap added in v0.9.1

GetOrCreateLinkLsaMap returns the list (map) from Ospfv3Router_LinkStateDatabase_LsaStates.

It initializes the field if not already initialized.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) GetOrCreateNetworkLsa added in v0.9.1

GetOrCreateNetworkLsa retrieves the value with the specified keys from the receiver Ospfv3Router_LinkStateDatabase_LsaStates. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) GetOrCreateNetworkLsaMap added in v0.9.1

GetOrCreateNetworkLsaMap returns the list (map) from Ospfv3Router_LinkStateDatabase_LsaStates.

It initializes the field if not already initialized.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) GetOrCreateNssaLsa added in v0.9.1

GetOrCreateNssaLsa retrieves the value with the specified keys from the receiver Ospfv3Router_LinkStateDatabase_LsaStates. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) GetOrCreateNssaLsaMap added in v0.9.1

GetOrCreateNssaLsaMap returns the list (map) from Ospfv3Router_LinkStateDatabase_LsaStates.

It initializes the field if not already initialized.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) GetOrCreateRouterLsa added in v0.9.1

GetOrCreateRouterLsa retrieves the value with the specified keys from the receiver Ospfv3Router_LinkStateDatabase_LsaStates. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) GetOrCreateRouterLsaMap added in v0.9.1

GetOrCreateRouterLsaMap returns the list (map) from Ospfv3Router_LinkStateDatabase_LsaStates.

It initializes the field if not already initialized.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) GetRouterLsa added in v0.9.1

GetRouterLsa retrieves the value with the specified key from the RouterLsa map field of Ospfv3Router_LinkStateDatabase_LsaStates. 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 (*Ospfv3Router_LinkStateDatabase_LsaStates) IsYANGGoStruct added in v0.9.1

func (*Ospfv3Router_LinkStateDatabase_LsaStates) IsYANGGoStruct()

IsYANGGoStruct ensures that Ospfv3Router_LinkStateDatabase_LsaStates implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) NewExternalAsLsa added in v0.9.1

NewExternalAsLsa creates a new entry in the ExternalAsLsa list of the Ospfv3Router_LinkStateDatabase_LsaStates struct. The keys of the list are populated from the input arguments.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) NewInterAreaPrefixLsa added in v0.9.1

NewInterAreaPrefixLsa creates a new entry in the InterAreaPrefixLsa list of the Ospfv3Router_LinkStateDatabase_LsaStates struct. The keys of the list are populated from the input arguments.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) NewInterAreaRouterLsa added in v0.9.1

NewInterAreaRouterLsa creates a new entry in the InterAreaRouterLsa list of the Ospfv3Router_LinkStateDatabase_LsaStates struct. The keys of the list are populated from the input arguments.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) NewIntraAreaPrefixLsa added in v0.9.1

NewIntraAreaPrefixLsa creates a new entry in the IntraAreaPrefixLsa list of the Ospfv3Router_LinkStateDatabase_LsaStates struct. The keys of the list are populated from the input arguments.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) NewLinkLsa added in v0.9.1

NewLinkLsa creates a new entry in the LinkLsa list of the Ospfv3Router_LinkStateDatabase_LsaStates struct. The keys of the list are populated from the input arguments.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) NewNetworkLsa added in v0.9.1

NewNetworkLsa creates a new entry in the NetworkLsa list of the Ospfv3Router_LinkStateDatabase_LsaStates struct. The keys of the list are populated from the input arguments.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) NewNssaLsa added in v0.9.1

NewNssaLsa creates a new entry in the NssaLsa list of the Ospfv3Router_LinkStateDatabase_LsaStates struct. The keys of the list are populated from the input arguments.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) NewRouterLsa added in v0.9.1

NewRouterLsa creates a new entry in the RouterLsa list of the Ospfv3Router_LinkStateDatabase_LsaStates struct. The keys of the list are populated from the input arguments.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) PopulateDefaults added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Ospfv3Router_LinkStateDatabase_LsaStates with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) RenameExternalAsLsa added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates) RenameExternalAsLsa(oldK, newK string) error

RenameExternalAsLsa renames an entry in the list ExternalAsLsa within the Ospfv3Router_LinkStateDatabase_LsaStates struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) RenameInterAreaPrefixLsa added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates) RenameInterAreaPrefixLsa(oldK, newK string) error

RenameInterAreaPrefixLsa renames an entry in the list InterAreaPrefixLsa within the Ospfv3Router_LinkStateDatabase_LsaStates struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) RenameInterAreaRouterLsa added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates) RenameInterAreaRouterLsa(oldK, newK string) error

RenameInterAreaRouterLsa renames an entry in the list InterAreaRouterLsa within the Ospfv3Router_LinkStateDatabase_LsaStates struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) RenameIntraAreaPrefixLsa added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates) RenameIntraAreaPrefixLsa(oldK, newK string) error

RenameIntraAreaPrefixLsa renames an entry in the list IntraAreaPrefixLsa within the Ospfv3Router_LinkStateDatabase_LsaStates struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) RenameLinkLsa added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates) RenameLinkLsa(oldK, newK string) error

RenameLinkLsa renames an entry in the list LinkLsa within the Ospfv3Router_LinkStateDatabase_LsaStates struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) RenameNetworkLsa added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates) RenameNetworkLsa(oldK, newK string) error

RenameNetworkLsa renames an entry in the list NetworkLsa within the Ospfv3Router_LinkStateDatabase_LsaStates struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) RenameNssaLsa added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates) RenameNssaLsa(oldK, newK string) error

RenameNssaLsa renames an entry in the list NssaLsa within the Ospfv3Router_LinkStateDatabase_LsaStates struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) RenameRouterLsa added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates) RenameRouterLsa(oldK, newK string) error

RenameRouterLsa renames an entry in the list RouterLsa within the Ospfv3Router_LinkStateDatabase_LsaStates struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) Validate added in v0.9.1

Validate validates s against the YANG schema corresponding to its type.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) ΛBelongingModule added in v0.9.1

func (*Ospfv3Router_LinkStateDatabase_LsaStates) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Ospfv3Router_LinkStateDatabase_LsaStates.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) ΛEnumTypeMap added in v0.9.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Ospfv3Router_LinkStateDatabase_LsaStates) ΛValidate added in v0.9.1

Validate validates s against the YANG schema corresponding to its type.

type Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa added in v0.9.1

type Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa struct {
	AddressPrefix     *string `path:"state/address-prefix" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	AdvertisingRouter *string `path:"state/advertising-router" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	Age               *uint16 `path:"state/age" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	ForwardingAddress *string `path:"state/forwarding-address" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	LinkStateId       *string `` /* 213-byte string literal not displayed */
	Metric            *uint32 `path:"state/metric" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	PrefixLength      *uint32 `path:"state/prefix-length" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	ReferencedLsType  *uint32 `path:"state/referenced-ls-type" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	RouteTag          *string `path:"state/route-tag" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	SequenceNumber    *uint32 `path:"state/sequence-number" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
}

Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa represents the /open-traffic-generator-ospfv3/ospfv3-routers/ospfv3-router/state/link-state-database/lsa-states/external-as-lsa YANG schema element.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) GetAddressPrefix added in v0.9.1

GetAddressPrefix retrieves the value of the leaf AddressPrefix from the Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa 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 AddressPrefix is set, it can safely use t.GetAddressPrefix() 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.AddressPrefix == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) GetAdvertisingRouter added in v0.9.1

GetAdvertisingRouter retrieves the value of the leaf AdvertisingRouter from the Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa 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 AdvertisingRouter is set, it can safely use t.GetAdvertisingRouter() 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.AdvertisingRouter == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) GetAge added in v0.9.1

GetAge retrieves the value of the leaf Age from the Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa 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 Age is set, it can safely use t.GetAge() 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.Age == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) GetForwardingAddress added in v0.9.1

GetForwardingAddress retrieves the value of the leaf ForwardingAddress from the Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa 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 ForwardingAddress is set, it can safely use t.GetForwardingAddress() 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.ForwardingAddress == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) GetLinkStateId added in v0.9.1

GetLinkStateId retrieves the value of the leaf LinkStateId from the Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa 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 LinkStateId is set, it can safely use t.GetLinkStateId() 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.LinkStateId == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) GetMetric added in v0.9.1

GetMetric retrieves the value of the leaf Metric from the Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa 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 Metric is set, it can safely use t.GetMetric() 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.Metric == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) GetPrefixLength added in v0.9.1

GetPrefixLength retrieves the value of the leaf PrefixLength from the Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa 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 PrefixLength is set, it can safely use t.GetPrefixLength() 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.PrefixLength == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) GetReferencedLsType added in v0.9.1

GetReferencedLsType retrieves the value of the leaf ReferencedLsType from the Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa 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 ReferencedLsType is set, it can safely use t.GetReferencedLsType() 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.ReferencedLsType == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) GetRouteTag added in v0.9.1

GetRouteTag retrieves the value of the leaf RouteTag from the Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa 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 RouteTag is set, it can safely use t.GetRouteTag() 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.RouteTag == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) GetSequenceNumber added in v0.9.1

GetSequenceNumber retrieves the value of the leaf SequenceNumber from the Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa 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 SequenceNumber is set, it can safely use t.GetSequenceNumber() 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.SequenceNumber == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) IsYANGGoStruct added in v0.9.1

IsYANGGoStruct ensures that Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) PopulateDefaults added in v0.9.1

PopulateDefaults recursively populates unset leaf fields in the Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) SetAddressPrefix added in v0.9.1

SetAddressPrefix sets the value of the leaf AddressPrefix in the Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) SetAdvertisingRouter added in v0.9.1

SetAdvertisingRouter sets the value of the leaf AdvertisingRouter in the Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) SetAge added in v0.9.1

SetAge sets the value of the leaf Age in the Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) SetForwardingAddress added in v0.9.1

SetForwardingAddress sets the value of the leaf ForwardingAddress in the Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) SetLinkStateId added in v0.9.1

SetLinkStateId sets the value of the leaf LinkStateId in the Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) SetMetric added in v0.9.1

SetMetric sets the value of the leaf Metric in the Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) SetPrefixLength added in v0.9.1

SetPrefixLength sets the value of the leaf PrefixLength in the Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) SetReferencedLsType added in v0.9.1

SetReferencedLsType sets the value of the leaf ReferencedLsType in the Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) SetRouteTag added in v0.9.1

SetRouteTag sets the value of the leaf RouteTag in the Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) SetSequenceNumber added in v0.9.1

SetSequenceNumber sets the value of the leaf SequenceNumber in the Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) Validate added in v0.9.1

Validate validates s against the YANG schema corresponding to its type.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) ΛBelongingModule added in v0.9.1

ΛBelongingModule returns the name of the module that defines the namespace of Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) ΛEnumTypeMap added in v0.9.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) ΛListKeyMap added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa struct, which is a YANG list entry.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_ExternalAsLsa) ΛValidate added in v0.9.1

Validate validates s against the YANG schema corresponding to its type.

type Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa added in v0.9.1

type Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa struct {
	AddressPrefix     *string `path:"state/address-prefix" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	AdvertisingRouter *string `path:"state/advertising-router" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	Age               *uint16 `path:"state/age" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	LinkStateId       *string `` /* 213-byte string literal not displayed */
	Metric            *uint32 `path:"state/metric" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	PrefixLength      *uint32 `path:"state/prefix-length" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	SequenceNumber    *uint32 `path:"state/sequence-number" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
}

Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa represents the /open-traffic-generator-ospfv3/ospfv3-routers/ospfv3-router/state/link-state-database/lsa-states/inter-area-prefix-lsa YANG schema element.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa) GetAddressPrefix added in v0.9.1

GetAddressPrefix retrieves the value of the leaf AddressPrefix from the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa 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 AddressPrefix is set, it can safely use t.GetAddressPrefix() 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.AddressPrefix == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa) GetAdvertisingRouter added in v0.9.1

GetAdvertisingRouter retrieves the value of the leaf AdvertisingRouter from the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa 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 AdvertisingRouter is set, it can safely use t.GetAdvertisingRouter() 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.AdvertisingRouter == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa) GetAge added in v0.9.1

GetAge retrieves the value of the leaf Age from the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa 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 Age is set, it can safely use t.GetAge() 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.Age == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa) GetLinkStateId added in v0.9.1

GetLinkStateId retrieves the value of the leaf LinkStateId from the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa 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 LinkStateId is set, it can safely use t.GetLinkStateId() 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.LinkStateId == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa) GetMetric added in v0.9.1

GetMetric retrieves the value of the leaf Metric from the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa 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 Metric is set, it can safely use t.GetMetric() 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.Metric == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa) GetPrefixLength added in v0.9.1

GetPrefixLength retrieves the value of the leaf PrefixLength from the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa 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 PrefixLength is set, it can safely use t.GetPrefixLength() 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.PrefixLength == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa) GetSequenceNumber added in v0.9.1

GetSequenceNumber retrieves the value of the leaf SequenceNumber from the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa 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 SequenceNumber is set, it can safely use t.GetSequenceNumber() 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.SequenceNumber == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa) IsYANGGoStruct added in v0.9.1

IsYANGGoStruct ensures that Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa) PopulateDefaults added in v0.9.1

PopulateDefaults recursively populates unset leaf fields in the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa) SetAddressPrefix added in v0.9.1

SetAddressPrefix sets the value of the leaf AddressPrefix in the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa) SetAdvertisingRouter added in v0.9.1

SetAdvertisingRouter sets the value of the leaf AdvertisingRouter in the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa) SetAge added in v0.9.1

SetAge sets the value of the leaf Age in the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa) SetLinkStateId added in v0.9.1

SetLinkStateId sets the value of the leaf LinkStateId in the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa) SetMetric added in v0.9.1

SetMetric sets the value of the leaf Metric in the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa) SetPrefixLength added in v0.9.1

SetPrefixLength sets the value of the leaf PrefixLength in the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa) SetSequenceNumber added in v0.9.1

SetSequenceNumber sets the value of the leaf SequenceNumber in the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa) Validate added in v0.9.1

Validate validates s against the YANG schema corresponding to its type.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa) ΛBelongingModule added in v0.9.1

ΛBelongingModule returns the name of the module that defines the namespace of Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa) ΛEnumTypeMap added in v0.9.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa) ΛListKeyMap added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa struct, which is a YANG list entry.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaPrefixLsa) ΛValidate added in v0.9.1

Validate validates s against the YANG schema corresponding to its type.

type Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa added in v0.9.1

type Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa struct {
	AdvertisingRouter *string `path:"state/advertising-router" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	Age               *uint16 `path:"state/age" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	DestinationRouter *string `path:"state/destination_router" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	LinkStateId       *string `` /* 213-byte string literal not displayed */
	Metric            *uint32 `path:"state/metric" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	SequenceNumber    *uint32 `path:"state/sequence-number" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
}

Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa represents the /open-traffic-generator-ospfv3/ospfv3-routers/ospfv3-router/state/link-state-database/lsa-states/inter-area-router-lsa YANG schema element.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa) GetAdvertisingRouter added in v0.9.1

GetAdvertisingRouter retrieves the value of the leaf AdvertisingRouter from the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa 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 AdvertisingRouter is set, it can safely use t.GetAdvertisingRouter() 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.AdvertisingRouter == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa) GetAge added in v0.9.1

GetAge retrieves the value of the leaf Age from the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa 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 Age is set, it can safely use t.GetAge() 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.Age == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa) GetDestinationRouter added in v0.9.1

GetDestinationRouter retrieves the value of the leaf DestinationRouter from the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa 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 DestinationRouter is set, it can safely use t.GetDestinationRouter() 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.DestinationRouter == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa) GetLinkStateId added in v0.9.1

GetLinkStateId retrieves the value of the leaf LinkStateId from the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa 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 LinkStateId is set, it can safely use t.GetLinkStateId() 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.LinkStateId == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa) GetMetric added in v0.9.1

GetMetric retrieves the value of the leaf Metric from the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa 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 Metric is set, it can safely use t.GetMetric() 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.Metric == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa) GetSequenceNumber added in v0.9.1

GetSequenceNumber retrieves the value of the leaf SequenceNumber from the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa 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 SequenceNumber is set, it can safely use t.GetSequenceNumber() 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.SequenceNumber == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa) IsYANGGoStruct added in v0.9.1

IsYANGGoStruct ensures that Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa) PopulateDefaults added in v0.9.1

PopulateDefaults recursively populates unset leaf fields in the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa) SetAdvertisingRouter added in v0.9.1

SetAdvertisingRouter sets the value of the leaf AdvertisingRouter in the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa) SetAge added in v0.9.1

SetAge sets the value of the leaf Age in the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa) SetDestinationRouter added in v0.9.1

SetDestinationRouter sets the value of the leaf DestinationRouter in the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa) SetLinkStateId added in v0.9.1

SetLinkStateId sets the value of the leaf LinkStateId in the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa) SetMetric added in v0.9.1

SetMetric sets the value of the leaf Metric in the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa) SetSequenceNumber added in v0.9.1

SetSequenceNumber sets the value of the leaf SequenceNumber in the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa) Validate added in v0.9.1

Validate validates s against the YANG schema corresponding to its type.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa) ΛBelongingModule added in v0.9.1

ΛBelongingModule returns the name of the module that defines the namespace of Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa) ΛEnumTypeMap added in v0.9.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa) ΛListKeyMap added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa struct, which is a YANG list entry.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_InterAreaRouterLsa) ΛValidate added in v0.9.1

Validate validates s against the YANG schema corresponding to its type.

type Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa added in v0.9.1

type Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa struct {
	AddressPrefix     *string `path:"state/address-prefix" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	AdvertisingRouter *string `path:"state/advertising-router" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	Age               *uint16 `path:"state/age" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	LinkStateId       *string `` /* 213-byte string literal not displayed */
	Metric            *uint32 `path:"state/metric" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	PrefixLength      *uint32 `path:"state/prefix-length" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	SequenceNumber    *uint32 `path:"state/sequence-number" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
}

Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa represents the /open-traffic-generator-ospfv3/ospfv3-routers/ospfv3-router/state/link-state-database/lsa-states/intra-area-prefix-lsa YANG schema element.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa) GetAddressPrefix added in v0.9.1

GetAddressPrefix retrieves the value of the leaf AddressPrefix from the Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa 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 AddressPrefix is set, it can safely use t.GetAddressPrefix() 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.AddressPrefix == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa) GetAdvertisingRouter added in v0.9.1

GetAdvertisingRouter retrieves the value of the leaf AdvertisingRouter from the Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa 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 AdvertisingRouter is set, it can safely use t.GetAdvertisingRouter() 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.AdvertisingRouter == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa) GetAge added in v0.9.1

GetAge retrieves the value of the leaf Age from the Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa 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 Age is set, it can safely use t.GetAge() 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.Age == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa) GetLinkStateId added in v0.9.1

GetLinkStateId retrieves the value of the leaf LinkStateId from the Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa 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 LinkStateId is set, it can safely use t.GetLinkStateId() 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.LinkStateId == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa) GetMetric added in v0.9.1

GetMetric retrieves the value of the leaf Metric from the Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa 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 Metric is set, it can safely use t.GetMetric() 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.Metric == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa) GetPrefixLength added in v0.9.1

GetPrefixLength retrieves the value of the leaf PrefixLength from the Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa 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 PrefixLength is set, it can safely use t.GetPrefixLength() 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.PrefixLength == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa) GetSequenceNumber added in v0.9.1

GetSequenceNumber retrieves the value of the leaf SequenceNumber from the Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa 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 SequenceNumber is set, it can safely use t.GetSequenceNumber() 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.SequenceNumber == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa) IsYANGGoStruct added in v0.9.1

IsYANGGoStruct ensures that Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa) PopulateDefaults added in v0.9.1

PopulateDefaults recursively populates unset leaf fields in the Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa) SetAddressPrefix added in v0.9.1

SetAddressPrefix sets the value of the leaf AddressPrefix in the Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa) SetAdvertisingRouter added in v0.9.1

SetAdvertisingRouter sets the value of the leaf AdvertisingRouter in the Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa) SetAge added in v0.9.1

SetAge sets the value of the leaf Age in the Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa) SetLinkStateId added in v0.9.1

SetLinkStateId sets the value of the leaf LinkStateId in the Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa) SetMetric added in v0.9.1

SetMetric sets the value of the leaf Metric in the Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa) SetPrefixLength added in v0.9.1

SetPrefixLength sets the value of the leaf PrefixLength in the Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa) SetSequenceNumber added in v0.9.1

SetSequenceNumber sets the value of the leaf SequenceNumber in the Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa) Validate added in v0.9.1

Validate validates s against the YANG schema corresponding to its type.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa) ΛBelongingModule added in v0.9.1

ΛBelongingModule returns the name of the module that defines the namespace of Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa) ΛEnumTypeMap added in v0.9.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa) ΛListKeyMap added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa struct, which is a YANG list entry.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_IntraAreaPrefixLsa) ΛValidate added in v0.9.1

Validate validates s against the YANG schema corresponding to its type.

type Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa added in v0.9.1

type Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa struct {
	AddressPrefix     *string `path:"state/address-prefix" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	AdvertisingRouter *string `path:"state/advertising-router" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	Age               *uint16 `path:"state/age" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	LinkLocalAddress  *string `path:"state/link-local-address" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	LinkStateId       *string `` /* 213-byte string literal not displayed */
	PrefixLength      *uint32 `path:"state/prefix-length" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	SequenceNumber    *uint32 `path:"state/sequence-number" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
}

Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa represents the /open-traffic-generator-ospfv3/ospfv3-routers/ospfv3-router/state/link-state-database/lsa-states/link-lsa YANG schema element.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa) GetAddressPrefix added in v0.9.1

GetAddressPrefix retrieves the value of the leaf AddressPrefix from the Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa 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 AddressPrefix is set, it can safely use t.GetAddressPrefix() 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.AddressPrefix == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa) GetAdvertisingRouter added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa) GetAdvertisingRouter() string

GetAdvertisingRouter retrieves the value of the leaf AdvertisingRouter from the Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa 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 AdvertisingRouter is set, it can safely use t.GetAdvertisingRouter() 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.AdvertisingRouter == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa) GetAge added in v0.9.1

GetAge retrieves the value of the leaf Age from the Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa 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 Age is set, it can safely use t.GetAge() 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.Age == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa) GetLinkLocalAddress added in v0.9.1

GetLinkLocalAddress retrieves the value of the leaf LinkLocalAddress from the Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa 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 LinkLocalAddress is set, it can safely use t.GetLinkLocalAddress() 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.LinkLocalAddress == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa) GetLinkStateId added in v0.9.1

GetLinkStateId retrieves the value of the leaf LinkStateId from the Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa 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 LinkStateId is set, it can safely use t.GetLinkStateId() 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.LinkStateId == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa) GetPrefixLength added in v0.9.1

GetPrefixLength retrieves the value of the leaf PrefixLength from the Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa 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 PrefixLength is set, it can safely use t.GetPrefixLength() 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.PrefixLength == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa) GetSequenceNumber added in v0.9.1

GetSequenceNumber retrieves the value of the leaf SequenceNumber from the Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa 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 SequenceNumber is set, it can safely use t.GetSequenceNumber() 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.SequenceNumber == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa) IsYANGGoStruct added in v0.9.1

IsYANGGoStruct ensures that Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa) PopulateDefaults added in v0.9.1

PopulateDefaults recursively populates unset leaf fields in the Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa) SetAddressPrefix added in v0.9.1

SetAddressPrefix sets the value of the leaf AddressPrefix in the Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa) SetAdvertisingRouter added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa) SetAdvertisingRouter(v string)

SetAdvertisingRouter sets the value of the leaf AdvertisingRouter in the Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa) SetAge added in v0.9.1

SetAge sets the value of the leaf Age in the Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa) SetLinkLocalAddress added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa) SetLinkLocalAddress(v string)

SetLinkLocalAddress sets the value of the leaf LinkLocalAddress in the Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa) SetLinkStateId added in v0.9.1

SetLinkStateId sets the value of the leaf LinkStateId in the Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa) SetPrefixLength added in v0.9.1

SetPrefixLength sets the value of the leaf PrefixLength in the Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa) SetSequenceNumber added in v0.9.1

SetSequenceNumber sets the value of the leaf SequenceNumber in the Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa) Validate added in v0.9.1

Validate validates s against the YANG schema corresponding to its type.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa) ΛBelongingModule added in v0.9.1

ΛBelongingModule returns the name of the module that defines the namespace of Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa) ΛEnumTypeMap added in v0.9.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa) ΛListKeyMap added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa struct, which is a YANG list entry.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_LinkLsa) ΛValidate added in v0.9.1

Validate validates s against the YANG schema corresponding to its type.

type Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa added in v0.9.1

type Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa struct {
	AdvertisingRouter *string  `path:"state/advertising-router" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	Age               *uint16  `path:"state/age" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	AttachedRouter    []string `path:"state/attached-router" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	LinkStateId       *string  `` /* 213-byte string literal not displayed */
	SequenceNumber    *uint32  `path:"state/sequence-number" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
}

Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa represents the /open-traffic-generator-ospfv3/ospfv3-routers/ospfv3-router/state/link-state-database/lsa-states/network-lsa YANG schema element.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa) GetAdvertisingRouter added in v0.9.1

GetAdvertisingRouter retrieves the value of the leaf AdvertisingRouter from the Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa 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 AdvertisingRouter is set, it can safely use t.GetAdvertisingRouter() 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.AdvertisingRouter == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa) GetAge added in v0.9.1

GetAge retrieves the value of the leaf Age from the Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa 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 Age is set, it can safely use t.GetAge() 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.Age == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa) GetAttachedRouter added in v0.9.1

GetAttachedRouter retrieves the value of the leaf AttachedRouter from the Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa 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 AttachedRouter is set, it can safely use t.GetAttachedRouter() 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.AttachedRouter == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa) GetLinkStateId added in v0.9.1

GetLinkStateId retrieves the value of the leaf LinkStateId from the Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa 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 LinkStateId is set, it can safely use t.GetLinkStateId() 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.LinkStateId == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa) GetSequenceNumber added in v0.9.1

GetSequenceNumber retrieves the value of the leaf SequenceNumber from the Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa 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 SequenceNumber is set, it can safely use t.GetSequenceNumber() 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.SequenceNumber == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa) IsYANGGoStruct added in v0.9.1

IsYANGGoStruct ensures that Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa) PopulateDefaults added in v0.9.1

PopulateDefaults recursively populates unset leaf fields in the Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa) SetAdvertisingRouter added in v0.9.1

SetAdvertisingRouter sets the value of the leaf AdvertisingRouter in the Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa) SetAge added in v0.9.1

SetAge sets the value of the leaf Age in the Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa) SetAttachedRouter added in v0.9.1

SetAttachedRouter sets the value of the leaf AttachedRouter in the Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa) SetLinkStateId added in v0.9.1

SetLinkStateId sets the value of the leaf LinkStateId in the Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa) SetSequenceNumber added in v0.9.1

SetSequenceNumber sets the value of the leaf SequenceNumber in the Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa) Validate added in v0.9.1

Validate validates s against the YANG schema corresponding to its type.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa) ΛBelongingModule added in v0.9.1

ΛBelongingModule returns the name of the module that defines the namespace of Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa) ΛEnumTypeMap added in v0.9.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa) ΛListKeyMap added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa struct, which is a YANG list entry.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NetworkLsa) ΛValidate added in v0.9.1

Validate validates s against the YANG schema corresponding to its type.

type Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa added in v0.9.1

type Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa struct {
	AddressPrefix     *string `path:"state/address-prefix" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	AdvertisingRouter *string `path:"state/advertising-router" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	Age               *uint16 `path:"state/age" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	ForwardingAddress *string `path:"state/forwarding-address" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	LinkStateId       *string `` /* 213-byte string literal not displayed */
	Metric            *uint32 `path:"state/metric" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	PrefixLength      *uint32 `path:"state/prefix-length" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	RouteTag          *string `path:"state/route-tag" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	SequenceNumber    *uint32 `path:"state/sequence-number" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
}

Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa represents the /open-traffic-generator-ospfv3/ospfv3-routers/ospfv3-router/state/link-state-database/lsa-states/nssa-lsa YANG schema element.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) GetAddressPrefix added in v0.9.1

GetAddressPrefix retrieves the value of the leaf AddressPrefix from the Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa 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 AddressPrefix is set, it can safely use t.GetAddressPrefix() 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.AddressPrefix == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) GetAdvertisingRouter added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) GetAdvertisingRouter() string

GetAdvertisingRouter retrieves the value of the leaf AdvertisingRouter from the Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa 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 AdvertisingRouter is set, it can safely use t.GetAdvertisingRouter() 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.AdvertisingRouter == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) GetAge added in v0.9.1

GetAge retrieves the value of the leaf Age from the Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa 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 Age is set, it can safely use t.GetAge() 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.Age == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) GetForwardingAddress added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) GetForwardingAddress() string

GetForwardingAddress retrieves the value of the leaf ForwardingAddress from the Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa 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 ForwardingAddress is set, it can safely use t.GetForwardingAddress() 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.ForwardingAddress == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) GetLinkStateId added in v0.9.1

GetLinkStateId retrieves the value of the leaf LinkStateId from the Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa 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 LinkStateId is set, it can safely use t.GetLinkStateId() 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.LinkStateId == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) GetMetric added in v0.9.1

GetMetric retrieves the value of the leaf Metric from the Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa 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 Metric is set, it can safely use t.GetMetric() 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.Metric == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) GetPrefixLength added in v0.9.1

GetPrefixLength retrieves the value of the leaf PrefixLength from the Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa 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 PrefixLength is set, it can safely use t.GetPrefixLength() 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.PrefixLength == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) GetRouteTag added in v0.9.1

GetRouteTag retrieves the value of the leaf RouteTag from the Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa 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 RouteTag is set, it can safely use t.GetRouteTag() 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.RouteTag == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) GetSequenceNumber added in v0.9.1

GetSequenceNumber retrieves the value of the leaf SequenceNumber from the Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa 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 SequenceNumber is set, it can safely use t.GetSequenceNumber() 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.SequenceNumber == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) IsYANGGoStruct added in v0.9.1

IsYANGGoStruct ensures that Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) PopulateDefaults added in v0.9.1

PopulateDefaults recursively populates unset leaf fields in the Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) SetAddressPrefix added in v0.9.1

SetAddressPrefix sets the value of the leaf AddressPrefix in the Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) SetAdvertisingRouter added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) SetAdvertisingRouter(v string)

SetAdvertisingRouter sets the value of the leaf AdvertisingRouter in the Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) SetAge added in v0.9.1

SetAge sets the value of the leaf Age in the Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) SetForwardingAddress added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) SetForwardingAddress(v string)

SetForwardingAddress sets the value of the leaf ForwardingAddress in the Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) SetLinkStateId added in v0.9.1

SetLinkStateId sets the value of the leaf LinkStateId in the Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) SetMetric added in v0.9.1

SetMetric sets the value of the leaf Metric in the Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) SetPrefixLength added in v0.9.1

SetPrefixLength sets the value of the leaf PrefixLength in the Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) SetRouteTag added in v0.9.1

SetRouteTag sets the value of the leaf RouteTag in the Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) SetSequenceNumber added in v0.9.1

SetSequenceNumber sets the value of the leaf SequenceNumber in the Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) Validate added in v0.9.1

Validate validates s against the YANG schema corresponding to its type.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) ΛBelongingModule added in v0.9.1

ΛBelongingModule returns the name of the module that defines the namespace of Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) ΛEnumTypeMap added in v0.9.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) ΛListKeyMap added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa struct, which is a YANG list entry.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_NssaLsa) ΛValidate added in v0.9.1

Validate validates s against the YANG schema corresponding to its type.

type Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa added in v0.9.1

type Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa struct {
	AdvertisingRouter *string                                                    `path:"state/advertising-router" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	Age               *uint16                                                    `path:"state/age" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	Link              []*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa_Link `path:"state/link" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	LinkStateId       *string                                                    `` /* 213-byte string literal not displayed */
	NeighborRouter    *string                                                    `path:"state/neighbor-router" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	SequenceNumber    *uint32                                                    `path:"state/sequence-number" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
}

Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa represents the /open-traffic-generator-ospfv3/ospfv3-routers/ospfv3-router/state/link-state-database/lsa-states/router-lsa YANG schema element.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa) GetAdvertisingRouter added in v0.9.1

GetAdvertisingRouter retrieves the value of the leaf AdvertisingRouter from the Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa 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 AdvertisingRouter is set, it can safely use t.GetAdvertisingRouter() 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.AdvertisingRouter == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa) GetAge added in v0.9.1

GetAge retrieves the value of the leaf Age from the Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa 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 Age is set, it can safely use t.GetAge() 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.Age == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa) GetLinkStateId added in v0.9.1

GetLinkStateId retrieves the value of the leaf LinkStateId from the Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa 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 LinkStateId is set, it can safely use t.GetLinkStateId() 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.LinkStateId == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa) GetNeighborRouter added in v0.9.1

GetNeighborRouter retrieves the value of the leaf NeighborRouter from the Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa 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 NeighborRouter is set, it can safely use t.GetNeighborRouter() 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.NeighborRouter == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa) GetSequenceNumber added in v0.9.1

GetSequenceNumber retrieves the value of the leaf SequenceNumber from the Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa 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 SequenceNumber is set, it can safely use t.GetSequenceNumber() 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.SequenceNumber == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa) IsYANGGoStruct added in v0.9.1

IsYANGGoStruct ensures that Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa) PopulateDefaults added in v0.9.1

PopulateDefaults recursively populates unset leaf fields in the Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa) SetAdvertisingRouter added in v0.9.1

SetAdvertisingRouter sets the value of the leaf AdvertisingRouter in the Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa) SetAge added in v0.9.1

SetAge sets the value of the leaf Age in the Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa) SetLinkStateId added in v0.9.1

SetLinkStateId sets the value of the leaf LinkStateId in the Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa) SetNeighborRouter added in v0.9.1

SetNeighborRouter sets the value of the leaf NeighborRouter in the Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa) SetSequenceNumber added in v0.9.1

SetSequenceNumber sets the value of the leaf SequenceNumber in the Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa) Validate added in v0.9.1

Validate validates s against the YANG schema corresponding to its type.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa) ΛBelongingModule added in v0.9.1

ΛBelongingModule returns the name of the module that defines the namespace of Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa) ΛEnumTypeMap added in v0.9.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa) ΛListKeyMap added in v0.9.1

func (t *Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa struct, which is a YANG list entry.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa) ΛValidate added in v0.9.1

Validate validates s against the YANG schema corresponding to its type.

type Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa_Link struct {
	Metric *uint16      `path:"metric" module:"open-traffic-generator-ospfv3"`
	Type   E_State_Type `path:"type" module:"open-traffic-generator-ospfv3"`
}

Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa_Link represents the /open-traffic-generator-ospfv3/ospfv3-routers/ospfv3-router/state/link-state-database/lsa-states/router-lsa/state/link YANG schema element.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa_Link) GetMetric added in v0.9.1

GetMetric retrieves the value of the leaf Metric from the Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa_Link 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 Metric is set, it can safely use t.GetMetric() 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.Metric == nil' before retrieving the leaf's value.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa_Link) GetType added in v0.9.1

GetType retrieves the value of the leaf Type from the Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa_Link 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 (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa_Link) IsYANGGoStruct added in v0.9.1

IsYANGGoStruct ensures that Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa_Link implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa_Link) PopulateDefaults added in v0.9.1

PopulateDefaults recursively populates unset leaf fields in the Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa_Link with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa_Link) SetMetric added in v0.9.1

SetMetric sets the value of the leaf Metric in the Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa_Link struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa_Link) SetType added in v0.9.1

SetType sets the value of the leaf Type in the Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa_Link struct.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa_Link) Validate added in v0.9.1

Validate validates s against the YANG schema corresponding to its type.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa_Link) ΛBelongingModule added in v0.9.1

ΛBelongingModule returns the name of the module that defines the namespace of Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa_Link.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa_Link) ΛEnumTypeMap added in v0.9.1

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Ospfv3Router_LinkStateDatabase_LsaStates_RouterLsa_Link) ΛValidate added in v0.9.1

Validate validates s against the YANG schema corresponding to its type.

type Port

type Port struct {
	Counters   *Port_Counters `path:"state/counters" module:"open-traffic-generator-port/open-traffic-generator-port"`
	InRate     Binary         `path:"state/in-rate" module:"open-traffic-generator-port/open-traffic-generator-port"`
	LastChange *uint64        `path:"state/last-change" module:"open-traffic-generator-port/open-traffic-generator-port"`
	Link       E_Port_Link    `path:"state/link" module:"open-traffic-generator-port/open-traffic-generator-port"`
	Name       *string        `` /* 178-byte string literal not displayed */
	OutRate    Binary         `path:"state/out-rate" module:"open-traffic-generator-port/open-traffic-generator-port"`
}

Port represents the /open-traffic-generator-port/ports/port YANG schema element.

func (*Port) GetCounters

func (t *Port) GetCounters() *Port_Counters

GetCounters returns the value of the Counters struct pointer from Port. If the receiver or the field Counters is nil, nil is returned such that the Get* methods can be safely chained.

func (*Port) GetInRate

func (t *Port) GetInRate() Binary

GetInRate retrieves the value of the leaf InRate from the Port struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if InRate is set, it can safely use t.GetInRate() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.InRate == nil' before retrieving the leaf's value.

func (*Port) GetLastChange added in v0.7.1

func (t *Port) GetLastChange() uint64

GetLastChange retrieves the value of the leaf LastChange from the Port struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if 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 (t *Port) GetLink() E_Port_Link

GetLink retrieves the value of the leaf Link from the Port struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Link is set, it can safely use t.GetLink() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Link == nil' before retrieving the leaf's value.

func (*Port) GetName

func (t *Port) GetName() string

GetName retrieves the value of the leaf Name from the Port struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if Name is set, it can safely use t.GetName() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.Name == nil' before retrieving the leaf's value.

func (*Port) GetOrCreateCounters

func (t *Port) GetOrCreateCounters() *Port_Counters

GetOrCreateCounters retrieves the value of the Counters field or returns the existing field if it already exists.

func (*Port) GetOutRate

func (t *Port) GetOutRate() Binary

GetOutRate retrieves the value of the leaf OutRate from the Port struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if OutRate is set, it can safely use t.GetOutRate() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.OutRate == nil' before retrieving the leaf's value.

func (*Port) IsYANGGoStruct

func (*Port) IsYANGGoStruct()

IsYANGGoStruct ensures that Port implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Port) PopulateDefaults

func (t *Port) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Port with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Port) SetInRate

func (t *Port) SetInRate(v Binary)

SetInRate sets the value of the leaf InRate in the Port struct.

func (*Port) SetLastChange added in v0.7.1

func (t *Port) SetLastChange(v uint64)

SetLastChange sets the value of the leaf LastChange in the Port struct.

func (t *Port) SetLink(v E_Port_Link)

SetLink sets the value of the leaf Link in the Port struct.

func (*Port) SetName

func (t *Port) SetName(v string)

SetName sets the value of the leaf Name in the Port struct.

func (*Port) SetOutRate

func (t *Port) SetOutRate(v Binary)

SetOutRate sets the value of the leaf OutRate in the Port struct.

func (*Port) Validate

func (t *Port) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Port) ΛBelongingModule

func (*Port) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Port.

func (*Port) ΛEnumTypeMap

func (t *Port) ΛEnumTypeMap() map[string][]reflect.Type

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Port) ΛListKeyMap

func (t *Port) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the Port struct, which is a YANG list entry.

func (*Port) ΛValidate

func (t *Port) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Port_Counters

type Port_Counters struct {
	InFrames  *uint64 `path:"in-frames" module:"open-traffic-generator-port"`
	InOctets  *uint64 `path:"in-octets" module:"open-traffic-generator-port"`
	OutFrames *uint64 `path:"out-frames" module:"open-traffic-generator-port"`
	OutOctets *uint64 `path:"out-octets" module:"open-traffic-generator-port"`
}

Port_Counters represents the /open-traffic-generator-port/ports/port/state/counters YANG schema element.

func (*Port_Counters) GetInFrames

func (t *Port_Counters) GetInFrames() uint64

GetInFrames retrieves the value of the leaf InFrames from the Port_Counters struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if InFrames is set, it can safely use t.GetInFrames() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.InFrames == nil' before retrieving the leaf's value.

func (*Port_Counters) GetInOctets

func (t *Port_Counters) GetInOctets() uint64

GetInOctets retrieves the value of the leaf InOctets from the Port_Counters struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if InOctets is set, it can safely use t.GetInOctets() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.InOctets == nil' before retrieving the leaf's value.

func (*Port_Counters) GetOutFrames

func (t *Port_Counters) GetOutFrames() uint64

GetOutFrames retrieves the value of the leaf OutFrames from the Port_Counters struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if OutFrames is set, it can safely use t.GetOutFrames() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.OutFrames == nil' before retrieving the leaf's value.

func (*Port_Counters) GetOutOctets

func (t *Port_Counters) GetOutOctets() uint64

GetOutOctets retrieves the value of the leaf OutOctets from the Port_Counters struct. If the field is unset but has a default value in the YANG schema, then the default value will be returned. Caution should be exercised whilst using this method since when without a default value, it will return the Go zero value if the field is explicitly unset. If the caller explicitly does not care if OutOctets is set, it can safely use t.GetOutOctets() to retrieve the value. In the case that the caller has different actions based on whether the leaf is set or unset, it should use 'if t.OutOctets == nil' before retrieving the leaf's value.

func (*Port_Counters) IsYANGGoStruct

func (*Port_Counters) IsYANGGoStruct()

IsYANGGoStruct ensures that Port_Counters implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Port_Counters) PopulateDefaults

func (t *Port_Counters) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Port_Counters with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Port_Counters) SetInFrames

func (t *Port_Counters) SetInFrames(v uint64)

SetInFrames sets the value of the leaf InFrames in the Port_Counters struct.

func (*Port_Counters) SetInOctets

func (t *Port_Counters) SetInOctets(v uint64)

SetInOctets sets the value of the leaf InOctets in the Port_Counters struct.

func (*Port_Counters) SetOutFrames

func (t *Port_Counters) SetOutFrames(v uint64)

SetOutFrames sets the value of the leaf OutFrames in the Port_Counters struct.

func (*Port_Counters) SetOutOctets

func (t *Port_Counters) SetOutOctets(v uint64)

SetOutOctets sets the value of the leaf OutOctets in the Port_Counters struct.

func (*Port_Counters) Validate

func (t *Port_Counters) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Port_Counters) ΛBelongingModule

func (*Port_Counters) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Port_Counters.

func (*Port_Counters) ΛEnumTypeMap

func (t *Port_Counters) ΛEnumTypeMap() map[string][]reflect.Type

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*Port_Counters) ΛValidate

func (t *Port_Counters) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type Root

type Root struct {
	BgpPeer       map[string]*BgpPeer             `path:"bgp-peers/bgp-peer" module:"open-traffic-generator-bgp/open-traffic-generator-bgp"`
	Component     map[E_Component_Name]*Component `path:"components/component" module:"open-traffic-generator-platform/open-traffic-generator-platform"`
	Dhcpv4Client  map[string]*Dhcpv4Client        `path:"dhcpv4-clients/dhcpv4-client" module:"open-traffic-generator-dhcpv4client/open-traffic-generator-dhcpv4client"`
	Dhcpv4Server  map[string]*Dhcpv4Server        `path:"dhcpv4-servers/dhcpv4-server" module:"open-traffic-generator-dhcpv4server/open-traffic-generator-dhcpv4server"`
	Dhcpv6Client  map[string]*Dhcpv6Client        `path:"dhcpv6-clients/dhcpv6-client" module:"open-traffic-generator-dhcpv6client/open-traffic-generator-dhcpv6client"`
	Dhcpv6Server  map[string]*Dhcpv6Server        `path:"dhcpv6-servers/dhcpv6-server" module:"open-traffic-generator-dhcpv6server/open-traffic-generator-dhcpv6server"`
	Flow          map[string]*Flow                `path:"flows/flow" module:"open-traffic-generator-flow/open-traffic-generator-flow"`
	Interface     map[string]*Interface           `path:"interfaces/interface" module:"open-traffic-generator-discovery/open-traffic-generator-discovery"`
	IsisRouter    map[string]*IsisRouter          `path:"isis-routers/isis-router" module:"open-traffic-generator-isis/open-traffic-generator-isis"`
	Lacp          *Lacp                           `path:"lacp" module:"open-traffic-generator-lacp"`
	Lag           map[string]*Lag                 `path:"lags/lag" module:"open-traffic-generator-lag/open-traffic-generator-lag"`
	LldpInterface map[string]*LldpInterface       `path:"lldps/lldp-interface" module:"open-traffic-generator-lldp/open-traffic-generator-lldp"`
	Ospfv2Router  map[string]*Ospfv2Router        `path:"ospfv2-routers/ospfv2-router" module:"open-traffic-generator-ospfv2/open-traffic-generator-ospfv2"`
	Ospfv3Router  map[string]*Ospfv3Router        `path:"ospfv3-routers/ospfv3-router" module:"open-traffic-generator-ospfv3/open-traffic-generator-ospfv3"`
	Port          map[string]*Port                `path:"ports/port" module:"open-traffic-generator-port/open-traffic-generator-port"`
	RsvpteRouter  map[string]*RsvpteRouter        `path:"rsvpte-routers/rsvpte-router" module:"open-traffic-generator-rsvp/open-traffic-generator-rsvp"`
}

Root represents the /root YANG schema element.

func (*Root) AppendBgpPeer

func (t *Root) AppendBgpPeer(v *BgpPeer) error

AppendBgpPeer appends the supplied BgpPeer struct to the list BgpPeer of Root. If the key value(s) specified in the supplied BgpPeer already exist in the list, an error is returned.

func (*Root) AppendComponent added in v0.7.1

func (t *Root) AppendComponent(v *Component) error

AppendComponent appends the supplied Component struct to the list Component of Root. If the key value(s) specified in the supplied Component already exist in the list, an error is returned.

func (*Root) AppendDhcpv4Client added in v0.7.1

func (t *Root) AppendDhcpv4Client(v *Dhcpv4Client) error

AppendDhcpv4Client appends the supplied Dhcpv4Client struct to the list Dhcpv4Client of Root. If the key value(s) specified in the supplied Dhcpv4Client already exist in the list, an error is returned.

func (*Root) AppendDhcpv4Server added in v0.7.1

func (t *Root) AppendDhcpv4Server(v *Dhcpv4Server) error

AppendDhcpv4Server appends the supplied Dhcpv4Server struct to the list Dhcpv4Server of Root. If the key value(s) specified in the supplied Dhcpv4Server already exist in the list, an error is returned.

func (*Root) AppendDhcpv6Client added in v0.7.1

func (t *Root) AppendDhcpv6Client(v *Dhcpv6Client) error

AppendDhcpv6Client appends the supplied Dhcpv6Client struct to the list Dhcpv6Client of Root. If the key value(s) specified in the supplied Dhcpv6Client already exist in the list, an error is returned.

func (*Root) AppendDhcpv6Server added in v0.7.1

func (t *Root) AppendDhcpv6Server(v *Dhcpv6Server) error

AppendDhcpv6Server appends the supplied Dhcpv6Server struct to the list Dhcpv6Server of Root. If the key value(s) specified in the supplied Dhcpv6Server already exist in the list, an error is returned.

func (*Root) AppendFlow

func (t *Root) AppendFlow(v *Flow) error

AppendFlow appends the supplied Flow struct to the list Flow of Root. If the key value(s) specified in the supplied Flow already exist in the list, an error is returned.

func (*Root) AppendInterface

func (t *Root) AppendInterface(v *Interface) error

AppendInterface appends the supplied Interface struct to the list Interface of Root. If the key value(s) specified in the supplied Interface already exist in the list, an error is returned.

func (*Root) AppendIsisRouter

func (t *Root) AppendIsisRouter(v *IsisRouter) error

AppendIsisRouter appends the supplied IsisRouter struct to the list IsisRouter of Root. If the key value(s) specified in the supplied IsisRouter already exist in the list, an error is returned.

func (*Root) AppendLag

func (t *Root) AppendLag(v *Lag) error

AppendLag appends the supplied Lag struct to the list Lag of Root. If the key value(s) specified in the supplied Lag already exist in the list, an error is returned.

func (*Root) AppendLldpInterface

func (t *Root) AppendLldpInterface(v *LldpInterface) error

AppendLldpInterface appends the supplied LldpInterface struct to the list LldpInterface of Root. If the key value(s) specified in the supplied LldpInterface already exist in the list, an error is returned.

func (*Root) AppendOspfv2Router added in v0.7.1

func (t *Root) AppendOspfv2Router(v *Ospfv2Router) error

AppendOspfv2Router appends the supplied Ospfv2Router struct to the list Ospfv2Router of Root. If the key value(s) specified in the supplied Ospfv2Router already exist in the list, an error is returned.

func (*Root) AppendOspfv3Router added in v0.9.1

func (t *Root) AppendOspfv3Router(v *Ospfv3Router) error

AppendOspfv3Router appends the supplied Ospfv3Router struct to the list Ospfv3Router of Root. If the key value(s) specified in the supplied Ospfv3Router already exist in the list, an error is returned.

func (*Root) AppendPort

func (t *Root) AppendPort(v *Port) error

AppendPort appends the supplied Port struct to the list Port of Root. If the key value(s) specified in the supplied Port already exist in the list, an error is returned.

func (*Root) AppendRsvpteRouter

func (t *Root) AppendRsvpteRouter(v *RsvpteRouter) error

AppendRsvpteRouter appends the supplied RsvpteRouter struct to the list RsvpteRouter of Root. If the key value(s) specified in the supplied RsvpteRouter already exist in the list, an error is returned.

func (*Root) DeleteBgpPeer

func (t *Root) DeleteBgpPeer(Name string)

DeleteBgpPeer deletes the value with the specified keys from the receiver Root. If there is no such element, the function is a no-op.

func (*Root) DeleteComponent added in v0.7.1

func (t *Root) DeleteComponent(Name E_Component_Name)

DeleteComponent deletes the value with the specified keys from the receiver Root. If there is no such element, the function is a no-op.

func (*Root) DeleteDhcpv4Client added in v0.7.1

func (t *Root) DeleteDhcpv4Client(Name string)

DeleteDhcpv4Client deletes the value with the specified keys from the receiver Root. If there is no such element, the function is a no-op.

func (*Root) DeleteDhcpv4Server added in v0.7.1

func (t *Root) DeleteDhcpv4Server(Name string)

DeleteDhcpv4Server deletes the value with the specified keys from the receiver Root. If there is no such element, the function is a no-op.

func (*Root) DeleteDhcpv6Client added in v0.7.1

func (t *Root) DeleteDhcpv6Client(Name string)

DeleteDhcpv6Client deletes the value with the specified keys from the receiver Root. If there is no such element, the function is a no-op.

func (*Root) DeleteDhcpv6Server added in v0.7.1

func (t *Root) DeleteDhcpv6Server(Name string)

DeleteDhcpv6Server deletes the value with the specified keys from the receiver Root. If there is no such element, the function is a no-op.

func (*Root) DeleteFlow

func (t *Root) DeleteFlow(Name string)

DeleteFlow deletes the value with the specified keys from the receiver Root. If there is no such element, the function is a no-op.

func (*Root) DeleteInterface

func (t *Root) DeleteInterface(Name string)

DeleteInterface deletes the value with the specified keys from the receiver Root. If there is no such element, the function is a no-op.

func (*Root) DeleteIsisRouter

func (t *Root) DeleteIsisRouter(Name string)

DeleteIsisRouter deletes the value with the specified keys from the receiver Root. If there is no such element, the function is a no-op.

func (*Root) DeleteLag

func (t *Root) DeleteLag(Name string)

DeleteLag deletes the value with the specified keys from the receiver Root. If there is no such element, the function is a no-op.

func (*Root) DeleteLldpInterface

func (t *Root) DeleteLldpInterface(Name string)

DeleteLldpInterface deletes the value with the specified keys from the receiver Root. If there is no such element, the function is a no-op.

func (*Root) DeleteOspfv2Router added in v0.7.1

func (t *Root) DeleteOspfv2Router(Name string)

DeleteOspfv2Router deletes the value with the specified keys from the receiver Root. If there is no such element, the function is a no-op.

func (*Root) DeleteOspfv3Router added in v0.9.1

func (t *Root) DeleteOspfv3Router(Name string)

DeleteOspfv3Router deletes the value with the specified keys from the receiver Root. If there is no such element, the function is a no-op.

func (*Root) DeletePort

func (t *Root) DeletePort(Name string)

DeletePort deletes the value with the specified keys from the receiver Root. If there is no such element, the function is a no-op.

func (*Root) DeleteRsvpteRouter

func (t *Root) DeleteRsvpteRouter(Name string)

DeleteRsvpteRouter deletes the value with the specified keys from the receiver Root. If there is no such element, the function is a no-op.

func (*Root) GetBgpPeer

func (t *Root) GetBgpPeer(Name string) *BgpPeer

GetBgpPeer retrieves the value with the specified key from the BgpPeer map field of Root. 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 (*Root) GetComponent added in v0.7.1

func (t *Root) GetComponent(Name E_Component_Name) *Component

GetComponent retrieves the value with the specified key from the Component map field of Root. 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 (*Root) GetDhcpv4Client added in v0.7.1

func (t *Root) GetDhcpv4Client(Name string) *Dhcpv4Client

GetDhcpv4Client retrieves the value with the specified key from the Dhcpv4Client map field of Root. 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 (*Root) GetDhcpv4Server added in v0.7.1

func (t *Root) GetDhcpv4Server(Name string) *Dhcpv4Server

GetDhcpv4Server retrieves the value with the specified key from the Dhcpv4Server map field of Root. 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 (*Root) GetDhcpv6Client added in v0.7.1

func (t *Root) GetDhcpv6Client(Name string) *Dhcpv6Client

GetDhcpv6Client retrieves the value with the specified key from the Dhcpv6Client map field of Root. 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 (*Root) GetDhcpv6Server added in v0.7.1

func (t *Root) GetDhcpv6Server(Name string) *Dhcpv6Server

GetDhcpv6Server retrieves the value with the specified key from the Dhcpv6Server map field of Root. 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 (*Root) GetFlow

func (t *Root) GetFlow(Name string) *Flow

GetFlow retrieves the value with the specified key from the Flow map field of Root. 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 (*Root) GetInterface

func (t *Root) GetInterface(Name string) *Interface

GetInterface retrieves the value with the specified key from the Interface map field of Root. 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 (*Root) GetIsisRouter

func (t *Root) GetIsisRouter(Name string) *IsisRouter

GetIsisRouter retrieves the value with the specified key from the IsisRouter map field of Root. 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 (*Root) GetLacp

func (t *Root) GetLacp() *Lacp

GetLacp returns the value of the Lacp struct pointer from Root. If the receiver or the field Lacp is nil, nil is returned such that the Get* methods can be safely chained.

func (*Root) GetLag

func (t *Root) GetLag(Name string) *Lag

GetLag retrieves the value with the specified key from the Lag map field of Root. 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 (*Root) GetLldpInterface

func (t *Root) GetLldpInterface(Name string) *LldpInterface

GetLldpInterface retrieves the value with the specified key from the LldpInterface map field of Root. 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 (*Root) GetOrCreateBgpPeer

func (t *Root) GetOrCreateBgpPeer(Name string) *BgpPeer

GetOrCreateBgpPeer retrieves the value with the specified keys from the receiver Root. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Root) GetOrCreateBgpPeerMap added in v0.7.1

func (t *Root) GetOrCreateBgpPeerMap() map[string]*BgpPeer

GetOrCreateBgpPeerMap returns the list (map) from Root.

It initializes the field if not already initialized.

func (*Root) GetOrCreateComponent added in v0.7.1

func (t *Root) GetOrCreateComponent(Name E_Component_Name) *Component

GetOrCreateComponent retrieves the value with the specified keys from the receiver Root. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Root) GetOrCreateComponentMap added in v0.7.1

func (t *Root) GetOrCreateComponentMap() map[E_Component_Name]*Component

GetOrCreateComponentMap returns the list (map) from Root.

It initializes the field if not already initialized.

func (*Root) GetOrCreateDhcpv4Client added in v0.7.1

func (t *Root) GetOrCreateDhcpv4Client(Name string) *Dhcpv4Client

GetOrCreateDhcpv4Client retrieves the value with the specified keys from the receiver Root. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Root) GetOrCreateDhcpv4ClientMap added in v0.7.1

func (t *Root) GetOrCreateDhcpv4ClientMap() map[string]*Dhcpv4Client

GetOrCreateDhcpv4ClientMap returns the list (map) from Root.

It initializes the field if not already initialized.

func (*Root) GetOrCreateDhcpv4Server added in v0.7.1

func (t *Root) GetOrCreateDhcpv4Server(Name string) *Dhcpv4Server

GetOrCreateDhcpv4Server retrieves the value with the specified keys from the receiver Root. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Root) GetOrCreateDhcpv4ServerMap added in v0.7.1

func (t *Root) GetOrCreateDhcpv4ServerMap() map[string]*Dhcpv4Server

GetOrCreateDhcpv4ServerMap returns the list (map) from Root.

It initializes the field if not already initialized.

func (*Root) GetOrCreateDhcpv6Client added in v0.7.1

func (t *Root) GetOrCreateDhcpv6Client(Name string) *Dhcpv6Client

GetOrCreateDhcpv6Client retrieves the value with the specified keys from the receiver Root. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Root) GetOrCreateDhcpv6ClientMap added in v0.7.1

func (t *Root) GetOrCreateDhcpv6ClientMap() map[string]*Dhcpv6Client

GetOrCreateDhcpv6ClientMap returns the list (map) from Root.

It initializes the field if not already initialized.

func (*Root) GetOrCreateDhcpv6Server added in v0.7.1

func (t *Root) GetOrCreateDhcpv6Server(Name string) *Dhcpv6Server

GetOrCreateDhcpv6Server retrieves the value with the specified keys from the receiver Root. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Root) GetOrCreateDhcpv6ServerMap added in v0.7.1

func (t *Root) GetOrCreateDhcpv6ServerMap() map[string]*Dhcpv6Server

GetOrCreateDhcpv6ServerMap returns the list (map) from Root.

It initializes the field if not already initialized.

func (*Root) GetOrCreateFlow

func (t *Root) GetOrCreateFlow(Name string) *Flow

GetOrCreateFlow retrieves the value with the specified keys from the receiver Root. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Root) GetOrCreateFlowMap added in v0.7.1

func (t *Root) GetOrCreateFlowMap() map[string]*Flow

GetOrCreateFlowMap returns the list (map) from Root.

It initializes the field if not already initialized.

func (*Root) GetOrCreateInterface

func (t *Root) GetOrCreateInterface(Name string) *Interface

GetOrCreateInterface retrieves the value with the specified keys from the receiver Root. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Root) GetOrCreateInterfaceMap added in v0.7.1

func (t *Root) GetOrCreateInterfaceMap() map[string]*Interface

GetOrCreateInterfaceMap returns the list (map) from Root.

It initializes the field if not already initialized.

func (*Root) GetOrCreateIsisRouter

func (t *Root) GetOrCreateIsisRouter(Name string) *IsisRouter

GetOrCreateIsisRouter retrieves the value with the specified keys from the receiver Root. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Root) GetOrCreateIsisRouterMap added in v0.7.1

func (t *Root) GetOrCreateIsisRouterMap() map[string]*IsisRouter

GetOrCreateIsisRouterMap returns the list (map) from Root.

It initializes the field if not already initialized.

func (*Root) GetOrCreateLacp

func (t *Root) GetOrCreateLacp() *Lacp

GetOrCreateLacp retrieves the value of the Lacp field or returns the existing field if it already exists.

func (*Root) GetOrCreateLag

func (t *Root) GetOrCreateLag(Name string) *Lag

GetOrCreateLag retrieves the value with the specified keys from the receiver Root. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Root) GetOrCreateLagMap added in v0.7.1

func (t *Root) GetOrCreateLagMap() map[string]*Lag

GetOrCreateLagMap returns the list (map) from Root.

It initializes the field if not already initialized.

func (*Root) GetOrCreateLldpInterface

func (t *Root) GetOrCreateLldpInterface(Name string) *LldpInterface

GetOrCreateLldpInterface retrieves the value with the specified keys from the receiver Root. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Root) GetOrCreateLldpInterfaceMap added in v0.7.1

func (t *Root) GetOrCreateLldpInterfaceMap() map[string]*LldpInterface

GetOrCreateLldpInterfaceMap returns the list (map) from Root.

It initializes the field if not already initialized.

func (*Root) GetOrCreateOspfv2Router added in v0.7.1

func (t *Root) GetOrCreateOspfv2Router(Name string) *Ospfv2Router

GetOrCreateOspfv2Router retrieves the value with the specified keys from the receiver Root. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Root) GetOrCreateOspfv2RouterMap added in v0.7.1

func (t *Root) GetOrCreateOspfv2RouterMap() map[string]*Ospfv2Router

GetOrCreateOspfv2RouterMap returns the list (map) from Root.

It initializes the field if not already initialized.

func (*Root) GetOrCreateOspfv3Router added in v0.9.1

func (t *Root) GetOrCreateOspfv3Router(Name string) *Ospfv3Router

GetOrCreateOspfv3Router retrieves the value with the specified keys from the receiver Root. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Root) GetOrCreateOspfv3RouterMap added in v0.9.1

func (t *Root) GetOrCreateOspfv3RouterMap() map[string]*Ospfv3Router

GetOrCreateOspfv3RouterMap returns the list (map) from Root.

It initializes the field if not already initialized.

func (*Root) GetOrCreatePort

func (t *Root) GetOrCreatePort(Name string) *Port

GetOrCreatePort retrieves the value with the specified keys from the receiver Root. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Root) GetOrCreatePortMap added in v0.7.1

func (t *Root) GetOrCreatePortMap() map[string]*Port

GetOrCreatePortMap returns the list (map) from Root.

It initializes the field if not already initialized.

func (*Root) GetOrCreateRsvpteRouter

func (t *Root) GetOrCreateRsvpteRouter(Name string) *RsvpteRouter

GetOrCreateRsvpteRouter retrieves the value with the specified keys from the receiver Root. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*Root) GetOrCreateRsvpteRouterMap added in v0.7.1

func (t *Root) GetOrCreateRsvpteRouterMap() map[string]*RsvpteRouter

GetOrCreateRsvpteRouterMap returns the list (map) from Root.

It initializes the field if not already initialized.

func (*Root) GetOspfv2Router added in v0.7.1

func (t *Root) GetOspfv2Router(Name string) *Ospfv2Router

GetOspfv2Router retrieves the value with the specified key from the Ospfv2Router map field of Root. 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 (*Root) GetOspfv3Router added in v0.9.1

func (t *Root) GetOspfv3Router(Name string) *Ospfv3Router

GetOspfv3Router retrieves the value with the specified key from the Ospfv3Router map field of Root. 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 (*Root) GetPort

func (t *Root) GetPort(Name string) *Port

GetPort retrieves the value with the specified key from the Port map field of Root. 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 (*Root) GetRsvpteRouter

func (t *Root) GetRsvpteRouter(Name string) *RsvpteRouter

GetRsvpteRouter retrieves the value with the specified key from the RsvpteRouter map field of Root. 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 (*Root) IsYANGGoStruct

func (*Root) IsYANGGoStruct()

IsYANGGoStruct ensures that Root implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*Root) NewBgpPeer

func (t *Root) NewBgpPeer(Name string) (*BgpPeer, error)

NewBgpPeer creates a new entry in the BgpPeer list of the Root struct. The keys of the list are populated from the input arguments.

func (*Root) NewComponent added in v0.7.1

func (t *Root) NewComponent(Name E_Component_Name) (*Component, error)

NewComponent creates a new entry in the Component list of the Root struct. The keys of the list are populated from the input arguments.

func (*Root) NewDhcpv4Client added in v0.7.1

func (t *Root) NewDhcpv4Client(Name string) (*Dhcpv4Client, error)

NewDhcpv4Client creates a new entry in the Dhcpv4Client list of the Root struct. The keys of the list are populated from the input arguments.

func (*Root) NewDhcpv4Server added in v0.7.1

func (t *Root) NewDhcpv4Server(Name string) (*Dhcpv4Server, error)

NewDhcpv4Server creates a new entry in the Dhcpv4Server list of the Root struct. The keys of the list are populated from the input arguments.

func (*Root) NewDhcpv6Client added in v0.7.1

func (t *Root) NewDhcpv6Client(Name string) (*Dhcpv6Client, error)

NewDhcpv6Client creates a new entry in the Dhcpv6Client list of the Root struct. The keys of the list are populated from the input arguments.

func (*Root) NewDhcpv6Server added in v0.7.1

func (t *Root) NewDhcpv6Server(Name string) (*Dhcpv6Server, error)

NewDhcpv6Server creates a new entry in the Dhcpv6Server list of the Root struct. The keys of the list are populated from the input arguments.

func (*Root) NewFlow

func (t *Root) NewFlow(Name string) (*Flow, error)

NewFlow creates a new entry in the Flow list of the Root struct. The keys of the list are populated from the input arguments.

func (*Root) NewInterface

func (t *Root) NewInterface(Name string) (*Interface, error)

NewInterface creates a new entry in the Interface list of the Root struct. The keys of the list are populated from the input arguments.

func (*Root) NewIsisRouter

func (t *Root) NewIsisRouter(Name string) (*IsisRouter, error)

NewIsisRouter creates a new entry in the IsisRouter list of the Root struct. The keys of the list are populated from the input arguments.

func (*Root) NewLag

func (t *Root) NewLag(Name string) (*Lag, error)

NewLag creates a new entry in the Lag list of the Root struct. The keys of the list are populated from the input arguments.

func (*Root) NewLldpInterface

func (t *Root) NewLldpInterface(Name string) (*LldpInterface, error)

NewLldpInterface creates a new entry in the LldpInterface list of the Root struct. The keys of the list are populated from the input arguments.

func (*Root) NewOspfv2Router added in v0.7.1

func (t *Root) NewOspfv2Router(Name string) (*Ospfv2Router, error)

NewOspfv2Router creates a new entry in the Ospfv2Router list of the Root struct. The keys of the list are populated from the input arguments.

func (*Root) NewOspfv3Router added in v0.9.1

func (t *Root) NewOspfv3Router(Name string) (*Ospfv3Router, error)

NewOspfv3Router creates a new entry in the Ospfv3Router list of the Root struct. The keys of the list are populated from the input arguments.

func (*Root) NewPort

func (t *Root) NewPort(Name string) (*Port, error)

NewPort creates a new entry in the Port list of the Root struct. The keys of the list are populated from the input arguments.

func (*Root) NewRsvpteRouter

func (t *Root) NewRsvpteRouter(Name string) (*RsvpteRouter, error)

NewRsvpteRouter creates a new entry in the RsvpteRouter list of the Root struct. The keys of the list are populated from the input arguments.

func (*Root) PopulateDefaults

func (t *Root) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the Root with default values as specified in the YANG schema, instantiating any nil container fields.

func (*Root) RenameBgpPeer added in v0.4.3

func (t *Root) RenameBgpPeer(oldK, newK string) error

RenameBgpPeer renames an entry in the list BgpPeer within the Root struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Root) RenameComponent added in v0.7.1

func (t *Root) RenameComponent(oldK, newK E_Component_Name) error

RenameComponent renames an entry in the list Component within the Root struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Root) RenameDhcpv4Client added in v0.7.1

func (t *Root) RenameDhcpv4Client(oldK, newK string) error

RenameDhcpv4Client renames an entry in the list Dhcpv4Client within the Root struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Root) RenameDhcpv4Server added in v0.7.1

func (t *Root) RenameDhcpv4Server(oldK, newK string) error

RenameDhcpv4Server renames an entry in the list Dhcpv4Server within the Root struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Root) RenameDhcpv6Client added in v0.7.1

func (t *Root) RenameDhcpv6Client(oldK, newK string) error

RenameDhcpv6Client renames an entry in the list Dhcpv6Client within the Root struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Root) RenameDhcpv6Server added in v0.7.1

func (t *Root) RenameDhcpv6Server(oldK, newK string) error

RenameDhcpv6Server renames an entry in the list Dhcpv6Server within the Root struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Root) RenameFlow added in v0.4.3

func (t *Root) RenameFlow(oldK, newK string) error

RenameFlow renames an entry in the list Flow within the Root struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Root) RenameInterface added in v0.4.3

func (t *Root) RenameInterface(oldK, newK string) error

RenameInterface renames an entry in the list Interface within the Root struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Root) RenameIsisRouter added in v0.4.3

func (t *Root) RenameIsisRouter(oldK, newK string) error

RenameIsisRouter renames an entry in the list IsisRouter within the Root struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Root) RenameLag added in v0.4.3

func (t *Root) RenameLag(oldK, newK string) error

RenameLag renames an entry in the list Lag within the Root struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Root) RenameLldpInterface added in v0.4.3

func (t *Root) RenameLldpInterface(oldK, newK string) error

RenameLldpInterface renames an entry in the list LldpInterface within the Root struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Root) RenameOspfv2Router added in v0.7.1

func (t *Root) RenameOspfv2Router(oldK, newK string) error

RenameOspfv2Router renames an entry in the list Ospfv2Router within the Root struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Root) RenameOspfv3Router added in v0.9.1

func (t *Root) RenameOspfv3Router(oldK, newK string) error

RenameOspfv3Router renames an entry in the list Ospfv3Router within the Root struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Root) RenamePort added in v0.4.3

func (t *Root) RenamePort(oldK, newK string) error

RenamePort renames an entry in the list Port within the Root struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Root) RenameRsvpteRouter added in v0.4.3

func (t *Root) RenameRsvpteRouter(oldK, newK string) error

RenameRsvpteRouter renames an entry in the list RsvpteRouter within the Root struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*Root) Validate

func (t *Root) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*Root) ΛBelongingModule

func (*Root) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of Root.

func (*Root) ΛEnumTypeMap

func (t *Root) Λ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 (*Root) ΛValidate

func (t *Root) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type RsvpteRouter

type RsvpteRouter struct {
	Counters                  *RsvpteRouter_Counters                  `path:"state/counters" module:"open-traffic-generator-rsvp/open-traffic-generator-rsvp"`
	LabelSwitchedPathDatabase *RsvpteRouter_LabelSwitchedPathDatabase `path:"state/label-switched-path-database" module:"open-traffic-generator-rsvp/open-traffic-generator-rsvp"`
	Name                      *string                                 `` /* 178-byte string literal not displayed */
}

RsvpteRouter represents the /open-traffic-generator-rsvp/rsvpte-routers/rsvpte-router YANG schema element.

func (*RsvpteRouter) GetCounters

func (t *RsvpteRouter) GetCounters() *RsvpteRouter_Counters

GetCounters returns the value of the Counters struct pointer from RsvpteRouter. If the receiver or the field Counters is nil, nil is returned such that the Get* methods can be safely chained.

func (*RsvpteRouter) GetLabelSwitchedPathDatabase

func (t *RsvpteRouter) GetLabelSwitchedPathDatabase() *RsvpteRouter_LabelSwitchedPathDatabase

GetLabelSwitchedPathDatabase returns the value of the LabelSwitchedPathDatabase struct pointer from RsvpteRouter. If the receiver or the field LabelSwitchedPathDatabase is nil, nil is returned such that the Get* methods can be safely chained.

func (*RsvpteRouter) GetName

func (t *RsvpteRouter) GetName() string

GetName retrieves the value of the leaf Name from the RsvpteRouter 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 (*RsvpteRouter) GetOrCreateCounters

func (t *RsvpteRouter) GetOrCreateCounters() *RsvpteRouter_Counters

GetOrCreateCounters retrieves the value of the Counters field or returns the existing field if it already exists.

func (*RsvpteRouter) GetOrCreateLabelSwitchedPathDatabase

func (t *RsvpteRouter) GetOrCreateLabelSwitchedPathDatabase() *RsvpteRouter_LabelSwitchedPathDatabase

GetOrCreateLabelSwitchedPathDatabase retrieves the value of the LabelSwitchedPathDatabase field or returns the existing field if it already exists.

func (*RsvpteRouter) IsYANGGoStruct

func (*RsvpteRouter) IsYANGGoStruct()

IsYANGGoStruct ensures that RsvpteRouter implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*RsvpteRouter) PopulateDefaults

func (t *RsvpteRouter) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the RsvpteRouter with default values as specified in the YANG schema, instantiating any nil container fields.

func (*RsvpteRouter) SetName

func (t *RsvpteRouter) SetName(v string)

SetName sets the value of the leaf Name in the RsvpteRouter struct.

func (*RsvpteRouter) Validate

func (t *RsvpteRouter) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*RsvpteRouter) ΛBelongingModule

func (*RsvpteRouter) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of RsvpteRouter.

func (*RsvpteRouter) ΛEnumTypeMap

func (t *RsvpteRouter) Λ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 (*RsvpteRouter) ΛListKeyMap

func (t *RsvpteRouter) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the RsvpteRouter struct, which is a YANG list entry.

func (*RsvpteRouter) ΛValidate

func (t *RsvpteRouter) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type RsvpteRouter_Counters

type RsvpteRouter_Counters struct {
	EgressP2PLspsUp          *uint64 `path:"egress-p2p-lsps-up" module:"open-traffic-generator-rsvp"`
	InAcks                   *uint64 `path:"in-acks" module:"open-traffic-generator-rsvp"`
	InBundles                *uint64 `path:"in-bundles" module:"open-traffic-generator-rsvp"`
	InHellos                 *uint64 `path:"in-hellos" module:"open-traffic-generator-rsvp"`
	InNacks                  *uint64 `path:"in-nacks" module:"open-traffic-generator-rsvp"`
	InPathErrors             *uint64 `path:"in-path-errors" module:"open-traffic-generator-rsvp"`
	InPathTears              *uint64 `path:"in-path-tears" module:"open-traffic-generator-rsvp"`
	InPaths                  *uint64 `path:"in-paths" module:"open-traffic-generator-rsvp"`
	InResvConfs              *uint64 `path:"in-resv-confs" module:"open-traffic-generator-rsvp"`
	InResvErrors             *uint64 `path:"in-resv-errors" module:"open-traffic-generator-rsvp"`
	InResvTears              *uint64 `path:"in-resv-tears" module:"open-traffic-generator-rsvp"`
	InResvs                  *uint64 `path:"in-resvs" module:"open-traffic-generator-rsvp"`
	InSrefreshs              *uint64 `path:"in-srefreshs" module:"open-traffic-generator-rsvp"`
	IngressP2PLspsConfigured *uint64 `path:"ingress-p2p-lsps-configured" module:"open-traffic-generator-rsvp"`
	IngressP2PLspsUp         *uint64 `path:"ingress-p2p-lsps-up" module:"open-traffic-generator-rsvp"`
	LspFlaps                 *uint64 `path:"lsp-flaps" module:"open-traffic-generator-rsvp"`
	OutAcks                  *uint64 `path:"out-acks" module:"open-traffic-generator-rsvp"`
	OutBundles               *uint64 `path:"out-bundles" module:"open-traffic-generator-rsvp"`
	OutHellos                *uint64 `path:"out-hellos" module:"open-traffic-generator-rsvp"`
	OutNacks                 *uint64 `path:"out-nacks" module:"open-traffic-generator-rsvp"`
	OutPathErrors            *uint64 `path:"out-path-errors" module:"open-traffic-generator-rsvp"`
	OutPathReevaluationReqs  *uint64 `path:"out-path-reevaluation-reqs" module:"open-traffic-generator-rsvp"`
	OutPathTears             *uint64 `path:"out-path-tears" module:"open-traffic-generator-rsvp"`
	OutPaths                 *uint64 `path:"out-paths" module:"open-traffic-generator-rsvp"`
	OutResvConfs             *uint64 `path:"out-resv-confs" module:"open-traffic-generator-rsvp"`
	OutResvErrors            *uint64 `path:"out-resv-errors" module:"open-traffic-generator-rsvp"`
	OutResvTears             *uint64 `path:"out-resv-tears" module:"open-traffic-generator-rsvp"`
	OutResvs                 *uint64 `path:"out-resvs" module:"open-traffic-generator-rsvp"`
	OutSrefreshs             *uint64 `path:"out-srefreshs" module:"open-traffic-generator-rsvp"`
	PathReoptimizations      *uint64 `path:"path-reoptimizations" module:"open-traffic-generator-rsvp"`
}

RsvpteRouter_Counters represents the /open-traffic-generator-rsvp/rsvpte-routers/rsvpte-router/state/counters YANG schema element.

func (*RsvpteRouter_Counters) GetEgressP2PLspsUp

func (t *RsvpteRouter_Counters) GetEgressP2PLspsUp() uint64

GetEgressP2PLspsUp retrieves the value of the leaf EgressP2PLspsUp from the RsvpteRouter_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 EgressP2PLspsUp is set, it can safely use t.GetEgressP2PLspsUp() 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.EgressP2PLspsUp == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetInAcks

func (t *RsvpteRouter_Counters) GetInAcks() uint64

GetInAcks retrieves the value of the leaf InAcks from the RsvpteRouter_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 InAcks is set, it can safely use t.GetInAcks() 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.InAcks == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetInBundles

func (t *RsvpteRouter_Counters) GetInBundles() uint64

GetInBundles retrieves the value of the leaf InBundles from the RsvpteRouter_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 InBundles is set, it can safely use t.GetInBundles() 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.InBundles == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetInHellos

func (t *RsvpteRouter_Counters) GetInHellos() uint64

GetInHellos retrieves the value of the leaf InHellos from the RsvpteRouter_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 InHellos is set, it can safely use t.GetInHellos() 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.InHellos == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetInNacks

func (t *RsvpteRouter_Counters) GetInNacks() uint64

GetInNacks retrieves the value of the leaf InNacks from the RsvpteRouter_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 InNacks is set, it can safely use t.GetInNacks() 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.InNacks == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetInPathErrors

func (t *RsvpteRouter_Counters) GetInPathErrors() uint64

GetInPathErrors retrieves the value of the leaf InPathErrors from the RsvpteRouter_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 InPathErrors is set, it can safely use t.GetInPathErrors() 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.InPathErrors == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetInPathTears

func (t *RsvpteRouter_Counters) GetInPathTears() uint64

GetInPathTears retrieves the value of the leaf InPathTears from the RsvpteRouter_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 InPathTears is set, it can safely use t.GetInPathTears() 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.InPathTears == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetInPaths

func (t *RsvpteRouter_Counters) GetInPaths() uint64

GetInPaths retrieves the value of the leaf InPaths from the RsvpteRouter_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 InPaths is set, it can safely use t.GetInPaths() 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.InPaths == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetInResvConfs

func (t *RsvpteRouter_Counters) GetInResvConfs() uint64

GetInResvConfs retrieves the value of the leaf InResvConfs from the RsvpteRouter_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 InResvConfs is set, it can safely use t.GetInResvConfs() 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.InResvConfs == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetInResvErrors

func (t *RsvpteRouter_Counters) GetInResvErrors() uint64

GetInResvErrors retrieves the value of the leaf InResvErrors from the RsvpteRouter_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 InResvErrors is set, it can safely use t.GetInResvErrors() 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.InResvErrors == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetInResvTears

func (t *RsvpteRouter_Counters) GetInResvTears() uint64

GetInResvTears retrieves the value of the leaf InResvTears from the RsvpteRouter_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 InResvTears is set, it can safely use t.GetInResvTears() 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.InResvTears == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetInResvs

func (t *RsvpteRouter_Counters) GetInResvs() uint64

GetInResvs retrieves the value of the leaf InResvs from the RsvpteRouter_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 InResvs is set, it can safely use t.GetInResvs() 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.InResvs == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetInSrefreshs

func (t *RsvpteRouter_Counters) GetInSrefreshs() uint64

GetInSrefreshs retrieves the value of the leaf InSrefreshs from the RsvpteRouter_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 InSrefreshs is set, it can safely use t.GetInSrefreshs() 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.InSrefreshs == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetIngressP2PLspsConfigured

func (t *RsvpteRouter_Counters) GetIngressP2PLspsConfigured() uint64

GetIngressP2PLspsConfigured retrieves the value of the leaf IngressP2PLspsConfigured from the RsvpteRouter_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 IngressP2PLspsConfigured is set, it can safely use t.GetIngressP2PLspsConfigured() 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.IngressP2PLspsConfigured == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetIngressP2PLspsUp

func (t *RsvpteRouter_Counters) GetIngressP2PLspsUp() uint64

GetIngressP2PLspsUp retrieves the value of the leaf IngressP2PLspsUp from the RsvpteRouter_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 IngressP2PLspsUp is set, it can safely use t.GetIngressP2PLspsUp() 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.IngressP2PLspsUp == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetLspFlaps

func (t *RsvpteRouter_Counters) GetLspFlaps() uint64

GetLspFlaps retrieves the value of the leaf LspFlaps from the RsvpteRouter_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 LspFlaps is set, it can safely use t.GetLspFlaps() 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.LspFlaps == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetOutAcks

func (t *RsvpteRouter_Counters) GetOutAcks() uint64

GetOutAcks retrieves the value of the leaf OutAcks from the RsvpteRouter_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 OutAcks is set, it can safely use t.GetOutAcks() 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.OutAcks == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetOutBundles

func (t *RsvpteRouter_Counters) GetOutBundles() uint64

GetOutBundles retrieves the value of the leaf OutBundles from the RsvpteRouter_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 OutBundles is set, it can safely use t.GetOutBundles() 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.OutBundles == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetOutHellos

func (t *RsvpteRouter_Counters) GetOutHellos() uint64

GetOutHellos retrieves the value of the leaf OutHellos from the RsvpteRouter_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 OutHellos is set, it can safely use t.GetOutHellos() 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.OutHellos == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetOutNacks

func (t *RsvpteRouter_Counters) GetOutNacks() uint64

GetOutNacks retrieves the value of the leaf OutNacks from the RsvpteRouter_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 OutNacks is set, it can safely use t.GetOutNacks() 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.OutNacks == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetOutPathErrors

func (t *RsvpteRouter_Counters) GetOutPathErrors() uint64

GetOutPathErrors retrieves the value of the leaf OutPathErrors from the RsvpteRouter_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 OutPathErrors is set, it can safely use t.GetOutPathErrors() 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.OutPathErrors == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetOutPathReevaluationReqs

func (t *RsvpteRouter_Counters) GetOutPathReevaluationReqs() uint64

GetOutPathReevaluationReqs retrieves the value of the leaf OutPathReevaluationReqs from the RsvpteRouter_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 OutPathReevaluationReqs is set, it can safely use t.GetOutPathReevaluationReqs() 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.OutPathReevaluationReqs == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetOutPathTears

func (t *RsvpteRouter_Counters) GetOutPathTears() uint64

GetOutPathTears retrieves the value of the leaf OutPathTears from the RsvpteRouter_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 OutPathTears is set, it can safely use t.GetOutPathTears() 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.OutPathTears == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetOutPaths

func (t *RsvpteRouter_Counters) GetOutPaths() uint64

GetOutPaths retrieves the value of the leaf OutPaths from the RsvpteRouter_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 OutPaths is set, it can safely use t.GetOutPaths() 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.OutPaths == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetOutResvConfs

func (t *RsvpteRouter_Counters) GetOutResvConfs() uint64

GetOutResvConfs retrieves the value of the leaf OutResvConfs from the RsvpteRouter_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 OutResvConfs is set, it can safely use t.GetOutResvConfs() 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.OutResvConfs == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetOutResvErrors

func (t *RsvpteRouter_Counters) GetOutResvErrors() uint64

GetOutResvErrors retrieves the value of the leaf OutResvErrors from the RsvpteRouter_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 OutResvErrors is set, it can safely use t.GetOutResvErrors() 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.OutResvErrors == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetOutResvTears

func (t *RsvpteRouter_Counters) GetOutResvTears() uint64

GetOutResvTears retrieves the value of the leaf OutResvTears from the RsvpteRouter_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 OutResvTears is set, it can safely use t.GetOutResvTears() 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.OutResvTears == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetOutResvs

func (t *RsvpteRouter_Counters) GetOutResvs() uint64

GetOutResvs retrieves the value of the leaf OutResvs from the RsvpteRouter_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 OutResvs is set, it can safely use t.GetOutResvs() 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.OutResvs == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetOutSrefreshs

func (t *RsvpteRouter_Counters) GetOutSrefreshs() uint64

GetOutSrefreshs retrieves the value of the leaf OutSrefreshs from the RsvpteRouter_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 OutSrefreshs is set, it can safely use t.GetOutSrefreshs() 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.OutSrefreshs == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) GetPathReoptimizations

func (t *RsvpteRouter_Counters) GetPathReoptimizations() uint64

GetPathReoptimizations retrieves the value of the leaf PathReoptimizations from the RsvpteRouter_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 PathReoptimizations is set, it can safely use t.GetPathReoptimizations() 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.PathReoptimizations == nil' before retrieving the leaf's value.

func (*RsvpteRouter_Counters) IsYANGGoStruct

func (*RsvpteRouter_Counters) IsYANGGoStruct()

IsYANGGoStruct ensures that RsvpteRouter_Counters implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*RsvpteRouter_Counters) PopulateDefaults

func (t *RsvpteRouter_Counters) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the RsvpteRouter_Counters with default values as specified in the YANG schema, instantiating any nil container fields.

func (*RsvpteRouter_Counters) SetEgressP2PLspsUp

func (t *RsvpteRouter_Counters) SetEgressP2PLspsUp(v uint64)

SetEgressP2PLspsUp sets the value of the leaf EgressP2PLspsUp in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetInAcks

func (t *RsvpteRouter_Counters) SetInAcks(v uint64)

SetInAcks sets the value of the leaf InAcks in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetInBundles

func (t *RsvpteRouter_Counters) SetInBundles(v uint64)

SetInBundles sets the value of the leaf InBundles in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetInHellos

func (t *RsvpteRouter_Counters) SetInHellos(v uint64)

SetInHellos sets the value of the leaf InHellos in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetInNacks

func (t *RsvpteRouter_Counters) SetInNacks(v uint64)

SetInNacks sets the value of the leaf InNacks in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetInPathErrors

func (t *RsvpteRouter_Counters) SetInPathErrors(v uint64)

SetInPathErrors sets the value of the leaf InPathErrors in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetInPathTears

func (t *RsvpteRouter_Counters) SetInPathTears(v uint64)

SetInPathTears sets the value of the leaf InPathTears in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetInPaths

func (t *RsvpteRouter_Counters) SetInPaths(v uint64)

SetInPaths sets the value of the leaf InPaths in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetInResvConfs

func (t *RsvpteRouter_Counters) SetInResvConfs(v uint64)

SetInResvConfs sets the value of the leaf InResvConfs in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetInResvErrors

func (t *RsvpteRouter_Counters) SetInResvErrors(v uint64)

SetInResvErrors sets the value of the leaf InResvErrors in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetInResvTears

func (t *RsvpteRouter_Counters) SetInResvTears(v uint64)

SetInResvTears sets the value of the leaf InResvTears in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetInResvs

func (t *RsvpteRouter_Counters) SetInResvs(v uint64)

SetInResvs sets the value of the leaf InResvs in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetInSrefreshs

func (t *RsvpteRouter_Counters) SetInSrefreshs(v uint64)

SetInSrefreshs sets the value of the leaf InSrefreshs in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetIngressP2PLspsConfigured

func (t *RsvpteRouter_Counters) SetIngressP2PLspsConfigured(v uint64)

SetIngressP2PLspsConfigured sets the value of the leaf IngressP2PLspsConfigured in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetIngressP2PLspsUp

func (t *RsvpteRouter_Counters) SetIngressP2PLspsUp(v uint64)

SetIngressP2PLspsUp sets the value of the leaf IngressP2PLspsUp in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetLspFlaps

func (t *RsvpteRouter_Counters) SetLspFlaps(v uint64)

SetLspFlaps sets the value of the leaf LspFlaps in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetOutAcks

func (t *RsvpteRouter_Counters) SetOutAcks(v uint64)

SetOutAcks sets the value of the leaf OutAcks in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetOutBundles

func (t *RsvpteRouter_Counters) SetOutBundles(v uint64)

SetOutBundles sets the value of the leaf OutBundles in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetOutHellos

func (t *RsvpteRouter_Counters) SetOutHellos(v uint64)

SetOutHellos sets the value of the leaf OutHellos in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetOutNacks

func (t *RsvpteRouter_Counters) SetOutNacks(v uint64)

SetOutNacks sets the value of the leaf OutNacks in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetOutPathErrors

func (t *RsvpteRouter_Counters) SetOutPathErrors(v uint64)

SetOutPathErrors sets the value of the leaf OutPathErrors in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetOutPathReevaluationReqs

func (t *RsvpteRouter_Counters) SetOutPathReevaluationReqs(v uint64)

SetOutPathReevaluationReqs sets the value of the leaf OutPathReevaluationReqs in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetOutPathTears

func (t *RsvpteRouter_Counters) SetOutPathTears(v uint64)

SetOutPathTears sets the value of the leaf OutPathTears in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetOutPaths

func (t *RsvpteRouter_Counters) SetOutPaths(v uint64)

SetOutPaths sets the value of the leaf OutPaths in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetOutResvConfs

func (t *RsvpteRouter_Counters) SetOutResvConfs(v uint64)

SetOutResvConfs sets the value of the leaf OutResvConfs in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetOutResvErrors

func (t *RsvpteRouter_Counters) SetOutResvErrors(v uint64)

SetOutResvErrors sets the value of the leaf OutResvErrors in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetOutResvTears

func (t *RsvpteRouter_Counters) SetOutResvTears(v uint64)

SetOutResvTears sets the value of the leaf OutResvTears in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetOutResvs

func (t *RsvpteRouter_Counters) SetOutResvs(v uint64)

SetOutResvs sets the value of the leaf OutResvs in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetOutSrefreshs

func (t *RsvpteRouter_Counters) SetOutSrefreshs(v uint64)

SetOutSrefreshs sets the value of the leaf OutSrefreshs in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) SetPathReoptimizations

func (t *RsvpteRouter_Counters) SetPathReoptimizations(v uint64)

SetPathReoptimizations sets the value of the leaf PathReoptimizations in the RsvpteRouter_Counters struct.

func (*RsvpteRouter_Counters) Validate

func (t *RsvpteRouter_Counters) Validate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

func (*RsvpteRouter_Counters) ΛBelongingModule

func (*RsvpteRouter_Counters) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of RsvpteRouter_Counters.

func (*RsvpteRouter_Counters) ΛEnumTypeMap

func (t *RsvpteRouter_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 (*RsvpteRouter_Counters) ΛValidate

func (t *RsvpteRouter_Counters) ΛValidate(opts ...ygot.ValidationOption) error

Validate validates s against the YANG schema corresponding to its type.

type RsvpteRouter_LabelSwitchedPathDatabase

type RsvpteRouter_LabelSwitchedPathDatabase struct {
	Ipv4Lsp map[RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Key]*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp `path:"lsps/ipv4-lsp" module:"open-traffic-generator-rsvp/open-traffic-generator-rsvp"`
}

RsvpteRouter_LabelSwitchedPathDatabase represents the /open-traffic-generator-rsvp/rsvpte-routers/rsvpte-router/state/label-switched-path-database YANG schema element.

func (*RsvpteRouter_LabelSwitchedPathDatabase) AppendIpv4Lsp

AppendIpv4Lsp appends the supplied RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp struct to the list Ipv4Lsp of RsvpteRouter_LabelSwitchedPathDatabase. If the key value(s) specified in the supplied RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp already exist in the list, an error is returned.

func (*RsvpteRouter_LabelSwitchedPathDatabase) DeleteIpv4Lsp

func (t *RsvpteRouter_LabelSwitchedPathDatabase) DeleteIpv4Lsp(SourceAddress string, DestinationAddress string, TunnelId uint16, LspId uint16)

DeleteIpv4Lsp deletes the value with the specified keys from the receiver RsvpteRouter_LabelSwitchedPathDatabase. If there is no such element, the function is a no-op.

func (*RsvpteRouter_LabelSwitchedPathDatabase) GetIpv4Lsp

func (t *RsvpteRouter_LabelSwitchedPathDatabase) GetIpv4Lsp(SourceAddress string, DestinationAddress string, TunnelId uint16, LspId uint16) *RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp

GetIpv4Lsp retrieves the value with the specified key from the Ipv4Lsp map field of RsvpteRouter_LabelSwitchedPathDatabase. 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 (*RsvpteRouter_LabelSwitchedPathDatabase) GetOrCreateIpv4Lsp

func (t *RsvpteRouter_LabelSwitchedPathDatabase) GetOrCreateIpv4Lsp(SourceAddress string, DestinationAddress string, TunnelId uint16, LspId uint16) *RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp

GetOrCreateIpv4Lsp retrieves the value with the specified keys from the receiver RsvpteRouter_LabelSwitchedPathDatabase. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*RsvpteRouter_LabelSwitchedPathDatabase) GetOrCreateIpv4LspMap added in v0.7.1

GetOrCreateIpv4LspMap returns the list (map) from RsvpteRouter_LabelSwitchedPathDatabase.

It initializes the field if not already initialized.

func (*RsvpteRouter_LabelSwitchedPathDatabase) IsYANGGoStruct

func (*RsvpteRouter_LabelSwitchedPathDatabase) IsYANGGoStruct()

IsYANGGoStruct ensures that RsvpteRouter_LabelSwitchedPathDatabase implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*RsvpteRouter_LabelSwitchedPathDatabase) NewIpv4Lsp

func (t *RsvpteRouter_LabelSwitchedPathDatabase) NewIpv4Lsp(SourceAddress string, DestinationAddress string, TunnelId uint16, LspId uint16) (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp, error)

NewIpv4Lsp creates a new entry in the Ipv4Lsp list of the RsvpteRouter_LabelSwitchedPathDatabase struct. The keys of the list are populated from the input arguments.

func (*RsvpteRouter_LabelSwitchedPathDatabase) PopulateDefaults

func (t *RsvpteRouter_LabelSwitchedPathDatabase) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the RsvpteRouter_LabelSwitchedPathDatabase with default values as specified in the YANG schema, instantiating any nil container fields.

func (*RsvpteRouter_LabelSwitchedPathDatabase) RenameIpv4Lsp added in v0.4.3

RenameIpv4Lsp renames an entry in the list Ipv4Lsp within the RsvpteRouter_LabelSwitchedPathDatabase struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*RsvpteRouter_LabelSwitchedPathDatabase) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*RsvpteRouter_LabelSwitchedPathDatabase) ΛBelongingModule

func (*RsvpteRouter_LabelSwitchedPathDatabase) ΛBelongingModule() string

ΛBelongingModule returns the name of the module that defines the namespace of RsvpteRouter_LabelSwitchedPathDatabase.

func (*RsvpteRouter_LabelSwitchedPathDatabase) ΛEnumTypeMap

func (t *RsvpteRouter_LabelSwitchedPathDatabase) Λ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 (*RsvpteRouter_LabelSwitchedPathDatabase) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp

type RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp struct {
	DestinationAddress *string                                                        `` /* 223-byte string literal not displayed */
	Ero                map[uint64]*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero `path:"state/ero" module:"open-traffic-generator-rsvp/open-traffic-generator-rsvp"`
	LabelIn            RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelIn_Union   `path:"state/label-in" module:"open-traffic-generator-rsvp/open-traffic-generator-rsvp"`
	LabelOut           RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelOut_Union  `path:"state/label-out" module:"open-traffic-generator-rsvp/open-traffic-generator-rsvp"`
	LastFlapReason     E_Ipv4Lsp_LastFlapReason                                       `path:"state/last-flap-reason" module:"open-traffic-generator-rsvp/open-traffic-generator-rsvp"`
	LspId              *uint16                                                        `` /* 184-byte string literal not displayed */
	Rro                map[uint8]*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro  `path:"state/rro" module:"open-traffic-generator-rsvp/open-traffic-generator-rsvp"`
	SessionName        *string                                                        `path:"state/session-name" module:"open-traffic-generator-rsvp/open-traffic-generator-rsvp"`
	SessionStatus      E_Ipv4Lsp_SessionStatus                                        `path:"state/session-status" module:"open-traffic-generator-rsvp/open-traffic-generator-rsvp"`
	SourceAddress      *string                                                        `` /* 208-byte string literal not displayed */
	TunnelId           *uint16                                                        `` /* 193-byte string literal not displayed */
	UpTime             *uint32                                                        `path:"state/up-time" module:"open-traffic-generator-rsvp/open-traffic-generator-rsvp"`
}

RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp represents the /open-traffic-generator-rsvp/rsvpte-routers/rsvpte-router/state/label-switched-path-database/lsps/ipv4-lsp YANG schema element.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) AppendEro

AppendEro appends the supplied RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero struct to the list Ero of RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp. If the key value(s) specified in the supplied RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero already exist in the list, an error is returned.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) AppendRro

AppendRro appends the supplied RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro struct to the list Rro of RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp. If the key value(s) specified in the supplied RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro already exist in the list, an error is returned.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) DeleteEro

DeleteEro deletes the value with the specified keys from the receiver RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp. If there is no such element, the function is a no-op.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) DeleteRro

DeleteRro deletes the value with the specified keys from the receiver RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp. If there is no such element, the function is a no-op.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) GetDestinationAddress

func (t *RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) GetDestinationAddress() string

GetDestinationAddress retrieves the value of the leaf DestinationAddress from the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp 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 DestinationAddress is set, it can safely use t.GetDestinationAddress() 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.DestinationAddress == nil' before retrieving the leaf's value.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) GetEro

GetEro retrieves the value with the specified key from the Ero map field of RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp. 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 (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) GetLabelIn

GetLabelIn retrieves the value of the leaf LabelIn from the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp 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 LabelIn is set, it can safely use t.GetLabelIn() 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.LabelIn == nil' before retrieving the leaf's value.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) GetLabelOut

GetLabelOut retrieves the value of the leaf LabelOut from the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp 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 LabelOut is set, it can safely use t.GetLabelOut() 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.LabelOut == nil' before retrieving the leaf's value.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) GetLastFlapReason

GetLastFlapReason retrieves the value of the leaf LastFlapReason from the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp 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 LastFlapReason is set, it can safely use t.GetLastFlapReason() 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.LastFlapReason == nil' before retrieving the leaf's value.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) GetLspId

GetLspId retrieves the value of the leaf LspId from the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp 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 LspId is set, it can safely use t.GetLspId() 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.LspId == nil' before retrieving the leaf's value.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) GetOrCreateEro

GetOrCreateEro retrieves the value with the specified keys from the receiver RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) GetOrCreateEroMap added in v0.7.1

GetOrCreateEroMap returns the list (map) from RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp.

It initializes the field if not already initialized.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) GetOrCreateRro

GetOrCreateRro retrieves the value with the specified keys from the receiver RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp. If the entry does not exist, then it is created. It returns the existing or new list member.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) GetOrCreateRroMap added in v0.7.1

GetOrCreateRroMap returns the list (map) from RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp.

It initializes the field if not already initialized.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) GetRro

GetRro retrieves the value with the specified key from the Rro map field of RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp. 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 (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) GetSessionName

GetSessionName retrieves the value of the leaf SessionName from the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp 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 SessionName is set, it can safely use t.GetSessionName() 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.SessionName == nil' before retrieving the leaf's value.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) GetSessionStatus

GetSessionStatus retrieves the value of the leaf SessionStatus from the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp 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 SessionStatus is set, it can safely use t.GetSessionStatus() 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.SessionStatus == nil' before retrieving the leaf's value.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) GetSourceAddress

GetSourceAddress retrieves the value of the leaf SourceAddress from the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp 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 SourceAddress is set, it can safely use t.GetSourceAddress() 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.SourceAddress == nil' before retrieving the leaf's value.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) GetTunnelId

GetTunnelId retrieves the value of the leaf TunnelId from the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp 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 TunnelId is set, it can safely use t.GetTunnelId() 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.TunnelId == nil' before retrieving the leaf's value.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) GetUpTime

GetUpTime retrieves the value of the leaf UpTime from the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp 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 UpTime is set, it can safely use t.GetUpTime() 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.UpTime == nil' before retrieving the leaf's value.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) IsYANGGoStruct

IsYANGGoStruct ensures that RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) NewEro

NewEro creates a new entry in the Ero list of the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp struct. The keys of the list are populated from the input arguments.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) NewRro

NewRro creates a new entry in the Rro list of the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp struct. The keys of the list are populated from the input arguments.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) PopulateDefaults

func (t *RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) PopulateDefaults()

PopulateDefaults recursively populates unset leaf fields in the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp with default values as specified in the YANG schema, instantiating any nil container fields.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) RenameEro added in v0.4.3

RenameEro renames an entry in the list Ero within the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) RenameRro added in v0.4.3

RenameRro renames an entry in the list Rro within the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp struct. The entry with key oldK is renamed to newK updating the key within the value.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) SetDestinationAddress

func (t *RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) SetDestinationAddress(v string)

SetDestinationAddress sets the value of the leaf DestinationAddress in the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp struct.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) SetLabelIn

SetLabelIn sets the value of the leaf LabelIn in the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp struct.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) SetLabelOut

SetLabelOut sets the value of the leaf LabelOut in the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp struct.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) SetLastFlapReason

SetLastFlapReason sets the value of the leaf LastFlapReason in the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp struct.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) SetLspId

SetLspId sets the value of the leaf LspId in the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp struct.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) SetSessionName

SetSessionName sets the value of the leaf SessionName in the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp struct.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) SetSessionStatus

SetSessionStatus sets the value of the leaf SessionStatus in the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp struct.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) SetSourceAddress

SetSourceAddress sets the value of the leaf SourceAddress in the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp struct.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) SetTunnelId

SetTunnelId sets the value of the leaf TunnelId in the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp struct.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) SetUpTime

SetUpTime sets the value of the leaf UpTime in the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp struct.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) To_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelIn_Union

func (t *RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) To_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelIn_Union(i interface{}) (RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelIn_Union, error)

To_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelIn_Union takes an input interface{} and attempts to convert it to a struct which implements the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelIn_Union union. It returns an error if the interface{} supplied cannot be converted to a type within the union.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) To_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelOut_Union

func (t *RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) To_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelOut_Union(i interface{}) (RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelOut_Union, error)

To_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelOut_Union takes an input interface{} and attempts to convert it to a struct which implements the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelOut_Union union. It returns an error if the interface{} supplied cannot be converted to a type within the union.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) ΛBelongingModule

ΛBelongingModule returns the name of the module that defines the namespace of RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) ΛEnumTypeMap

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) ΛListKeyMap

func (t *RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp struct, which is a YANG list entry.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero

type RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero struct {
	Asn    *uint32    `path:"state/asn" module:"open-traffic-generator-rsvp/open-traffic-generator-rsvp"`
	Index  *uint64    `` /* 181-byte string literal not displayed */
	Prefix *string    `path:"state/prefix" module:"open-traffic-generator-rsvp/open-traffic-generator-rsvp"`
	Type   E_Ero_Type `path:"state/type" module:"open-traffic-generator-rsvp/open-traffic-generator-rsvp"`
}

RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero represents the /open-traffic-generator-rsvp/rsvpte-routers/rsvpte-router/state/label-switched-path-database/lsps/ipv4-lsp/state/ero YANG schema element.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero) GetAsn

GetAsn retrieves the value of the leaf Asn from the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero 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 Asn is set, it can safely use t.GetAsn() 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.Asn == nil' before retrieving the leaf's value.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero) GetIndex

GetIndex retrieves the value of the leaf Index from the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero 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 (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero) GetPrefix

GetPrefix retrieves the value of the leaf Prefix from the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero 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 (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero) GetType

GetType retrieves the value of the leaf Type from the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero 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 (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero) IsYANGGoStruct

IsYANGGoStruct ensures that RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero with default values as specified in the YANG schema, instantiating any nil container fields.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero) SetAsn

SetAsn sets the value of the leaf Asn in the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero struct.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero) SetIndex

SetIndex sets the value of the leaf Index in the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero struct.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero) SetPrefix

SetPrefix sets the value of the leaf Prefix in the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero struct.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero) SetType

SetType sets the value of the leaf Type in the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero struct.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero) ΛBelongingModule

ΛBelongingModule returns the name of the module that defines the namespace of RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero) ΛEnumTypeMap

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero) ΛListKeyMap

func (t *RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero struct, which is a YANG list entry.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Ero) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Key

type RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Key struct {
	SourceAddress      string `path:"source-address"`
	DestinationAddress string `path:"destination-address"`
	TunnelId           uint16 `path:"tunnel-id"`
	LspId              uint16 `path:"lsp-id"`
}

RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Key represents the key for list Ipv4Lsp of element /open-traffic-generator-rsvp/rsvpte-routers/rsvpte-router/state/label-switched-path-database.

func (RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Key) IsYANGGoKeyStruct

IsYANGGoKeyStruct ensures that RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Key partially implements the yang.GoKeyStruct interface. This allows functions that need to handle this key struct to identify it as being generated by gogen.

func (RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Key) ΛListKeyMap

func (t RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Key) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the values of the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Key key struct.

type RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelIn_Union

type RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelIn_Union interface {
	// Union type can be one of [E_Types_MplsLabel_Enum, UnionUint32]
	Documentation_for_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelIn_Union()
}

RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelIn_Union is an interface that is implemented by valid types for the union for the leaf /open-traffic-generator-rsvp/rsvpte-routers/rsvpte-router/state/label-switched-path-database/lsps/ipv4-lsp/state/label-in within the YANG schema. Union type can be one of [E_Types_MplsLabel_Enum, UnionUint32].

type RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelOut_Union

type RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelOut_Union interface {
	// Union type can be one of [E_Types_MplsLabel_Enum, UnionUint32]
	Documentation_for_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelOut_Union()
}

RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelOut_Union is an interface that is implemented by valid types for the union for the leaf /open-traffic-generator-rsvp/rsvpte-routers/rsvpte-router/state/label-switched-path-database/lsps/ipv4-lsp/state/label-out within the YANG schema. Union type can be one of [E_Types_MplsLabel_Enum, UnionUint32].

type RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro

type RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro struct {
	Address       *string                                                                `path:"state/address" module:"open-traffic-generator-rsvp/open-traffic-generator-rsvp"`
	Index         *uint8                                                                 `` /* 181-byte string literal not displayed */
	ReportedLabel RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro_ReportedLabel_Union `path:"state/reported-label" module:"open-traffic-generator-rsvp/open-traffic-generator-rsvp"`
}

RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro represents the /open-traffic-generator-rsvp/rsvpte-routers/rsvpte-router/state/label-switched-path-database/lsps/ipv4-lsp/state/rro YANG schema element.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro) GetAddress

GetAddress retrieves the value of the leaf Address from the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro 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 Address is set, it can safely use t.GetAddress() 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.Address == nil' before retrieving the leaf's value.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro) GetIndex

GetIndex retrieves the value of the leaf Index from the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro 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 (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro) GetReportedLabel

GetReportedLabel retrieves the value of the leaf ReportedLabel from the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro 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 ReportedLabel is set, it can safely use t.GetReportedLabel() 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.ReportedLabel == nil' before retrieving the leaf's value.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro) IsYANGGoStruct

IsYANGGoStruct ensures that RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro implements the yang.GoStruct interface. This allows functions that need to handle this struct to identify it as being generated by ygen.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro) PopulateDefaults

PopulateDefaults recursively populates unset leaf fields in the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro with default values as specified in the YANG schema, instantiating any nil container fields.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro) SetAddress

SetAddress sets the value of the leaf Address in the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro struct.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro) SetIndex

SetIndex sets the value of the leaf Index in the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro struct.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro) SetReportedLabel

SetReportedLabel sets the value of the leaf ReportedLabel in the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro struct.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro) To_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro_ReportedLabel_Union

func (t *RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro) To_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro_ReportedLabel_Union(i interface{}) (RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro_ReportedLabel_Union, error)

To_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro_ReportedLabel_Union takes an input interface{} and attempts to convert it to a struct which implements the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro_ReportedLabel_Union union. It returns an error if the interface{} supplied cannot be converted to a type within the union.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro) Validate

Validate validates s against the YANG schema corresponding to its type.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro) ΛBelongingModule

ΛBelongingModule returns the name of the module that defines the namespace of RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro) ΛEnumTypeMap

ΛEnumTypeMap returns a map, keyed by YANG schema path, of the enumerated types that are included in the generated code.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro) ΛListKeyMap

func (t *RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro) ΛListKeyMap() (map[string]interface{}, error)

ΛListKeyMap returns the keys of the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro struct, which is a YANG list entry.

func (*RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro) ΛValidate

Validate validates s against the YANG schema corresponding to its type.

type RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro_ReportedLabel_Union

type RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro_ReportedLabel_Union interface {
	// Union type can be one of [E_Types_MplsLabel_Enum, UnionUint32]
	Documentation_for_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro_ReportedLabel_Union()
}

RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro_ReportedLabel_Union is an interface that is implemented by valid types for the union for the leaf /open-traffic-generator-rsvp/rsvpte-routers/rsvpte-router/state/label-switched-path-database/lsps/ipv4-lsp/state/rro/state/reported-label within the YANG schema. Union type can be one of [E_Types_MplsLabel_Enum, UnionUint32].

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 UnionInt8

type UnionInt8 int8

UnionInt8 is an int8 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 UnionString

type UnionString string

UnionString is a string type assignable to unions of which it is a subtype.

type UnionUint8

type UnionUint8 uint8

UnionUint8 is a uint8 type assignable to unions of which it is a subtype.

type 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_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelIn_Union

func (UnionUint32) Documentation_for_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelIn_Union()

Documentation_for_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelIn_Union ensures that UnionUint32 implements the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelIn_Union interface.

func (UnionUint32) Documentation_for_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelOut_Union

func (UnionUint32) Documentation_for_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelOut_Union()

Documentation_for_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelOut_Union ensures that UnionUint32 implements the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_LabelOut_Union interface.

func (UnionUint32) Documentation_for_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro_ReportedLabel_Union

func (UnionUint32) Documentation_for_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro_ReportedLabel_Union()

Documentation_for_RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro_ReportedLabel_Union ensures that UnionUint32 implements the RsvpteRouter_LabelSwitchedPathDatabase_Ipv4Lsp_Rro_ReportedLabel_Union interface.

type UnionUint64

type UnionUint64 uint64

UnionUint64 is a uint64 type assignable to unions of which it is a subtype.

type UnionUnsupported

type UnionUnsupported struct {
	Value interface{}
}

UnionUnsupported is an interface{} wrapper type for unsupported types. It is assignable to unions of which it is a subtype.

type YANGEmpty

type YANGEmpty bool

YANGEmpty is a type that is used for fields that have a YANG type of empty. It is used such that empty fields can be distinguished from boolean fields in the generated code.

Directories

Path Synopsis
Package bgp is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package bgp is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package dhcpv4client is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package dhcpv4client is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package dhcpv4server is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package dhcpv4server is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package dhcpv6client is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package dhcpv6client is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package dhcpv6server is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package dhcpv6server is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package discovery is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package discovery is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package flow is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package flow is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package isis is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package isis is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package lacp is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package lacp is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package lag is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package lag is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package lldp is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package lldp is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package ospfv2 is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package ospfv2 is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package ospfv3 is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package ospfv3 is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package otgpath is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package otgpath is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package platform is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package platform is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package port is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package port is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package rsvp is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.
Package rsvp is a generated package which contains definitions of structs which generate gNMI paths for a YANG schema.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL