sdcio_schema

package
v0.0.53 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package sdcio_schema 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 false in this case).

This package was generated by /home/mava/go/pkg/mod/github.com/openconfig/ygot@v0.29.20/genutil/names.go using the following YANG input files:

  • ./tests/schema/sdcio_model.yang
  • ./tests/schema/sdcio_model_choice.yang
  • ./tests/schema/sdcio_model_common.yang
  • ./tests/schema/sdcio_model_deref.yang
  • ./tests/schema/sdcio_model_doublekey.yang
  • ./tests/schema/sdcio_model_identity.yang
  • ./tests/schema/sdcio_model_identity_base.yang
  • ./tests/schema/sdcio_model_identity_types.yang
  • ./tests/schema/sdcio_model_if.yang
  • ./tests/schema/sdcio_model_leaflist.yang
  • ./tests/schema/sdcio_model_leafref.yang
  • ./tests/schema/sdcio_model_list_unique.yang
  • ./tests/schema/sdcio_model_ni.yang

Imported modules were sourced from:

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_SdcioModelCommon_BgpAddressFamily": {
		1: {Name: "evpn", DefiningModule: "sdcio_model_common"},
		2: {Name: "ipv4-labeled-unicast", DefiningModule: "sdcio_model_common"},
		3: {Name: "ipv4-unicast", DefiningModule: "sdcio_model_common"},
		4: {Name: "ipv6-labeled-unicast", DefiningModule: "sdcio_model_common"},
		5: {Name: "ipv6-unicast", DefiningModule: "sdcio_model_common"},
		6: {Name: "l3vpn-ipv4-unicast", DefiningModule: "sdcio_model_common"},
		7: {Name: "l3vpn-ipv6-unicast", DefiningModule: "sdcio_model_common"},
		8: {Name: "route-target", DefiningModule: "sdcio_model_common"},
	},
	"E_SdcioModelCommon_SiType": {
		1: {Name: "bridged", DefiningModule: "sdcio_model_common"},
		2: {Name: "routed", DefiningModule: "sdcio_model_common"},
	},
	"E_SdcioModelIdentityBase_CryptoAlg": {
		1: {Name: "des", DefiningModule: "sdcio_model_identity_types"},
		2: {Name: "des3", DefiningModule: "sdcio_model_identity_types"},
		3: {Name: "otherAlgo", DefiningModule: "sdcio_model_identity"},
		4: {Name: "rsa", DefiningModule: "sdcio_model_identity_types"},
	},
	"E_SdcioModelIf_AdminState": {
		2: {Name: "enable"},
		3: {Name: "disable"},
	},
	"E_SdcioModelNi_AdminState": {
		2: {Name: "enable"},
		3: {Name: "disable"},
	},
	"E_SdcioModelNi_NiType": {
		1: {Name: "default", DefiningModule: "sdcio_model_ni"},
		2: {Name: "host", DefiningModule: "sdcio_model_ni"},
		3: {Name: "ip-vrf", DefiningModule: "sdcio_model_ni"},
		4: {Name: "mac-vrf", DefiningModule: "sdcio_model_ni"},
	},
}

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

type Binary []byte

Binary is a type that is used for fields that have a YANG type of binary. It is used such that binary fields can be distinguished from leaf-lists of uint8s (which are mapped to []uint8, equivalent to []byte in reflection).

type Device

type Device struct {
	Choices         *SdcioModel_Choices                                `path:"choices" module:"sdcio_model"`
	Doublekey       map[SdcioModel_Doublekey_Key]*SdcioModel_Doublekey `path:"doublekey" module:"sdcio_model"`
	Emptyconf       YANGEmpty                                          `path:"emptyconf" module:"sdcio_model"`
	Identityref     *SdcioModel_Identityref                            `path:"identityref" module:"sdcio_model"`
	Interface       map[string]*SdcioModel_Interface                   `path:"interface" module:"sdcio_model"`
	Leaflist        *SdcioModel_Leaflist                               `path:"leaflist" module:"sdcio_model"`
	LeafrefOptional *string                                            `path:"leafref-optional" module:"sdcio_model"`
	ListUnique      *SdcioModel_ListUnique                             `path:"list-unique" module:"sdcio_model"`
	MgmtInterface   *SdcioModel_MgmtInterface                          `path:"mgmt-interface" module:"sdcio_model"`
	NetworkInstance map[string]*SdcioModel_NetworkInstance             `path:"network-instance" module:"sdcio_model"`
	Patterntest     *string                                            `path:"patterntest" module:"sdcio_model"`
}

Device represents the /device YANG schema element.

func (*Device) IsYANGGoStruct

func (*Device) IsYANGGoStruct()

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

func (*Device) NewDoublekey

func (t *Device) NewDoublekey(Key1 string, Key2 string) (*SdcioModel_Doublekey, error)

NewDoublekey creates a new entry in the Doublekey list of the Device struct. The keys of the list are populated from the input arguments.

func (*Device) NewInterface

func (t *Device) NewInterface(Name string) (*SdcioModel_Interface, error)

NewInterface creates a new entry in the Interface list of the Device struct. The keys of the list are populated from the input arguments.

func (*Device) NewNetworkInstance

func (t *Device) NewNetworkInstance(Name string) (*SdcioModel_NetworkInstance, error)

NewNetworkInstance creates a new entry in the NetworkInstance list of the Device struct. The keys of the list are populated from the input arguments.

func (*Device) Validate

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

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

func (*Device) ΛBelongingModule

func (*Device) ΛBelongingModule() string

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

func (*Device) ΛEnumTypeMap

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

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

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

type E_SdcioModelCommon_BgpAddressFamily added in v0.0.44

type E_SdcioModelCommon_BgpAddressFamily int64

E_SdcioModelCommon_BgpAddressFamily is a derived int64 type which is used to represent the enumerated node SdcioModelCommon_BgpAddressFamily. An additional value named SdcioModelCommon_BgpAddressFamily_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 (
	// SdcioModelCommon_BgpAddressFamily_UNSET corresponds to the value UNSET of SdcioModelCommon_BgpAddressFamily
	SdcioModelCommon_BgpAddressFamily_UNSET E_SdcioModelCommon_BgpAddressFamily = 0
	// SdcioModelCommon_BgpAddressFamily_evpn corresponds to the value evpn of SdcioModelCommon_BgpAddressFamily
	SdcioModelCommon_BgpAddressFamily_evpn E_SdcioModelCommon_BgpAddressFamily = 1
	// SdcioModelCommon_BgpAddressFamily_ipv4_labeled_unicast corresponds to the value ipv4_labeled_unicast of SdcioModelCommon_BgpAddressFamily
	SdcioModelCommon_BgpAddressFamily_ipv4_labeled_unicast E_SdcioModelCommon_BgpAddressFamily = 2
	// SdcioModelCommon_BgpAddressFamily_ipv4_unicast corresponds to the value ipv4_unicast of SdcioModelCommon_BgpAddressFamily
	SdcioModelCommon_BgpAddressFamily_ipv4_unicast E_SdcioModelCommon_BgpAddressFamily = 3
	// SdcioModelCommon_BgpAddressFamily_ipv6_labeled_unicast corresponds to the value ipv6_labeled_unicast of SdcioModelCommon_BgpAddressFamily
	SdcioModelCommon_BgpAddressFamily_ipv6_labeled_unicast E_SdcioModelCommon_BgpAddressFamily = 4
	// SdcioModelCommon_BgpAddressFamily_ipv6_unicast corresponds to the value ipv6_unicast of SdcioModelCommon_BgpAddressFamily
	SdcioModelCommon_BgpAddressFamily_ipv6_unicast E_SdcioModelCommon_BgpAddressFamily = 5
	// SdcioModelCommon_BgpAddressFamily_l3vpn_ipv4_unicast corresponds to the value l3vpn_ipv4_unicast of SdcioModelCommon_BgpAddressFamily
	SdcioModelCommon_BgpAddressFamily_l3vpn_ipv4_unicast E_SdcioModelCommon_BgpAddressFamily = 6
	// SdcioModelCommon_BgpAddressFamily_l3vpn_ipv6_unicast corresponds to the value l3vpn_ipv6_unicast of SdcioModelCommon_BgpAddressFamily
	SdcioModelCommon_BgpAddressFamily_l3vpn_ipv6_unicast E_SdcioModelCommon_BgpAddressFamily = 7
	// SdcioModelCommon_BgpAddressFamily_route_target corresponds to the value route_target of SdcioModelCommon_BgpAddressFamily
	SdcioModelCommon_BgpAddressFamily_route_target E_SdcioModelCommon_BgpAddressFamily = 8
)

func (E_SdcioModelCommon_BgpAddressFamily) IsYANGGoEnum added in v0.0.44

func (E_SdcioModelCommon_BgpAddressFamily) IsYANGGoEnum()

IsYANGGoEnum ensures that SdcioModelCommon_BgpAddressFamily implements the yang.GoEnum interface. This ensures that SdcioModelCommon_BgpAddressFamily can be identified as a mapped type for a YANG enumeration.

func (E_SdcioModelCommon_BgpAddressFamily) String added in v0.0.44

String returns a logging-friendly string for E_SdcioModelCommon_BgpAddressFamily.

func (E_SdcioModelCommon_BgpAddressFamily) ΛMap added in v0.0.44

ΛMap returns the value lookup map associated with SdcioModelCommon_BgpAddressFamily.

type E_SdcioModelCommon_SiType

type E_SdcioModelCommon_SiType int64

E_SdcioModelCommon_SiType is a derived int64 type which is used to represent the enumerated node SdcioModelCommon_SiType. An additional value named SdcioModelCommon_SiType_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 (
	// SdcioModelCommon_SiType_UNSET corresponds to the value UNSET of SdcioModelCommon_SiType
	SdcioModelCommon_SiType_UNSET E_SdcioModelCommon_SiType = 0
	// SdcioModelCommon_SiType_bridged corresponds to the value bridged of SdcioModelCommon_SiType
	SdcioModelCommon_SiType_bridged E_SdcioModelCommon_SiType = 1
	// SdcioModelCommon_SiType_routed corresponds to the value routed of SdcioModelCommon_SiType
	SdcioModelCommon_SiType_routed E_SdcioModelCommon_SiType = 2
)

func (E_SdcioModelCommon_SiType) IsYANGGoEnum

func (E_SdcioModelCommon_SiType) IsYANGGoEnum()

IsYANGGoEnum ensures that SdcioModelCommon_SiType implements the yang.GoEnum interface. This ensures that SdcioModelCommon_SiType can be identified as a mapped type for a YANG enumeration.

func (E_SdcioModelCommon_SiType) String

func (e E_SdcioModelCommon_SiType) String() string

String returns a logging-friendly string for E_SdcioModelCommon_SiType.

func (E_SdcioModelCommon_SiType) ΛMap

ΛMap returns the value lookup map associated with SdcioModelCommon_SiType.

type E_SdcioModelIdentityBase_CryptoAlg added in v0.0.44

type E_SdcioModelIdentityBase_CryptoAlg int64

E_SdcioModelIdentityBase_CryptoAlg is a derived int64 type which is used to represent the enumerated node SdcioModelIdentityBase_CryptoAlg. An additional value named SdcioModelIdentityBase_CryptoAlg_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 (
	// SdcioModelIdentityBase_CryptoAlg_UNSET corresponds to the value UNSET of SdcioModelIdentityBase_CryptoAlg
	SdcioModelIdentityBase_CryptoAlg_UNSET E_SdcioModelIdentityBase_CryptoAlg = 0
	// SdcioModelIdentityBase_CryptoAlg_des corresponds to the value des of SdcioModelIdentityBase_CryptoAlg
	SdcioModelIdentityBase_CryptoAlg_des E_SdcioModelIdentityBase_CryptoAlg = 1
	// SdcioModelIdentityBase_CryptoAlg_des3 corresponds to the value des3 of SdcioModelIdentityBase_CryptoAlg
	SdcioModelIdentityBase_CryptoAlg_des3 E_SdcioModelIdentityBase_CryptoAlg = 2
	// SdcioModelIdentityBase_CryptoAlg_otherAlgo corresponds to the value otherAlgo of SdcioModelIdentityBase_CryptoAlg
	SdcioModelIdentityBase_CryptoAlg_otherAlgo E_SdcioModelIdentityBase_CryptoAlg = 3
	// SdcioModelIdentityBase_CryptoAlg_rsa corresponds to the value rsa of SdcioModelIdentityBase_CryptoAlg
	SdcioModelIdentityBase_CryptoAlg_rsa E_SdcioModelIdentityBase_CryptoAlg = 4
)

func (E_SdcioModelIdentityBase_CryptoAlg) IsYANGGoEnum added in v0.0.44

func (E_SdcioModelIdentityBase_CryptoAlg) IsYANGGoEnum()

IsYANGGoEnum ensures that SdcioModelIdentityBase_CryptoAlg implements the yang.GoEnum interface. This ensures that SdcioModelIdentityBase_CryptoAlg can be identified as a mapped type for a YANG enumeration.

func (E_SdcioModelIdentityBase_CryptoAlg) String added in v0.0.44

String returns a logging-friendly string for E_SdcioModelIdentityBase_CryptoAlg.

func (E_SdcioModelIdentityBase_CryptoAlg) ΛMap added in v0.0.44

ΛMap returns the value lookup map associated with SdcioModelIdentityBase_CryptoAlg.

type E_SdcioModelIf_AdminState

type E_SdcioModelIf_AdminState int64

E_SdcioModelIf_AdminState is a derived int64 type which is used to represent the enumerated node SdcioModelIf_AdminState. An additional value named SdcioModelIf_AdminState_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 (
	// SdcioModelIf_AdminState_UNSET corresponds to the value UNSET of SdcioModelIf_AdminState
	SdcioModelIf_AdminState_UNSET E_SdcioModelIf_AdminState = 0
	// SdcioModelIf_AdminState_enable corresponds to the value enable of SdcioModelIf_AdminState
	SdcioModelIf_AdminState_enable E_SdcioModelIf_AdminState = 2
	// SdcioModelIf_AdminState_disable corresponds to the value disable of SdcioModelIf_AdminState
	SdcioModelIf_AdminState_disable E_SdcioModelIf_AdminState = 3
)

func (E_SdcioModelIf_AdminState) IsYANGGoEnum

func (E_SdcioModelIf_AdminState) IsYANGGoEnum()

IsYANGGoEnum ensures that SdcioModelIf_AdminState implements the yang.GoEnum interface. This ensures that SdcioModelIf_AdminState can be identified as a mapped type for a YANG enumeration.

func (E_SdcioModelIf_AdminState) String

func (e E_SdcioModelIf_AdminState) String() string

String returns a logging-friendly string for E_SdcioModelIf_AdminState.

func (E_SdcioModelIf_AdminState) ΛMap

ΛMap returns the value lookup map associated with SdcioModelIf_AdminState.

type E_SdcioModelNi_AdminState

type E_SdcioModelNi_AdminState int64

E_SdcioModelNi_AdminState is a derived int64 type which is used to represent the enumerated node SdcioModelNi_AdminState. An additional value named SdcioModelNi_AdminState_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 (
	// SdcioModelNi_AdminState_UNSET corresponds to the value UNSET of SdcioModelNi_AdminState
	SdcioModelNi_AdminState_UNSET E_SdcioModelNi_AdminState = 0
	// SdcioModelNi_AdminState_enable corresponds to the value enable of SdcioModelNi_AdminState
	SdcioModelNi_AdminState_enable E_SdcioModelNi_AdminState = 2
	// SdcioModelNi_AdminState_disable corresponds to the value disable of SdcioModelNi_AdminState
	SdcioModelNi_AdminState_disable E_SdcioModelNi_AdminState = 3
)

func (E_SdcioModelNi_AdminState) IsYANGGoEnum

func (E_SdcioModelNi_AdminState) IsYANGGoEnum()

IsYANGGoEnum ensures that SdcioModelNi_AdminState implements the yang.GoEnum interface. This ensures that SdcioModelNi_AdminState can be identified as a mapped type for a YANG enumeration.

func (E_SdcioModelNi_AdminState) String

func (e E_SdcioModelNi_AdminState) String() string

String returns a logging-friendly string for E_SdcioModelNi_AdminState.

func (E_SdcioModelNi_AdminState) ΛMap

ΛMap returns the value lookup map associated with SdcioModelNi_AdminState.

type E_SdcioModelNi_NiType

type E_SdcioModelNi_NiType int64

E_SdcioModelNi_NiType is a derived int64 type which is used to represent the enumerated node SdcioModelNi_NiType. An additional value named SdcioModelNi_NiType_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 (
	// SdcioModelNi_NiType_UNSET corresponds to the value UNSET of SdcioModelNi_NiType
	SdcioModelNi_NiType_UNSET E_SdcioModelNi_NiType = 0
	// SdcioModelNi_NiType_default corresponds to the value default of SdcioModelNi_NiType
	SdcioModelNi_NiType_default E_SdcioModelNi_NiType = 1
	// SdcioModelNi_NiType_host corresponds to the value host of SdcioModelNi_NiType
	SdcioModelNi_NiType_host E_SdcioModelNi_NiType = 2
	// SdcioModelNi_NiType_ip_vrf corresponds to the value ip_vrf of SdcioModelNi_NiType
	SdcioModelNi_NiType_ip_vrf E_SdcioModelNi_NiType = 3
	// SdcioModelNi_NiType_mac_vrf corresponds to the value mac_vrf of SdcioModelNi_NiType
	SdcioModelNi_NiType_mac_vrf E_SdcioModelNi_NiType = 4
)

func (E_SdcioModelNi_NiType) IsYANGGoEnum

func (E_SdcioModelNi_NiType) IsYANGGoEnum()

IsYANGGoEnum ensures that SdcioModelNi_NiType implements the yang.GoEnum interface. This ensures that SdcioModelNi_NiType can be identified as a mapped type for a YANG enumeration.

func (E_SdcioModelNi_NiType) String

func (e E_SdcioModelNi_NiType) String() string

String returns a logging-friendly string for E_SdcioModelNi_NiType.

func (E_SdcioModelNi_NiType) ΛMap

ΛMap returns the value lookup map associated with SdcioModelNi_NiType.

type SdcioModel_Choices

type SdcioModel_Choices struct {
	Case1 *SdcioModel_Choices_Case1 `path:"case1" module:"sdcio_model"`
	Case2 *SdcioModel_Choices_Case2 `path:"case2" module:"sdcio_model"`
}

SdcioModel_Choices represents the /sdcio_model/choices YANG schema element.

func (*SdcioModel_Choices) IsYANGGoStruct

func (*SdcioModel_Choices) IsYANGGoStruct()

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

func (*SdcioModel_Choices) Validate

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

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

func (*SdcioModel_Choices) ΛBelongingModule

func (*SdcioModel_Choices) ΛBelongingModule() string

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

func (*SdcioModel_Choices) ΛEnumTypeMap

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

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

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

type SdcioModel_Choices_Case1

type SdcioModel_Choices_Case1 struct {
	CaseElem *SdcioModel_Choices_Case1_CaseElem `path:"case-elem" module:"sdcio_model"`
	Log      *bool                              `path:"log" module:"sdcio_model"`
}

SdcioModel_Choices_Case1 represents the /sdcio_model/choices/case1 YANG schema element.

func (*SdcioModel_Choices_Case1) IsYANGGoStruct

func (*SdcioModel_Choices_Case1) IsYANGGoStruct()

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

func (*SdcioModel_Choices_Case1) Validate

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

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

func (*SdcioModel_Choices_Case1) ΛBelongingModule

func (*SdcioModel_Choices_Case1) ΛBelongingModule() string

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

func (*SdcioModel_Choices_Case1) ΛEnumTypeMap

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

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

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

type SdcioModel_Choices_Case1_CaseElem

type SdcioModel_Choices_Case1_CaseElem struct {
	Elem *string `path:"elem" module:"sdcio_model"`
}

SdcioModel_Choices_Case1_CaseElem represents the /sdcio_model/choices/case1/case-elem YANG schema element.

func (*SdcioModel_Choices_Case1_CaseElem) IsYANGGoStruct

func (*SdcioModel_Choices_Case1_CaseElem) IsYANGGoStruct()

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

func (*SdcioModel_Choices_Case1_CaseElem) Validate

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

func (*SdcioModel_Choices_Case1_CaseElem) ΛBelongingModule

func (*SdcioModel_Choices_Case1_CaseElem) ΛBelongingModule() string

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

func (*SdcioModel_Choices_Case1_CaseElem) ΛEnumTypeMap

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

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

type SdcioModel_Choices_Case2

type SdcioModel_Choices_Case2 struct {
	Log *bool `path:"log" module:"sdcio_model"`
}

SdcioModel_Choices_Case2 represents the /sdcio_model/choices/case2 YANG schema element.

func (*SdcioModel_Choices_Case2) IsYANGGoStruct

func (*SdcioModel_Choices_Case2) IsYANGGoStruct()

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

func (*SdcioModel_Choices_Case2) Validate

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

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

func (*SdcioModel_Choices_Case2) ΛBelongingModule

func (*SdcioModel_Choices_Case2) ΛBelongingModule() string

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

func (*SdcioModel_Choices_Case2) ΛEnumTypeMap

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

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

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

type SdcioModel_Doublekey

type SdcioModel_Doublekey struct {
	Cont    *SdcioModel_Doublekey_Cont `path:"cont" module:"sdcio_model"`
	Key1    *string                    `path:"key1" module:"sdcio_model"`
	Key2    *string                    `path:"key2" module:"sdcio_model"`
	Mandato *string                    `path:"mandato" module:"sdcio_model"`
}

SdcioModel_Doublekey represents the /sdcio_model/doublekey YANG schema element.

func (*SdcioModel_Doublekey) IsYANGGoStruct

func (*SdcioModel_Doublekey) IsYANGGoStruct()

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

func (*SdcioModel_Doublekey) Validate

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

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

func (*SdcioModel_Doublekey) ΛBelongingModule

func (*SdcioModel_Doublekey) ΛBelongingModule() string

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

func (*SdcioModel_Doublekey) ΛEnumTypeMap

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

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

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

func (*SdcioModel_Doublekey) ΛValidate

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

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

type SdcioModel_Doublekey_Cont

type SdcioModel_Doublekey_Cont struct {
	Value1 *string `path:"value1" module:"sdcio_model"`
	Value2 *string `path:"value2" module:"sdcio_model"`
}

SdcioModel_Doublekey_Cont represents the /sdcio_model/doublekey/cont YANG schema element.

func (*SdcioModel_Doublekey_Cont) IsYANGGoStruct

func (*SdcioModel_Doublekey_Cont) IsYANGGoStruct()

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

func (*SdcioModel_Doublekey_Cont) Validate

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

func (*SdcioModel_Doublekey_Cont) ΛBelongingModule

func (*SdcioModel_Doublekey_Cont) ΛBelongingModule() string

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

func (*SdcioModel_Doublekey_Cont) ΛEnumTypeMap

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

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

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

type SdcioModel_Doublekey_Key

type SdcioModel_Doublekey_Key struct {
	Key1 string `path:"key1"`
	Key2 string `path:"key2"`
}

SdcioModel_Doublekey_Key represents the key for list Doublekey of element /device.

func (SdcioModel_Doublekey_Key) IsYANGGoKeyStruct

func (SdcioModel_Doublekey_Key) IsYANGGoKeyStruct()

IsYANGGoKeyStruct ensures that SdcioModel_Doublekey_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 (SdcioModel_Doublekey_Key) ΛListKeyMap

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

ΛListKeyMap returns the values of the SdcioModel_Doublekey_Key key struct.

type SdcioModel_Identityref added in v0.0.44

type SdcioModel_Identityref struct {
	CryptoA E_SdcioModelIdentityBase_CryptoAlg `path:"cryptoA" module:"sdcio_model"`
	CryptoB E_SdcioModelIdentityBase_CryptoAlg `path:"cryptoB" module:"sdcio_model"`
}

SdcioModel_Identityref represents the /sdcio_model/identityref YANG schema element.

func (*SdcioModel_Identityref) IsYANGGoStruct added in v0.0.44

func (*SdcioModel_Identityref) IsYANGGoStruct()

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

func (*SdcioModel_Identityref) Validate added in v0.0.44

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

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

func (*SdcioModel_Identityref) ΛBelongingModule added in v0.0.44

func (*SdcioModel_Identityref) ΛBelongingModule() string

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

func (*SdcioModel_Identityref) ΛEnumTypeMap added in v0.0.44

func (t *SdcioModel_Identityref) Λ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 (*SdcioModel_Identityref) ΛValidate added in v0.0.44

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

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

type SdcioModel_Interface

type SdcioModel_Interface struct {
	AdminState    E_SdcioModelIf_AdminState                     `path:"admin-state" module:"sdcio_model"`
	Description   *string                                       `path:"description" module:"sdcio_model"`
	InterfaceType *string                                       `path:"interface-type" module:"sdcio_model"`
	Mtu           *uint16                                       `path:"mtu" module:"sdcio_model"`
	Name          *string                                       `path:"name" module:"sdcio_model"`
	Subinterface  map[uint32]*SdcioModel_Interface_Subinterface `path:"subinterface" module:"sdcio_model"`
}

SdcioModel_Interface represents the /sdcio_model/interface YANG schema element.

func (*SdcioModel_Interface) IsYANGGoStruct

func (*SdcioModel_Interface) IsYANGGoStruct()

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

func (*SdcioModel_Interface) NewSubinterface

NewSubinterface creates a new entry in the Subinterface list of the SdcioModel_Interface struct. The keys of the list are populated from the input arguments.

func (*SdcioModel_Interface) Validate

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

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

func (*SdcioModel_Interface) ΛBelongingModule

func (*SdcioModel_Interface) ΛBelongingModule() string

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

func (*SdcioModel_Interface) ΛEnumTypeMap

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

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

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

func (*SdcioModel_Interface) ΛValidate

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

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

type SdcioModel_Interface_Subinterface

type SdcioModel_Interface_Subinterface struct {
	Description *string                   `path:"description" module:"sdcio_model"`
	Index       *uint32                   `path:"index" module:"sdcio_model"`
	Type        E_SdcioModelCommon_SiType `path:"type" module:"sdcio_model"`
}

SdcioModel_Interface_Subinterface represents the /sdcio_model/interface/subinterface YANG schema element.

func (*SdcioModel_Interface_Subinterface) IsYANGGoStruct

func (*SdcioModel_Interface_Subinterface) IsYANGGoStruct()

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

func (*SdcioModel_Interface_Subinterface) Validate

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

func (*SdcioModel_Interface_Subinterface) ΛBelongingModule

func (*SdcioModel_Interface_Subinterface) ΛBelongingModule() string

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

func (*SdcioModel_Interface_Subinterface) ΛEnumTypeMap

func (t *SdcioModel_Interface_Subinterface) ΛEnumTypeMap() map[string][]reflect.Type

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

func (*SdcioModel_Interface_Subinterface) ΛListKeyMap

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

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

func (*SdcioModel_Interface_Subinterface) ΛValidate

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

type SdcioModel_Leaflist

type SdcioModel_Leaflist struct {
	Entry []string `path:"entry" module:"sdcio_model"`
}

SdcioModel_Leaflist represents the /sdcio_model/leaflist YANG schema element.

func (*SdcioModel_Leaflist) IsYANGGoStruct

func (*SdcioModel_Leaflist) IsYANGGoStruct()

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

func (*SdcioModel_Leaflist) Validate

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

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

func (*SdcioModel_Leaflist) ΛBelongingModule

func (*SdcioModel_Leaflist) ΛBelongingModule() string

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

func (*SdcioModel_Leaflist) ΛEnumTypeMap

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

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

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

type SdcioModel_ListUnique added in v0.0.43

type SdcioModel_ListUnique struct {
	Server map[string]*SdcioModel_ListUnique_Server `path:"server" module:"sdcio_model"`
}

SdcioModel_ListUnique represents the /sdcio_model/list-unique YANG schema element.

func (*SdcioModel_ListUnique) IsYANGGoStruct added in v0.0.43

func (*SdcioModel_ListUnique) IsYANGGoStruct()

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

func (*SdcioModel_ListUnique) NewServer added in v0.0.43

NewServer creates a new entry in the Server list of the SdcioModel_ListUnique struct. The keys of the list are populated from the input arguments.

func (*SdcioModel_ListUnique) Validate added in v0.0.43

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

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

func (*SdcioModel_ListUnique) ΛBelongingModule added in v0.0.43

func (*SdcioModel_ListUnique) ΛBelongingModule() string

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

func (*SdcioModel_ListUnique) ΛEnumTypeMap added in v0.0.43

func (t *SdcioModel_ListUnique) Λ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 (*SdcioModel_ListUnique) ΛValidate added in v0.0.43

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

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

type SdcioModel_ListUnique_Server added in v0.0.43

type SdcioModel_ListUnique_Server struct {
	Ip   *string `path:"ip" module:"sdcio_model"`
	Name *string `path:"name" module:"sdcio_model"`
	Port *uint16 `path:"port" module:"sdcio_model"`
}

SdcioModel_ListUnique_Server represents the /sdcio_model/list-unique/server YANG schema element.

func (*SdcioModel_ListUnique_Server) IsYANGGoStruct added in v0.0.43

func (*SdcioModel_ListUnique_Server) IsYANGGoStruct()

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

func (*SdcioModel_ListUnique_Server) Validate added in v0.0.43

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

func (*SdcioModel_ListUnique_Server) ΛBelongingModule added in v0.0.43

func (*SdcioModel_ListUnique_Server) ΛBelongingModule() string

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

func (*SdcioModel_ListUnique_Server) ΛEnumTypeMap added in v0.0.43

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

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

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

func (*SdcioModel_ListUnique_Server) ΛValidate added in v0.0.43

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

type SdcioModel_MgmtInterface added in v0.0.43

type SdcioModel_MgmtInterface struct {
	Name *string `path:"name" module:"sdcio_model"`
	Type *string `path:"type" module:"sdcio_model"`
}

SdcioModel_MgmtInterface represents the /sdcio_model/mgmt-interface YANG schema element.

func (*SdcioModel_MgmtInterface) IsYANGGoStruct added in v0.0.43

func (*SdcioModel_MgmtInterface) IsYANGGoStruct()

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

func (*SdcioModel_MgmtInterface) Validate added in v0.0.43

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

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

func (*SdcioModel_MgmtInterface) ΛBelongingModule added in v0.0.43

func (*SdcioModel_MgmtInterface) ΛBelongingModule() string

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

func (*SdcioModel_MgmtInterface) ΛEnumTypeMap added in v0.0.43

func (t *SdcioModel_MgmtInterface) Λ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 (*SdcioModel_MgmtInterface) ΛValidate added in v0.0.43

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

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

type SdcioModel_NetworkInstance

type SdcioModel_NetworkInstance struct {
	AdminState  E_SdcioModelNi_AdminState                        `path:"admin-state" module:"sdcio_model"`
	Description *string                                          `path:"description" module:"sdcio_model"`
	Interface   map[string]*SdcioModel_NetworkInstance_Interface `path:"interface" module:"sdcio_model"`
	Name        *string                                          `path:"name" module:"sdcio_model"`
	Protocol    *SdcioModel_NetworkInstance_Protocol             `path:"protocol" module:"sdcio_model"`
	Type        E_SdcioModelNi_NiType                            `path:"type" module:"sdcio_model"`
}

SdcioModel_NetworkInstance represents the /sdcio_model/network-instance YANG schema element.

func (*SdcioModel_NetworkInstance) IsYANGGoStruct

func (*SdcioModel_NetworkInstance) IsYANGGoStruct()

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

func (*SdcioModel_NetworkInstance) NewInterface

NewInterface creates a new entry in the Interface list of the SdcioModel_NetworkInstance struct. The keys of the list are populated from the input arguments.

func (*SdcioModel_NetworkInstance) Validate

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

func (*SdcioModel_NetworkInstance) ΛBelongingModule

func (*SdcioModel_NetworkInstance) ΛBelongingModule() string

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

func (*SdcioModel_NetworkInstance) ΛEnumTypeMap

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

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

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

func (*SdcioModel_NetworkInstance) ΛValidate

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

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

type SdcioModel_NetworkInstance_Interface

type SdcioModel_NetworkInstance_Interface struct {
	InterfaceRef *SdcioModel_NetworkInstance_Interface_InterfaceRef `path:"interface-ref" module:"sdcio_model"`
	Name         *string                                            `path:"name" module:"sdcio_model"`
}

SdcioModel_NetworkInstance_Interface represents the /sdcio_model/network-instance/interface YANG schema element.

func (*SdcioModel_NetworkInstance_Interface) IsYANGGoStruct

func (*SdcioModel_NetworkInstance_Interface) IsYANGGoStruct()

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

func (*SdcioModel_NetworkInstance_Interface) Validate

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

func (*SdcioModel_NetworkInstance_Interface) ΛBelongingModule

func (*SdcioModel_NetworkInstance_Interface) ΛBelongingModule() string

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

func (*SdcioModel_NetworkInstance_Interface) ΛEnumTypeMap

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

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

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

func (*SdcioModel_NetworkInstance_Interface) ΛValidate

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

type SdcioModel_NetworkInstance_Interface_InterfaceRef

type SdcioModel_NetworkInstance_Interface_InterfaceRef struct {
	Interface    *string `path:"interface" module:"sdcio_model"`
	Subinterface *uint32 `path:"subinterface" module:"sdcio_model"`
}

SdcioModel_NetworkInstance_Interface_InterfaceRef represents the /sdcio_model/network-instance/interface/interface-ref YANG schema element.

func (*SdcioModel_NetworkInstance_Interface_InterfaceRef) IsYANGGoStruct

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

func (*SdcioModel_NetworkInstance_Interface_InterfaceRef) Validate

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

func (*SdcioModel_NetworkInstance_Interface_InterfaceRef) ΛBelongingModule

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

func (*SdcioModel_NetworkInstance_Interface_InterfaceRef) ΛEnumTypeMap

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

func (*SdcioModel_NetworkInstance_Interface_InterfaceRef) ΛValidate

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

type SdcioModel_NetworkInstance_Protocol added in v0.0.44

type SdcioModel_NetworkInstance_Protocol struct {
	Bgp *SdcioModel_NetworkInstance_Protocol_Bgp `path:"bgp" module:"sdcio_model"`
}

SdcioModel_NetworkInstance_Protocol represents the /sdcio_model/network-instance/protocol YANG schema element.

func (*SdcioModel_NetworkInstance_Protocol) IsYANGGoStruct added in v0.0.44

func (*SdcioModel_NetworkInstance_Protocol) IsYANGGoStruct()

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

func (*SdcioModel_NetworkInstance_Protocol) Validate added in v0.0.44

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

func (*SdcioModel_NetworkInstance_Protocol) ΛBelongingModule added in v0.0.44

func (*SdcioModel_NetworkInstance_Protocol) ΛBelongingModule() string

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

func (*SdcioModel_NetworkInstance_Protocol) ΛEnumTypeMap added in v0.0.44

func (t *SdcioModel_NetworkInstance_Protocol) Λ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 (*SdcioModel_NetworkInstance_Protocol) ΛValidate added in v0.0.44

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

type SdcioModel_NetworkInstance_Protocol_Bgp added in v0.0.44

type SdcioModel_NetworkInstance_Protocol_Bgp struct {
	AdminState       E_SdcioModelNi_AdminState                                                                `path:"admin-state" module:"sdcio_model"`
	AfiSafi          map[E_SdcioModelCommon_BgpAddressFamily]*SdcioModel_NetworkInstance_Protocol_Bgp_AfiSafi `path:"afi-safi" module:"sdcio_model"`
	AutonomousSystem *uint32                                                                                  `path:"autonomous-system" module:"sdcio_model"`
	RouterId         *string                                                                                  `path:"router-id" module:"sdcio_model"`
}

SdcioModel_NetworkInstance_Protocol_Bgp represents the /sdcio_model/network-instance/protocol/bgp YANG schema element.

func (*SdcioModel_NetworkInstance_Protocol_Bgp) IsYANGGoStruct added in v0.0.44

func (*SdcioModel_NetworkInstance_Protocol_Bgp) IsYANGGoStruct()

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

func (*SdcioModel_NetworkInstance_Protocol_Bgp) NewAfiSafi added in v0.0.44

NewAfiSafi creates a new entry in the AfiSafi list of the SdcioModel_NetworkInstance_Protocol_Bgp struct. The keys of the list are populated from the input arguments.

func (*SdcioModel_NetworkInstance_Protocol_Bgp) Validate added in v0.0.44

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

func (*SdcioModel_NetworkInstance_Protocol_Bgp) ΛBelongingModule added in v0.0.44

func (*SdcioModel_NetworkInstance_Protocol_Bgp) ΛBelongingModule() string

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

func (*SdcioModel_NetworkInstance_Protocol_Bgp) ΛEnumTypeMap added in v0.0.44

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

func (*SdcioModel_NetworkInstance_Protocol_Bgp) ΛValidate added in v0.0.44

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

type SdcioModel_NetworkInstance_Protocol_Bgp_AfiSafi added in v0.0.44

type SdcioModel_NetworkInstance_Protocol_Bgp_AfiSafi struct {
	AdminState  E_SdcioModelNi_AdminState           `path:"admin-state" module:"sdcio_model"`
	AfiSafiName E_SdcioModelCommon_BgpAddressFamily `path:"afi-safi-name" module:"sdcio_model"`
}

SdcioModel_NetworkInstance_Protocol_Bgp_AfiSafi represents the /sdcio_model/network-instance/protocol/bgp/afi-safi YANG schema element.

func (*SdcioModel_NetworkInstance_Protocol_Bgp_AfiSafi) IsYANGGoStruct added in v0.0.44

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

func (*SdcioModel_NetworkInstance_Protocol_Bgp_AfiSafi) Validate added in v0.0.44

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

func (*SdcioModel_NetworkInstance_Protocol_Bgp_AfiSafi) ΛBelongingModule added in v0.0.44

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

func (*SdcioModel_NetworkInstance_Protocol_Bgp_AfiSafi) ΛEnumTypeMap added in v0.0.44

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

func (*SdcioModel_NetworkInstance_Protocol_Bgp_AfiSafi) ΛListKeyMap added in v0.0.44

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

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

func (*SdcioModel_NetworkInstance_Protocol_Bgp_AfiSafi) ΛValidate added in v0.0.44

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL