spanning_tree_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 vlans in a Network Element. 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 StpDetails

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

	// List of mst/rapid-pvst spanning-tree, keyed by instance name. The type is
	// slice of StpDetails_StpDetail.
	StpDetail []*StpDetails_StpDetail

	// Global state data.
	StpGlobal StpDetails_StpGlobal
}

StpDetails Top-level container for spanning tree operational data

func (*StpDetails) GetEntityData

func (stpDetails *StpDetails) GetEntityData() *types.CommonEntityData

type StpDetails_StpDetail

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

	// This attribute is a key. Spanning-tree enabled mode and id. The type is
	// string.
	Instance interface{}

	// The interval between periodic transmissions of configuration messages by
	// designated ports. The type is interface{} with range:
	// -2147483648..2147483647.
	HelloTime interface{}

	// The maximum age of the information transmitted by the bridge when it is the
	// root bridge. The type is interface{} with range: -2147483648..2147483647.
	MaxAge interface{}

	// The delay used by STP bridges to transition root and designated ports to
	// forwarding. The type is interface{} with range: -2147483648..2147483647.
	ForwardingDelay interface{}

	// The maximum number of BPDUs per second that the switch can send from an
	// interface. The type is interface{} with range: 0..4294967295.
	HoldCount interface{}

	// The manageable component of the Bridge Identifier. The type is interface{}
	// with range: 0..65535.
	BridgePriority interface{}

	// A unique 48-bit Universally Administered MAC Address assigned to the
	// bridge. The type is string with pattern:
	// [0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}.
	BridgeAddress interface{}

	// The bridge priority of the root of the spanning tree, as determined by the
	// Spanning Tree Protocol, as executed by this node. The type is interface{}
	// with range: 0..4294967295.
	DesignatedRootPriority interface{}

	// The bridge address of the root of the spanning tree, as determined by the
	// Spanning Tree Protocol, as executed by this node. The type is string with
	// pattern: [0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}.
	DesignatedRootAddress interface{}

	// The port number of the port which offers the lowest cost path from this
	// bridge to the root bridge. The type is interface{} with range: 0..65535.
	RootPort interface{}

	// The cost of the path to the root as seen from this bridge. The type is
	// interface{} with range: 0..18446744073709551615.
	RootCost interface{}

	// This time value determines the interval length during which no more than
	// two Configuration bridge PDUs shall be transmitted by this node. The type
	// is interface{} with range: 0..18446744073709551615.
	HoldTime interface{}

	// The total number of topology changes detected by this bridge since the
	// management entity was last reset or initialized. The type is interface{}
	// with range: 0..18446744073709551615.
	TopologyChanges interface{}

	// The time of the last topology change that was detected by the bridge
	// entity.The time is POSIX time UTC. 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}).
	TimeOfLastTopologyChange interface{}

	// List of interfaces on which STP is enable.
	Interfaces StpDetails_StpDetail_Interfaces
}

StpDetails_StpDetail List of mst/rapid-pvst spanning-tree, keyed by instance name

func (*StpDetails_StpDetail) GetEntityData

func (stpDetail *StpDetails_StpDetail) GetEntityData() *types.CommonEntityData

type StpDetails_StpDetail_Interfaces

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

	// List of interfaces on which STP is enable. The type is slice of
	// StpDetails_StpDetail_Interfaces_Interface.
	Interface []*StpDetails_StpDetail_Interfaces_Interface
}

StpDetails_StpDetail_Interfaces List of interfaces on which STP is enable

func (*StpDetails_StpDetail_Interfaces) GetEntityData

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

type StpDetails_StpDetail_Interfaces_Interface

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

	// This attribute is a key. Reference to the STP ethernet interface. The type
	// is string.
	Name interface{}

	// The port's contribution, when it is the Root Port, to the Root Path Cost
	// for the Bridge. The type is interface{} with range:
	// 0..18446744073709551615.
	Cost interface{}

	// The manageable component of the Port Identifier, also known as the Port
	// Priority. The type is interface{} with range: 0..65535.
	PortPriority interface{}

	// The port number of the bridge port. The type is interface{} with range:
	// 0..65535.
	PortNum interface{}

	// The current role of the bridge port. The type is StpPortRole.
	Role interface{}

	// The current state of the bridge port. The type is StpPortState.
	State interface{}

	// The bridge priority of the bridge recorded as the root in the configuration
	// BPDUs transmitted by the designated bridge for the segment to which the
	// port is attached. The type is interface{} with range: 0..4294967295.
	DesignatedRootPriority interface{}

	// The bridge address of the bridge recorded as the root in the configuration
	// BPDUs transmitted by the designated bridge for the segment to which the
	// port is attached. The type is string with pattern:
	// [0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}.
	DesignatedRootAddress interface{}

	// The path cost of the Designated Port of the segment connected to this port.
	// The type is interface{} with range: 0..4294967295.
	DesignatedCost interface{}

	// The bridge priority of the bridge that this port considers to be the
	// designated bridge for this port's segment. The type is interface{} with
	// range: 0..4294967295.
	DesignatedBridgePriority interface{}

	// The bridge address of the bridge that this port considers to be the
	// designated bridge for this port's segment. The type is string with pattern:
	// [0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}.
	DesignatedBridgeAddress interface{}

	// The Port priority of the port on the Designated Bridge for this port's
	// segment, two octet string. The type is interface{} with range: 0..65535.
	DesignatedPortPriority interface{}

	// The Port number of the port on the Designated Bridge for this port's
	// segment, two octet string. The type is interface{} with range: 0..65535.
	DesignatedPortNum interface{}

	// The number of times this port has transitioned from the Learning state to
	// the Forwarding state. The type is interface{} with range:
	// 0..18446744073709551615.
	ForwardTransitions interface{}

	// Interface's link type. The type is StpLinkRole.
	LinkType interface{}

	// Interface's spanning tree guard mode. The type is StpPortGuard.
	Guard interface{}

	// BPDU guard on this interface. The type is StpPortBpduguard.
	BpduGuard interface{}

	// BPDU filter on this interface. The type is StpPortBpdufilter.
	BpduFilter interface{}

	// The number of BPDU packet sent. The type is interface{} with range:
	// 0..18446744073709551615.
	BpduSent interface{}

	// The number of BPDU packet received. The type is interface{} with range:
	// 0..18446744073709551615.
	BpduReceived interface{}
}

StpDetails_StpDetail_Interfaces_Interface List of interfaces on which STP is enable

func (*StpDetails_StpDetail_Interfaces_Interface) GetEntityData

type StpDetails_StpGlobal

type StpDetails_StpGlobal struct {
	EntityData types.CommonEntityData
	YFilter    yfilter.YFilter
	YPresence  bool

	// Spanning tree mode enabled on the device. The type is StpMode.
	Mode interface{}

	// Enable STP Bridge Assurance feature. The type is interface{}.
	BridgeAssurance interface{}

	// Enable loopguard by default. The type is interface{}.
	LoopGuard interface{}

	// Enable portfast bpdu guard. The type is interface{}.
	BpduGuard interface{}

	// Enable portfast bpdu filter. The type is interface{}.
	BpduFilter interface{}

	// Enable guard to protect against etherchannel misconfiguration. The type is
	// interface{}.
	EtherchannelMisconfigGuard interface{}

	// Global state for MST ONLY.
	MstOnly StpDetails_StpGlobal_MstOnly
}

StpDetails_StpGlobal Global state data This type is a presence type.

func (*StpDetails_StpGlobal) GetEntityData

func (stpGlobal *StpDetails_StpGlobal) GetEntityData() *types.CommonEntityData

type StpDetails_StpGlobal_MstOnly

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

	// Configuration revision number(used by MSTP only). The type is interface{}
	// with range: 0..65535.
	MstConfigRevision interface{}

	// Configuration name(used by MSTP only). The type is string.
	MstConfigName interface{}

	// The max hops value for the spanning tree(used by MSTP only). The type is
	// interface{} with range: 0..65535.
	MaxHops interface{}
}

StpDetails_StpGlobal_MstOnly Global state for MST ONLY

func (*StpDetails_StpGlobal_MstOnly) GetEntityData

func (mstOnly *StpDetails_StpGlobal_MstOnly) GetEntityData() *types.CommonEntityData

type StpLinkRole

type StpLinkRole string

StpLinkRole represents Type definition for the different link types

const (
	StpLinkRole_stp_auto StpLinkRole = "stp-auto"

	StpLinkRole_stp_point_to_point StpLinkRole = "stp-point-to-point"

	StpLinkRole_stp_shared StpLinkRole = "stp-shared"
)

type StpMode

type StpMode string

StpMode represents Spanning tree operating mode

const (
	StpMode_stp_mode_pvst StpMode = "stp-mode-pvst"

	StpMode_stp_mode_rapid_pvst StpMode = "stp-mode-rapid-pvst"

	StpMode_stp_mode_mst StpMode = "stp-mode-mst"
)

type StpPortBpdufilter

type StpPortBpdufilter string

StpPortBpdufilter represents Send or receive BPDUs on this interface

const (
	StpPortBpdufilter_stp_port_bpdufilter_disable StpPortBpdufilter = "stp-port-bpdufilter-disable"

	StpPortBpdufilter_stp_port_bpdufilter_enable StpPortBpdufilter = "stp-port-bpdufilter-enable"

	StpPortBpdufilter_stp_port_bpdufilter_default StpPortBpdufilter = "stp-port-bpdufilter-default"
)

type StpPortBpduguard

type StpPortBpduguard string

StpPortBpduguard represents Accept BPDUs on this interface

const (
	StpPortBpduguard_stp_port_bpduguard_disable StpPortBpduguard = "stp-port-bpduguard-disable"

	StpPortBpduguard_stp_port_bpduguard_enable StpPortBpduguard = "stp-port-bpduguard-enable"

	StpPortBpduguard_stp_port_bpduguard_default StpPortBpduguard = "stp-port-bpduguard-default"
)

type StpPortGuard

type StpPortGuard string

StpPortGuard represents Interface's spanning tree guard mode

const (
	StpPortGuard_stp_port_guard_default StpPortGuard = "stp-port-guard-default"

	StpPortGuard_stp_port_guard_root StpPortGuard = "stp-port-guard-root"

	StpPortGuard_stp_port_guard_loop StpPortGuard = "stp-port-guard-loop"

	StpPortGuard_stp_port_guard_none StpPortGuard = "stp-port-guard-none"
)

type StpPortRole

type StpPortRole string

StpPortRole represents Spanning Tree Protocol port roles

const (
	StpPortRole_stp_master StpPortRole = "stp-master"

	StpPortRole_stp_alternate StpPortRole = "stp-alternate"

	StpPortRole_stp_root StpPortRole = "stp-root"

	StpPortRole_stp_designated StpPortRole = "stp-designated"

	StpPortRole_stp_backup StpPortRole = "stp-backup"
)

type StpPortState

type StpPortState string

StpPortState represents Spanning Tree Protocol port states

const (
	StpPortState_stp_disabled StpPortState = "stp-disabled"

	StpPortState_stp_blocking StpPortState = "stp-blocking"

	StpPortState_stp_listening StpPortState = "stp-listening"

	StpPortState_stp_learning StpPortState = "stp-learning"

	StpPortState_stp_forwarding StpPortState = "stp-forwarding"

	StpPortState_stp_broken StpPortState = "stp-broken"

	StpPortState_stp_invalid StpPortState = "stp-invalid"
)

Jump to

Keyboard shortcuts

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