lldp

package
v0.0.0-...-50def94 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

This module defines configuration and operational state data for the LLDP protocol.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lldp

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

	// Configuration data .
	Config Lldp_Config

	// Operational state data .
	State Lldp_State

	// Enclosing container .
	Interfaces Lldp_Interfaces
}

Lldp Top-level container for LLDP configuration and state data

func (*Lldp) GetEntityData

func (lldp *Lldp) GetEntityData() *types.CommonEntityData

type Lldp_Config

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

	// System level state of the LLDP protocol. The type is bool. The default
	// value is true.
	Enabled interface{}

	// System level hello timer for the LLDP protocol. The type is interface{}
	// with range: 0..18446744073709551615. Units are seconds.
	HelloTimer interface{}

	// Indicates whether the local system should suppress the advertisement of
	// particular TLVs with the LLDP PDUs that it transmits. Where a TLV type is
	// specified within this list, it should not be included in any LLDP PDU
	// transmitted by the local agent. The type is slice of [u'SYSTEMNAME',
	// u'PORTDESCRIPTION', u'SYSTEMDESCRIPTION', u'CHASSISID',
	// u'SYSTEMCAPABILITIES', u'MANAGEMENTADDRESS', u'PORTID'].
	SuppressTlvAdvertisement []interface{}

	// The system name field shall contain an alpha-numeric string that indicates
	// the system's administratively assigned name. The system name should be the
	// system's fully qualified domain name. If implementations support IETF RFC
	// 3418, the sysName object should be used for this field. The type is string
	// with length: 0..255.
	SystemName interface{}

	// The system description field shall contain an alpha-numeric string that is
	// the textual description of the network entity. The system description
	// should include the full name and version identification of the system's
	// hardware type, software operating system, and networking software. If
	// implementations support IETF RFC 3418, the sysDescr object should be used
	// for this field. The type is string with length: 0..255.
	SystemDescription interface{}

	// The Chassis ID is a mandatory TLV which identifies the chassis component of
	// the endpoint identifier associated with the transmitting LLDP agent. The
	// type is string.
	ChassisId interface{}

	// This field identifies the format and source of the chassis identifier
	// string. It is an enumerator defined by the LldpChassisIdSubtype object from
	// IEEE 802.1AB MIB. The type is ChassisIdType.
	ChassisIdType interface{}
}

Lldp_Config Configuration data

func (*Lldp_Config) GetEntityData

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

type Lldp_Interfaces

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

	// List of interfaces on which LLDP is enabled / available. The type is slice
	// of Lldp_Interfaces_Interface.
	Interface []*Lldp_Interfaces_Interface
}

Lldp_Interfaces Enclosing container

func (*Lldp_Interfaces) GetEntityData

func (interfaces *Lldp_Interfaces) GetEntityData() *types.CommonEntityData

type Lldp_Interfaces_Interface

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

	// This attribute is a key. Reference to the list key. The type is string.
	// Refers to lldp.Lldp_Interfaces_Interface_Config_Name
	Name interface{}

	// Configuration data for LLDP on each interface.
	Config Lldp_Interfaces_Interface_Config

	// Operational state data .
	State Lldp_Interfaces_Interface_State

	// Enclosing container for list of LLDP neighbors on an interface.
	Neighbors Lldp_Interfaces_Interface_Neighbors
}

Lldp_Interfaces_Interface List of interfaces on which LLDP is enabled / available

func (*Lldp_Interfaces_Interface) GetEntityData

func (self *Lldp_Interfaces_Interface) GetEntityData() *types.CommonEntityData

type Lldp_Interfaces_Interface_Config

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

	// Reference to the LLDP Ethernet interface. The type is string. Refers to
	// interfaces.Interfaces_Interface_Name
	Name interface{}

	// Enable or disable the LLDP protocol on the interface. The type is bool. The
	// default value is true.
	Enabled interface{}
}

Lldp_Interfaces_Interface_Config Configuration data for LLDP on each interface

func (*Lldp_Interfaces_Interface_Config) GetEntityData

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

type Lldp_Interfaces_Interface_Neighbors

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

	// List of LLDP neighbors. The type is slice of
	// Lldp_Interfaces_Interface_Neighbors_Neighbor.
	Neighbor []*Lldp_Interfaces_Interface_Neighbors_Neighbor
}

Lldp_Interfaces_Interface_Neighbors Enclosing container for list of LLDP neighbors on an interface

func (*Lldp_Interfaces_Interface_Neighbors) GetEntityData

func (neighbors *Lldp_Interfaces_Interface_Neighbors) GetEntityData() *types.CommonEntityData

type Lldp_Interfaces_Interface_Neighbors_Neighbor

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

	// This attribute is a key.  . The type is string. Refers to
	// lldp.Lldp_Interfaces_Interface_Neighbors_Neighbor_State_Id
	Id interface{}

	// Configuration data .
	Config Lldp_Interfaces_Interface_Neighbors_Neighbor_Config

	// Operational state data .
	State Lldp_Interfaces_Interface_Neighbors_Neighbor_State

	// Enclosing container for list of custom TLVs from a neighbor.
	CustomTlvs Lldp_Interfaces_Interface_Neighbors_Neighbor_CustomTlvs

	// Enclosing container for list of LLDP capabilities.
	Capabilities Lldp_Interfaces_Interface_Neighbors_Neighbor_Capabilities
}

Lldp_Interfaces_Interface_Neighbors_Neighbor List of LLDP neighbors

func (*Lldp_Interfaces_Interface_Neighbors_Neighbor) GetEntityData

type Lldp_Interfaces_Interface_Neighbors_Neighbor_Capabilities

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

	// List of LLDP system capabilities advertised by the neighbor. The type is
	// slice of
	// Lldp_Interfaces_Interface_Neighbors_Neighbor_Capabilities_Capability.
	Capability []*Lldp_Interfaces_Interface_Neighbors_Neighbor_Capabilities_Capability
}

Lldp_Interfaces_Interface_Neighbors_Neighbor_Capabilities Enclosing container for list of LLDP capabilities

func (*Lldp_Interfaces_Interface_Neighbors_Neighbor_Capabilities) GetEntityData

type Lldp_Interfaces_Interface_Neighbors_Neighbor_Capabilities_Capability

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

	// This attribute is a key. Reference to capabilities list key. The type is
	// one of the following:
	// MACBRIDGEDOCSISCABLEDEVICEREPEATERCVLANTWOPORTMACRELAYSVLANTELEPHONEOTHERROUTERSTATIONONLYWLANACCESSPOINT.
	Name interface{}

	// Configuration data for LLDP capabilities.
	Config Lldp_Interfaces_Interface_Neighbors_Neighbor_Capabilities_Capability_Config

	// Operational state data for LLDP capabilities.
	State Lldp_Interfaces_Interface_Neighbors_Neighbor_Capabilities_Capability_State
}

Lldp_Interfaces_Interface_Neighbors_Neighbor_Capabilities_Capability List of LLDP system capabilities advertised by the neighbor

func (*Lldp_Interfaces_Interface_Neighbors_Neighbor_Capabilities_Capability) GetEntityData

type Lldp_Interfaces_Interface_Neighbors_Neighbor_Capabilities_Capability_Config

type Lldp_Interfaces_Interface_Neighbors_Neighbor_Capabilities_Capability_Config struct {
	EntityData types.CommonEntityData
	YFilter    yfilter.YFilter
}

Lldp_Interfaces_Interface_Neighbors_Neighbor_Capabilities_Capability_Config Configuration data for LLDP capabilities

func (*Lldp_Interfaces_Interface_Neighbors_Neighbor_Capabilities_Capability_Config) GetEntityData

type Lldp_Interfaces_Interface_Neighbors_Neighbor_Capabilities_Capability_State

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

	// Name of the system capability advertised by the neighbor. Capabilities are
	// represented in a bitmap that defines the primary functions of the system.
	// The capabilities are defined in IEEE 802.1AB. The type is one of the
	// following:
	// MACBRIDGEDOCSISCABLEDEVICEREPEATERCVLANTWOPORTMACRELAYSVLANTELEPHONEOTHERROUTERSTATIONONLYWLANACCESSPOINT.
	Name interface{}

	// Indicates whether the corresponding system capability is enabled on the
	// neighbor. The type is bool.
	Enabled interface{}
}

Lldp_Interfaces_Interface_Neighbors_Neighbor_Capabilities_Capability_State Operational state data for LLDP capabilities

func (*Lldp_Interfaces_Interface_Neighbors_Neighbor_Capabilities_Capability_State) GetEntityData

type Lldp_Interfaces_Interface_Neighbors_Neighbor_Config

type Lldp_Interfaces_Interface_Neighbors_Neighbor_Config struct {
	EntityData types.CommonEntityData
	YFilter    yfilter.YFilter
}

Lldp_Interfaces_Interface_Neighbors_Neighbor_Config Configuration data

func (*Lldp_Interfaces_Interface_Neighbors_Neighbor_Config) GetEntityData

type Lldp_Interfaces_Interface_Neighbors_Neighbor_CustomTlvs

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

	// List of custom LLDP TLVs from a neighbor. The type is slice of
	// Lldp_Interfaces_Interface_Neighbors_Neighbor_CustomTlvs_Tlv.
	Tlv []*Lldp_Interfaces_Interface_Neighbors_Neighbor_CustomTlvs_Tlv
}

Lldp_Interfaces_Interface_Neighbors_Neighbor_CustomTlvs Enclosing container for list of custom TLVs from a neighbor

func (*Lldp_Interfaces_Interface_Neighbors_Neighbor_CustomTlvs) GetEntityData

type Lldp_Interfaces_Interface_Neighbors_Neighbor_CustomTlvs_Tlv

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

	// This attribute is a key. Reference to type list key. The type is string
	// with range: -2147483648..2147483647. Refers to
	// lldp.Lldp_Interfaces_Interface_Neighbors_Neighbor_CustomTlvs_Tlv_State_Type
	Type interface{}

	// This attribute is a key. Reference to oui list key. The type is string.
	// Refers to
	// lldp.Lldp_Interfaces_Interface_Neighbors_Neighbor_CustomTlvs_Tlv_State_Oui
	Oui interface{}

	// This attribute is a key. Reference to oui-subtype list key. The type is
	// string. Refers to
	// lldp.Lldp_Interfaces_Interface_Neighbors_Neighbor_CustomTlvs_Tlv_State_OuiSubtype
	OuiSubtype interface{}

	// Configuration data .
	Config Lldp_Interfaces_Interface_Neighbors_Neighbor_CustomTlvs_Tlv_Config

	// Operational state data .
	State Lldp_Interfaces_Interface_Neighbors_Neighbor_CustomTlvs_Tlv_State
}

Lldp_Interfaces_Interface_Neighbors_Neighbor_CustomTlvs_Tlv List of custom LLDP TLVs from a neighbor

func (*Lldp_Interfaces_Interface_Neighbors_Neighbor_CustomTlvs_Tlv) GetEntityData

type Lldp_Interfaces_Interface_Neighbors_Neighbor_CustomTlvs_Tlv_Config

type Lldp_Interfaces_Interface_Neighbors_Neighbor_CustomTlvs_Tlv_Config struct {
	EntityData types.CommonEntityData
	YFilter    yfilter.YFilter
}

Lldp_Interfaces_Interface_Neighbors_Neighbor_CustomTlvs_Tlv_Config Configuration data

func (*Lldp_Interfaces_Interface_Neighbors_Neighbor_CustomTlvs_Tlv_Config) GetEntityData

type Lldp_Interfaces_Interface_Neighbors_Neighbor_CustomTlvs_Tlv_State

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

	// The integer value identifying the type of information contained in the
	// value field. The type is interface{} with range: -2147483648..2147483647.
	Type interface{}

	// The organizationally unique identifier field shall contain the
	// organization's OUI as defined in Clause 9 of IEEE Std 802. The high-order
	// octet is 0 and the low-order 3 octets are the SMI Network Management
	// Private Enterprise Code of the Vendor in network byte order, as defined in
	// the 'Assigned Numbers' RFC [RFC3232]. The type is string.
	Oui interface{}

	// The organizationally defined subtype field shall contain a unique subtype
	// value assigned by the defining organization. The type is string.
	OuiSubtype interface{}

	// A variable-length octet-string containing the instance-specific information
	// for this TLV. The type is string.
	Value interface{}
}

Lldp_Interfaces_Interface_Neighbors_Neighbor_CustomTlvs_Tlv_State Operational state data

func (*Lldp_Interfaces_Interface_Neighbors_Neighbor_CustomTlvs_Tlv_State) GetEntityData

type Lldp_Interfaces_Interface_Neighbors_Neighbor_State

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

	// The system name field shall contain an alpha-numeric string that indicates
	// the system's administratively assigned name. The system name should be the
	// system's fully qualified domain name. If implementations support IETF RFC
	// 3418, the sysName object should be used for this field. The type is string
	// with length: 0..255.
	SystemName interface{}

	// The system description field shall contain an alpha-numeric string that is
	// the textual description of the network entity. The system description
	// should include the full name and version identification of the system's
	// hardware type, software operating system, and networking software. If
	// implementations support IETF RFC 3418, the sysDescr object should be used
	// for this field. The type is string with length: 0..255.
	SystemDescription interface{}

	// The Chassis ID is a mandatory TLV which identifies the chassis component of
	// the endpoint identifier associated with the transmitting LLDP agent. The
	// type is string.
	ChassisId interface{}

	// This field identifies the format and source of the chassis identifier
	// string. It is an enumerator defined by the LldpChassisIdSubtype object from
	// IEEE 802.1AB MIB. The type is ChassisIdType.
	ChassisIdType interface{}

	// System generated identifier for the neighbor on the interface. The type is
	// string.
	Id interface{}

	// Age since discovery. The type is interface{} with range:
	// 0..18446744073709551615. Units are seconds.
	Age interface{}

	// Seconds since last update received. The type is interface{} with range:
	// -9223372036854775808..9223372036854775807.
	LastUpdate interface{}

	// The Port ID is a mandatory TLV which identifies the port component of the
	// endpoint identifier associated with the transmitting LLDP agent. If the
	// specified port is an IEEE 802.3 Repeater port, then this TLV is optional.
	// The type is string.
	PortId interface{}

	// This field identifies the format and source of the port identifier string.
	// It is an enumerator defined by the PtopoPortIdType object from RFC2922. The
	// type is PortIdType.
	PortIdType interface{}

	// The binary string containing the actual port identifier for the port which
	// this LLDP PDU was transmitted. The source and format of this field is
	// defined by PtopoPortId from RFC2922. The type is string.
	PortDescription interface{}

	// The Management Address is a mandatory TLV which identifies a network
	// address associated with the local LLDP agent, which can be used to reach
	// the agent on the port identified in the Port ID TLV. The type is string.
	ManagementAddress interface{}

	// The enumerated value for the network address type identified in this TLV.
	// This enumeration is defined in the 'Assigned Numbers' RFC [RFC3232] and the
	// ianaAddressFamilyNumbers object. The type is string.
	ManagementAddressType interface{}
}

Lldp_Interfaces_Interface_Neighbors_Neighbor_State Operational state data

func (*Lldp_Interfaces_Interface_Neighbors_Neighbor_State) GetEntityData

type Lldp_Interfaces_Interface_State

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

	// Reference to the LLDP Ethernet interface. The type is string. Refers to
	// interfaces.Interfaces_Interface_Name
	Name interface{}

	// Enable or disable the LLDP protocol on the interface. The type is bool. The
	// default value is true.
	Enabled interface{}

	// LLDP counters on each interface.
	Counters Lldp_Interfaces_Interface_State_Counters
}

Lldp_Interfaces_Interface_State Operational state data

func (*Lldp_Interfaces_Interface_State) GetEntityData

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

type Lldp_Interfaces_Interface_State_Counters

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

	// The number of lldp frames received. The type is interface{} with range:
	// 0..18446744073709551615.
	FrameIn interface{}

	// The number of frames transmitted out. The type is interface{} with range:
	// 0..18446744073709551615.
	FrameOut interface{}

	// The number of LLDP frames received with errors. The type is interface{}
	// with range: 0..18446744073709551615.
	FrameErrorIn interface{}

	// The number of LLDP frames received and discarded. The type is interface{}
	// with range: 0..18446744073709551615.
	FrameDiscard interface{}

	// The number of TLV frames received and discarded. The type is interface{}
	// with range: 0..18446744073709551615.
	TlvDiscard interface{}

	// The number of frames received with unknown TLV. The type is interface{}
	// with range: 0..18446744073709551615.
	TlvUnknown interface{}

	// Indicates the last time the counters were cleared. The type is string with
	// pattern: \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[\+\-]\d{2}:\d{2}).
	LastClear interface{}

	// The number of frame transmit errors on the interface. The type is
	// interface{} with range: 0..18446744073709551615.
	FrameErrorOut interface{}
}

Lldp_Interfaces_Interface_State_Counters LLDP counters on each interface

func (*Lldp_Interfaces_Interface_State_Counters) GetEntityData

type Lldp_State

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

	// System level state of the LLDP protocol. The type is bool. The default
	// value is true.
	Enabled interface{}

	// System level hello timer for the LLDP protocol. The type is interface{}
	// with range: 0..18446744073709551615. Units are seconds.
	HelloTimer interface{}

	// Indicates whether the local system should suppress the advertisement of
	// particular TLVs with the LLDP PDUs that it transmits. Where a TLV type is
	// specified within this list, it should not be included in any LLDP PDU
	// transmitted by the local agent. The type is slice of [u'SYSTEMNAME',
	// u'PORTDESCRIPTION', u'SYSTEMDESCRIPTION', u'CHASSISID',
	// u'SYSTEMCAPABILITIES', u'MANAGEMENTADDRESS', u'PORTID'].
	SuppressTlvAdvertisement []interface{}

	// The system name field shall contain an alpha-numeric string that indicates
	// the system's administratively assigned name. The system name should be the
	// system's fully qualified domain name. If implementations support IETF RFC
	// 3418, the sysName object should be used for this field. The type is string
	// with length: 0..255.
	SystemName interface{}

	// The system description field shall contain an alpha-numeric string that is
	// the textual description of the network entity. The system description
	// should include the full name and version identification of the system's
	// hardware type, software operating system, and networking software. If
	// implementations support IETF RFC 3418, the sysDescr object should be used
	// for this field. The type is string with length: 0..255.
	SystemDescription interface{}

	// The Chassis ID is a mandatory TLV which identifies the chassis component of
	// the endpoint identifier associated with the transmitting LLDP agent. The
	// type is string.
	ChassisId interface{}

	// This field identifies the format and source of the chassis identifier
	// string. It is an enumerator defined by the LldpChassisIdSubtype object from
	// IEEE 802.1AB MIB. The type is ChassisIdType.
	ChassisIdType interface{}

	// Global LLDP counters.
	Counters Lldp_State_Counters
}

Lldp_State Operational state data

func (*Lldp_State) GetEntityData

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

type Lldp_State_Counters

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

	// The number of lldp frames received. The type is interface{} with range:
	// 0..18446744073709551615.
	FrameIn interface{}

	// The number of frames transmitted out. The type is interface{} with range:
	// 0..18446744073709551615.
	FrameOut interface{}

	// The number of LLDP frames received with errors. The type is interface{}
	// with range: 0..18446744073709551615.
	FrameErrorIn interface{}

	// The number of LLDP frames received and discarded. The type is interface{}
	// with range: 0..18446744073709551615.
	FrameDiscard interface{}

	// The number of TLV frames received and discarded. The type is interface{}
	// with range: 0..18446744073709551615.
	TlvDiscard interface{}

	// The number of frames received with unknown TLV. The type is interface{}
	// with range: 0..18446744073709551615.
	TlvUnknown interface{}

	// Indicates the last time the counters were cleared. The type is string with
	// pattern: \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[\+\-]\d{2}:\d{2}).
	LastClear interface{}

	// The number of valid TLVs received. The type is interface{} with range:
	// 0..18446744073709551615.
	TlvAccepted interface{}

	// The number of entries aged out due to timeout. The type is interface{} with
	// range: 0..18446744073709551615.
	EntriesAgedOut interface{}
}

Lldp_State_Counters Global LLDP counters

func (*Lldp_State_Counters) GetEntityData

func (counters *Lldp_State_Counters) GetEntityData() *types.CommonEntityData

Jump to

Keyboard shortcuts

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