vlan

package
v0.0.0-...-fac1166 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

This module defines configuration and state variables for VLANs, in addition to VLAN parameters associated with interfaces

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vlans

type Vlans struct {
	EntityData types.CommonEntityData
	YFilter    yfilter.YFilter

	// Configured VLANs keyed by id. The type is slice of Vlans_Vlan.
	Vlan []*Vlans_Vlan
}

Vlans Container for VLAN configuration and state variables

func (*Vlans) GetEntityData

func (vlans *Vlans) GetEntityData() *types.CommonEntityData

type Vlans_Vlan

type Vlans_Vlan struct {
	EntityData types.CommonEntityData
	YFilter    yfilter.YFilter
	YListKey   string

	// This attribute is a key. references the configured vlan-id. The type is
	// string with range: 1..4094. Refers to vlan.Vlans_Vlan_Config_VlanId
	VlanId interface{}

	// Configuration parameters for VLANs.
	Config Vlans_Vlan_Config

	// State variables for VLANs.
	State Vlans_Vlan_State

	// Enclosing container for list of member interfaces.
	Members Vlans_Vlan_Members
}

Vlans_Vlan Configured VLANs keyed by id

func (*Vlans_Vlan) GetEntityData

func (vlan *Vlans_Vlan) GetEntityData() *types.CommonEntityData

type Vlans_Vlan_Config

type Vlans_Vlan_Config struct {
	EntityData types.CommonEntityData
	YFilter    yfilter.YFilter

	// Interface VLAN id. The type is interface{} with range: 1..4094.
	VlanId interface{}

	// Interface VLAN name. The type is string.
	Name interface{}

	// Admin state of the VLAN. The type is Status. The default value is ACTIVE.
	Status interface{}

	// Optionally set the tag protocol identifier field (TPID) that is accepted on
	// the VLAN. The type is one of the following:
	// TPID0X9200TPID0x8A88TPID0x8100TPID0x9100. The default value is
	// oc-vlan-types:TPID_0x8100.
	Tpid interface{}
}

Vlans_Vlan_Config Configuration parameters for VLANs

func (*Vlans_Vlan_Config) GetEntityData

func (config *Vlans_Vlan_Config) GetEntityData() *types.CommonEntityData

type Vlans_Vlan_Config_Status

type Vlans_Vlan_Config_Status string

Vlans_Vlan_Config_Status represents Admin state of the VLAN

const (
	// VLAN is active
	Vlans_Vlan_Config_Status_ACTIVE Vlans_Vlan_Config_Status = "ACTIVE"

	// VLAN is inactive / suspended
	Vlans_Vlan_Config_Status_SUSPENDED Vlans_Vlan_Config_Status = "SUSPENDED"
)

type Vlans_Vlan_Members

type Vlans_Vlan_Members struct {
	EntityData types.CommonEntityData
	YFilter    yfilter.YFilter

	// List of references to interfaces / subinterfaces associated with the VLAN.
	// The type is slice of Vlans_Vlan_Members_Member.
	Member []*Vlans_Vlan_Members_Member
}

Vlans_Vlan_Members Enclosing container for list of member interfaces

func (*Vlans_Vlan_Members) GetEntityData

func (members *Vlans_Vlan_Members) GetEntityData() *types.CommonEntityData

type Vlans_Vlan_Members_Member

type Vlans_Vlan_Members_Member struct {
	EntityData types.CommonEntityData
	YFilter    yfilter.YFilter
	YListKey   string

	// Reference to an interface or subinterface.
	InterfaceRef Vlans_Vlan_Members_Member_InterfaceRef
}

Vlans_Vlan_Members_Member List of references to interfaces / subinterfaces associated with the VLAN.

func (*Vlans_Vlan_Members_Member) GetEntityData

func (member *Vlans_Vlan_Members_Member) GetEntityData() *types.CommonEntityData

type Vlans_Vlan_Members_Member_InterfaceRef

type Vlans_Vlan_Members_Member_InterfaceRef struct {
	EntityData types.CommonEntityData
	YFilter    yfilter.YFilter

	// Operational state for interface-ref.
	State Vlans_Vlan_Members_Member_InterfaceRef_State
}

Vlans_Vlan_Members_Member_InterfaceRef Reference to an interface or subinterface

func (*Vlans_Vlan_Members_Member_InterfaceRef) GetEntityData

func (interfaceRef *Vlans_Vlan_Members_Member_InterfaceRef) GetEntityData() *types.CommonEntityData

type Vlans_Vlan_Members_Member_InterfaceRef_State

type Vlans_Vlan_Members_Member_InterfaceRef_State struct {
	EntityData types.CommonEntityData
	YFilter    yfilter.YFilter

	// Reference to a base interface.  If a reference to a subinterface is
	// required, this leaf must be specified to indicate the base interface. The
	// type is string. Refers to interfaces.Interfaces_Interface_Name
	Interface interface{}

	// Reference to a subinterface -- this requires the base interface to be
	// specified using the interface leaf in this container.  If only a reference
	// to a base interface is requuired, this leaf should not be set. The type is
	// string with range: 0..4294967295. Refers to
	// interfaces.Interfaces_Interface_Subinterfaces_Subinterface_Index
	Subinterface interface{}
}

Vlans_Vlan_Members_Member_InterfaceRef_State Operational state for interface-ref

func (*Vlans_Vlan_Members_Member_InterfaceRef_State) GetEntityData

type Vlans_Vlan_State

type Vlans_Vlan_State struct {
	EntityData types.CommonEntityData
	YFilter    yfilter.YFilter

	// Interface VLAN id. The type is interface{} with range: 1..4094.
	VlanId interface{}

	// Interface VLAN name. The type is string.
	Name interface{}

	// Admin state of the VLAN. The type is Status. The default value is ACTIVE.
	Status interface{}

	// Optionally set the tag protocol identifier field (TPID) that is accepted on
	// the VLAN. The type is one of the following:
	// TPID0X9200TPID0x8A88TPID0x8100TPID0x9100. The default value is
	// oc-vlan-types:TPID_0x8100.
	Tpid interface{}
}

Vlans_Vlan_State State variables for VLANs

func (*Vlans_Vlan_State) GetEntityData

func (state *Vlans_Vlan_State) GetEntityData() *types.CommonEntityData

type Vlans_Vlan_State_Status

type Vlans_Vlan_State_Status string

Vlans_Vlan_State_Status represents Admin state of the VLAN

const (
	// VLAN is active
	Vlans_Vlan_State_Status_ACTIVE Vlans_Vlan_State_Status = "ACTIVE"

	// VLAN is inactive / suspended
	Vlans_Vlan_State_Status_SUSPENDED Vlans_Vlan_State_Status = "SUSPENDED"
)

Jump to

Keyboard shortcuts

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