cdp_oper

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 contains a collection of YANG definitions for monitoring of Cisco CDP operational information. Copyright (c) 2016-2017 by Cisco Systems, Inc. All rights reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CdpAdvVersion

type CdpAdvVersion string

CdpAdvVersion represents CDP advertized version information

const (
	CdpAdvVersion_cdp_advertised_none CdpAdvVersion = "cdp-advertised-none"

	CdpAdvVersion_cdp_advertised_v1 CdpAdvVersion = "cdp-advertised-v1"

	CdpAdvVersion_cdp_advertised_v2 CdpAdvVersion = "cdp-advertised-v2"
)

type CdpDuplex

type CdpDuplex string

CdpDuplex represents CDP duplex modes

const (
	CdpDuplex_cdp_duplex_unknown CdpDuplex = "cdp-duplex-unknown"

	CdpDuplex_cdp_half_duplex CdpDuplex = "cdp-half-duplex"

	CdpDuplex_cdp_full_duplex CdpDuplex = "cdp-full-duplex"

	CdpDuplex_cdp_half_duplex_mismatch CdpDuplex = "cdp-half-duplex-mismatch"

	CdpDuplex_cdp_full_duplex_mismatch CdpDuplex = "cdp-full-duplex-mismatch"
)

type CdpEnableDisable

type CdpEnableDisable string

CdpEnableDisable represents CDP type enable or disable

const (
	CdpEnableDisable_cdp_disable CdpEnableDisable = "cdp-disable"

	CdpEnableDisable_cdp_enable CdpEnableDisable = "cdp-enable"
)

type CdpNeighborDetails

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

	// List of CDP neighbor details. The type is slice of
	// CdpNeighborDetails_CdpNeighborDetail.
	CdpNeighborDetail []*CdpNeighborDetails_CdpNeighborDetail
}

CdpNeighborDetails Cisco CDP neighbor operational data

func (*CdpNeighborDetails) GetEntityData

func (cdpNeighborDetails *CdpNeighborDetails) GetEntityData() *types.CommonEntityData

type CdpNeighborDetails_CdpNeighborDetail

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

	// This attribute is a key. Device number of this device, Used as a key in the
	// device list. The type is interface{} with range: 0..4294967295.
	DeviceId interface{}

	// Device name in the form of a character string. By default device ID is
	// either the device's fully-qualified host name (including the domain name)
	// or the device's hardware serial number in ASCII. The type is string.
	DeviceName interface{}

	// The port or interface on which CDP packets are received. The type is
	// string.
	LocalIntfName interface{}

	// Neighbor device's port or interface on which the CDP packets are
	// multicasted. The type is string.
	PortId interface{}

	// Identifies the functional capability of the device. The capability types
	// that can be discovered are: R-Router T-Transparent bridge B-Source-routing
	// bridge S-Switch H-Host I-device is using IGMP r-Repeater. The type is
	// string.
	Capability interface{}

	// Identifies the platform information of the device. For example, Cisco 4500.
	// The type is string.
	PlatformName interface{}

	// Version Contains the device software release information. The type is
	// string.
	Version interface{}

	// Indicates the duplex configuration of the Cisco Discovery Protocol
	// broadcast interface. This information is used by network operators to
	// diagnose  connectivity problems between adjacent network devices. The type
	// is CdpDuplex.
	Duplex interface{}

	// CDP header version of the advertisement that last filled this cache entry.
	// The type is CdpAdvVersion.
	AdvVersion interface{}

	// Advertises the configured VLAN Trunking Protocol (VTP)-management-domain
	// name of the system. This name is used by network operators to verify
	// VTP-domain configuration in adjacent network nodes. The type is string.
	VtyMgmtDomain interface{}

	// Indicates, per interface, the assumed VLAN for untagged packets on the
	// interface. Cisco Discovery Protocol learns the native VLAN for an
	// interface. This field is implemented only for interfaces that support the
	// IEEE 802.1Q protocol Remote port's native VLAN [0..1k/4k]; 0 == not
	// received. The type is interface{} with range: 0..65535.
	NativeVlan interface{}

	// Appliance id for appliance vlan Appliance ID - Type of device attached to
	// port advertised in the appliance TLV. The type is interface{} with range:
	// 0..255.
	VvidTag interface{}

	// Appliance VLAN ID - VLAN on the device used by the appliance, for instance
	// if the appliance is an IP phone, this is the voice VLAN. The type is
	// interface{} with range: 0..65535.
	Vvid interface{}

	// This field shows the power in milliwatts device is using. The type is
	// interface{} with range: 0..4294967295.
	Power interface{}

	// Specifies ports to unidirectionally transmit or receive traffic.
	// Unidirectional Ethernet uses only one strand of fiber for either
	// transmitting or receiving one-way traffic for the GigaPort, instead of  two
	// strands of fiber for a full-duplex. The type is CdpUnidirectionalMode.
	UnidirectionalMode interface{}

	// Device's management addresses. The type is one of the following types:
	// string with pattern:
	// (([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\p{N}\p{L}]+)?,
	// or string with pattern:
	// ((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\p{N}\p{L}]+)?.
	MgmtAddress interface{}

	// IPv4 address of the device. The type is one of the following types: string
	// with pattern:
	// (([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\p{N}\p{L}]+)?,
	// or string with pattern:
	// ((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\p{N}\p{L}]+)?.
	IpAddress interface{}

	// IPv6 address of the device. The type is one of the following types: string
	// with pattern:
	// (([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\p{N}\p{L}]+)?,
	// or string with pattern:
	// ((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\p{N}\p{L}]+)?.
	Ipv6Address interface{}

	// CLNS address of the device. The type is string.
	ClnsAddress interface{}

	// DECNET address of the device. The type is string.
	DecnetAddr interface{}

	// Novell address of the device. It has a 4 byte net number followed by 6
	// bytes of  node information. The type is string.
	NovellAddr interface{}

	// Used to keep PC port status on IP phone. The type is string.
	SecondPortStatus interface{}

	// Table id of ip routing process. The type is interface{} with range:
	// 0..65535.
	TableId interface{}

	// CDP Protocol Hello message.
	HelloMessage CdpNeighborDetails_CdpNeighborDetail_HelloMessage

	// This field used to keep inline power.
	PowerRequest CdpNeighborDetails_CdpNeighborDetail_PowerRequest

	// This field used to keep inline power.
	PowerAvailable CdpNeighborDetails_CdpNeighborDetail_PowerAvailable

	// Spare pair PoE TLV is a one octet long. This has following field: Bit
	// Function                            value/Meaning 0    4-pair PoE Supported
	// 0=No/1=Yes 1    Spare pair Detection/Classification required   0=No/1=Yes 2
	// PD Spare Pair Desired State                    0=Disabled/1=Enabled 3
	// PSE Spare Pair Operational State               0=No/1=Yes 4:7   Reserved .
	SparePair CdpNeighborDetails_CdpNeighborDetail_SparePair
}

CdpNeighborDetails_CdpNeighborDetail List of CDP neighbor details

func (*CdpNeighborDetails_CdpNeighborDetail) GetEntityData

func (cdpNeighborDetail *CdpNeighborDetails_CdpNeighborDetail) GetEntityData() *types.CommonEntityData

type CdpNeighborDetails_CdpNeighborDetail_HelloMessage

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

	// OUI - org unique identifier for Cisco is 0x00000C. The type is string.
	Oui interface{}

	// Protocol identifier. This is the identifier of the cluster. The type is
	// string.
	ProtocolId interface{}

	// Payload value - combination of the device and addresses. The type is
	// string.
	PayloadValue interface{}

	// Payload length. The type is interface{} with range: 0..65535.
	PayloadLen interface{}
}

CdpNeighborDetails_CdpNeighborDetail_HelloMessage CDP Protocol Hello message

func (*CdpNeighborDetails_CdpNeighborDetail_HelloMessage) GetEntityData

type CdpNeighborDetails_CdpNeighborDetail_PowerAvailable

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

	// The last power request ID received echoes the Request-ID field last
	// received in a power requested TLV. It is 0 if no power requested TLV was
	// received since the port last became active. The type is interface{} with
	// range: 0..65535.
	PowerRequestId interface{}

	// This field increments by 1 each time the Available-Power or Management
	// Power fields change, a power requested TLV is received with a  Request-ID
	// field which is different from the last received set or when  the port goes
	// down. The type is interface{} with range: 0..65535.
	PowerManId interface{}

	// The amount of power consumed by the specified port in watts. The type is
	// interface{} with range: 0..4294967295.
	PowerAvailable interface{}

	// Management Power Level -- The request of the supplier to the powered device
	// for the power consumption TLV. The 200/300 switches always display No
	// Preference since the switch is a power provide. The type is interface{}
	// with range: 0..4294967295.
	PowerManLevel interface{}
}

CdpNeighborDetails_CdpNeighborDetail_PowerAvailable This field used to keep inline power

func (*CdpNeighborDetails_CdpNeighborDetail_PowerAvailable) GetEntityData

type CdpNeighborDetails_CdpNeighborDetail_PowerRequest

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

	// The last power request ID received echoes the Request-ID field last
	// received in a power requested TLV. It is 0 if no power requested TLV was
	// received since the port last became active. The type is interface{} with
	// range: 0..65535.
	PowerRequestId interface{}

	// This field increments by 1 each time the Available-Power or Management
	// Power fields change, a power requested TLV is received with a  Request-ID
	// field which is different from the last received set or when  the port goes
	// down. The type is interface{} with range: 0..65535.
	PowerManId interface{}

	// Power to be transmitted by a powerable device in order to negotiate a
	// suitable power level with the supplier of the network power. The type is
	// string.
	PowerRequestLevel interface{}
}

CdpNeighborDetails_CdpNeighborDetail_PowerRequest This field used to keep inline power

func (*CdpNeighborDetails_CdpNeighborDetail_PowerRequest) GetEntityData

type CdpNeighborDetails_CdpNeighborDetail_SparePair

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

	// Spare pair PoE TLV is a one octet long this field represents 4-pair PoE
	// Supported or not. The type is CdpYesNo.
	SparePairPoe interface{}

	// Spare pair PoE TLV is a one octet long this field represents Spare pair
	// Detection or Classification is required or not. The type is CdpYesNo.
	SparePairDetectionRequired interface{}

	// Spare pair PoE TLV is a one octet long this field represents Powered
	// Device(PD) Spare Pair Desired State. The type is CdpEnableDisable.
	SparePairPdConfig interface{}

	// Spare pair PoE TLV is a one octet long this field represents Power Source
	// Equipment(PSE) Spare Pair Operational State. The type is CdpYesNo.
	SparePairPseOperational interface{}
}

CdpNeighborDetails_CdpNeighborDetail_SparePair Spare pair PoE TLV is a one octet long. This has following field: Bit Function value/Meaning 0 4-pair PoE Supported 0=No/1=Yes 1 Spare pair Detection/Classification required 0=No/1=Yes 2 PD Spare Pair Desired State 0=Disabled/1=Enabled 3 PSE Spare Pair Operational State 0=No/1=Yes 4:7 Reserved

func (*CdpNeighborDetails_CdpNeighborDetail_SparePair) GetEntityData

type CdpUnidirectionalMode

type CdpUnidirectionalMode string

CdpUnidirectionalMode represents CDP unidirectional modes

const (
	CdpUnidirectionalMode_cdp_uni_mode_off CdpUnidirectionalMode = "cdp-uni-mode-off"

	CdpUnidirectionalMode_cdp_uni_mode_send_only CdpUnidirectionalMode = "cdp-uni-mode-send-only"

	CdpUnidirectionalMode_cdp_uni_mode_recv_only CdpUnidirectionalMode = "cdp-uni-mode-recv-only"

	CdpUnidirectionalMode_cdp_uni_mode_unknown CdpUnidirectionalMode = "cdp-uni-mode-unknown"
)

type CdpYesNo

type CdpYesNo string

CdpYesNo represents CDP type yes or no

const (
	CdpYesNo_cdp_no CdpYesNo = "cdp-no"

	CdpYesNo_cdp_yes CdpYesNo = "cdp-yes"
)

Jump to

Keyboard shortcuts

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