Skip to content
Ask AI

stp

AsterNOS Model for Multiple Spanning Tree Protocol

module: asternos-stp
+--rw stp
+--rw global
| +--rw enabled? boolean
| +--rw protocol? stp-types:stp-protocol-enumeration
+--rw stp
| +--rw config
| | +--rw forward-delay? uint16
| | +--rw hello-time? uint16
| | +--rw max-age? uint32
| | +--rw priority? uint8
| +--rw interfaces
| +--rw interface* [name]
| +--rw name union
| +--rw priority? uint8
| +--ro state
| +--ro role? stp-types:stp-port-role-enumeration
| +--ro port-state? stp-types:stp-port-state-enumeration
+--rw rstp
| +--rw config
| | +--rw forward-delay? uint16
| | +--rw hello-time? uint16
| | +--rw max-age? uint32
| | +--rw priority? uint8
| +--rw interfaces
| +--rw interface* [name]
| +--rw name union
| +--rw priority? uint8
| +--ro state
| +--ro role? stp-types:stp-port-role-enumeration
| +--ro port-state? stp-types:stp-port-state-enumeration
+--rw mstp
| +--rw config
| | +--rw name? string
| | +--rw forward-delay? uint16
| | +--rw hello-time? uint16
| | +--rw max-age? uint32
| +--rw instances
| +--rw instance* [id]
| +--rw id uint16
| +--rw priority? uint8
| +--rw vlans* cmn:vlan-id
| +--rw interfaces
| +--rw interface* [name]
| +--rw name union
| +--rw priority? uint8
| +--ro state
| +--ro role? stp-types:stp-port-role-enumeration
| +--ro port-state? stp-types:stp-port-state-enumeration
+--rw interfaces
+--rw interface* [name]
+--rw name union
+--rw bpdu-filter? boolean
+--rw bpdu-guard? boolean
rpcs:
+---x show-stp
+---w input
| +---w status? empty
| +---w stp_info
| | +---w stpid uint16
| | +---w interface_name? union
| +---w bind? empty
+--ro output
+--ro data? <anydata>
PathAccess
/stpRead-Write
/stp/globalRead-Write
/stp/global/enabledRead-Write
/stp/global/protocolRead-Write
/stp/stpRead-Write
/stp/stp/configRead-Write
/stp/stp/config/forward-delayRead-Write
/stp/stp/config/hello-timeRead-Write
/stp/stp/config/max-ageRead-Write
/stp/stp/config/priorityRead-Write
/stp/stp/interfacesRead-Write
/stp/stp/interfaces/interfaceRead-Write
/stp/stp/interfaces/interface/nameRead-Write
/stp/stp/interfaces/interface/priorityRead-Write
/stp/stp/interfaces/interface/stateRead-Only
/stp/stp/interfaces/interface/state/roleRead-Only
/stp/stp/interfaces/interface/state/port-stateRead-Only
/stp/rstpRead-Write
/stp/rstp/configRead-Write
/stp/rstp/config/forward-delayRead-Write
/stp/rstp/config/hello-timeRead-Write
/stp/rstp/config/max-ageRead-Write
/stp/rstp/config/priorityRead-Write
/stp/rstp/interfacesRead-Write
/stp/rstp/interfaces/interfaceRead-Write
/stp/rstp/interfaces/interface/nameRead-Write
/stp/rstp/interfaces/interface/priorityRead-Write
/stp/rstp/interfaces/interface/stateRead-Only
/stp/rstp/interfaces/interface/state/roleRead-Only
/stp/rstp/interfaces/interface/state/port-stateRead-Only
/stp/mstpRead-Write
/stp/mstp/configRead-Write
/stp/mstp/config/nameRead-Write
/stp/mstp/config/forward-delayRead-Write
/stp/mstp/config/hello-timeRead-Write
/stp/mstp/config/max-ageRead-Write
/stp/mstp/instancesRead-Write
/stp/mstp/instances/instanceRead-Write
/stp/mstp/instances/instance/idRead-Write
/stp/mstp/instances/instance/priorityRead-Write
/stp/mstp/instances/instance/vlansRead-Write
/stp/mstp/instances/instance/interfacesRead-Write
/stp/mstp/instances/instance/interfaces/interfaceRead-Write
/stp/mstp/instances/instance/interfaces/interface/nameRead-Write
/stp/mstp/instances/instance/interfaces/interface/priorityRead-Write
/stp/mstp/instances/instance/interfaces/interface/stateRead-Only
/stp/mstp/instances/instance/interfaces/interface/state/roleRead-Only
/stp/mstp/instances/instance/interfaces/interface/state/port-stateRead-Only
/stp/interfacesRead-Write
/stp/interfaces/interfaceRead-Write
/stp/interfaces/interface/nameRead-Write
/stp/interfaces/interface/bpdu-filterRead-Write
/stp/interfaces/interface/bpdu-guardRead-Write

Path

/stp

Node Type

container

Description

Top-level grouping for Multi spanning-tree model

Access

Read-Write

Path

/stp/global

Node Type

container

Description

Global configuration

Access

Read-Write

Path

/stp/global/enabled

Node Type

leaf

Description

MSTP status, true means MSTP is enabled, false means MSTP is disabled

Access

Read-Write

Data Type

<YANG type boolean>

Constraints

Valid in [true, false]

Path

/stp/global/protocol

Node Type

leaf

Description

List of the spanning tree protocols enabled on the device

Access

Read-Write

Data Type

<YANG type stp-protocol-enumeration>

Constraints

Enumeration with options:

  • stp
  • rstp
  • mstp

Path

/stp/stp

Node Type

container

Description

Global configuration

Access

Read-Write

Constraints

When condition: ../global/protocol = ‘stp’

Path

/stp/stp/config

Node Type

container

Description

Configuration data for STP

Access

Read-Write

Path

/stp/stp/config/forward-delay

Node Type

leaf

Description

Delay time for device state migration, in seconds, must meet 2*(forward-delay - 1 second) >= max-age

Access

Read-Write

Data Type

<YANG type uint16>

Constraints

Valid range: 4 to 30

Path

/stp/stp/config/hello-time

Node Type

leaf

Description

MSTP hello time, in seconds

Access

Read-Write

Data Typ

<YANG type uint16>

Constraints

Valid range: 1 to 10

Path

/stp/stp/config/max-age

Node Type

leaf

Description

A parameter used to determine whether a configuration message has been stored in the device for an out-of-date period of time, and the device will discard the out-of-date configuration message, in seconds, must meet 2*(max-age - 1 second) >= forward-delay

Access

Read-Write

Data Type

<YANG type uint32>

Constraints

Valid range: 6 to 40

Path

/stp/stp/config/priority

Node Type

leaf

Description

MSTP Region priority, once mstp is enabled the value is set to 8 by default.

Access

Read-Write

Data Type

<YANG type uint8>

Constraints

Valid range: 0 to 15

Path

/stp/stp/interfaces

Node Type

container

Access

Read-Write

Path

/stp/stp/interfaces/interface

Node Type

list

Description

List of MSTP instance ports

Access

Read-Write

Path

/stp/stp/interfaces/interface/name

Node Type

leaf

Description

Port name

Access

Read-Write

Data Type

<YANG type union>

Path

/stp/stp/interfaces/interface/priority

Node Type

leaf

Description

Set port priority for the MSTI

Access

Read-Write

Data Type

<YANG type uint8>

Constraints

Valid range: 0 to 15

Path

/stp/stp/interfaces/interface/state

Node Type

container

Description

Operational state data for STP on each interface

Access

Read-Only

Path

/stp/stp/interfaces/interface/state/role

Node Type

leaf

Description

The current role of the bridge port

Access

Read-Only

Data Type

<YANG type stp-port-role-enumeration>

Constraints

Enumeration with options:

  • Root
  • Designated
  • Alternate
  • Backup
  • Master
  • Disabled

/stp/stp/interfaces/interface/state/port-state

Section titled “/stp/stp/interfaces/interface/state/port-state”

Path

/stp/stp/interfaces/interface/state/port-state

Node Type

leaf

Description

The current state of the bridge port

Access

Read-Only

Data Type

<YANG type stp-port-state-enumeration>

Constraints

Enumeration with options: Listening Learning Blocking Discarding Forwarding

Path

/stp/rstp

Node Type

container

Description

Global configuration

Access

Read-Write

Constraints

When condition: ../global/protocol = ‘rstp’

Path

/stp/rstp/config

Node Type

container

Description

Configuration data for RSTP

Access

Read-Write

Path

/stp/rstp/config/forward-delay

Node Type

leaf

Description

Delay time for device state migration, in seconds, must meet 2*(forward-delay - 1 second) >= max-age

Access

Read-Write

Data Type

<YANG type uint16>

Constraints

Valid range: 4 to 30

Path

/stp/rstp/config/hello-time

Node Type

leaf

Description

MSTP hello time, in seconds

Access

Read-Write

Data Type

<YANG type uint16>

Constraints

Valid range: 1 to 10

Path

/stp/rstp/config/max-age

Node Type

leaf

Description

A parameter used to determine whether a configuration message has been stored in the device for an out-of-date period of time, and the device will discard the out-of-date configuration message, in seconds, must meet 2*(max-age - 1 second) >= forward-delay

Access

Read-Write

Data Type

<YANG type uint32>

Constraints

Valid range: 6 to 40

Path

/stp/rstp/config/priority

Node Type

leaf

Description

MSTP Region priority, once mstp is enabled the value is set to 8 by default.

Access

Read-Write

Data Type

<YANG type uint8>

Constraints

Valid range: 0 to 15

Path

/stp/rstp/interfaces

Node Type

container

Access

Read-Write

Path /stp/rstp/interfaces/interface

Node Type list

Description

List of MSTP instance ports

Access

Read-Write

Path

/stp/rstp/interfaces/interface/name

Node Type

leaf

Description

Port name

Access

Read-Write

Data Type

<YANG type union>

Path

/stp/rstp/interfaces/interface/priority

Node Type

leaf

Description

Set port priority for the MSTI

Access

Read-Write

Data Type

<YANG type uint8>

Constraints

Valid range: 0 to 15

Path

/stp/rstp/interfaces/interface/state

Node Type

container

Description

Operational state data for STP on each interface

Access

Read-Only

Path

/stp/rstp/interfaces/interface/state/role

Node Type

leaf

Description

The current role of the bridge port

Access

Read-Only

Data Type

<YANG type stp-port-role-enumeration>

Constraints

Enumeration with options:

  • Root
  • Designated
  • Alternate
  • Backup
  • Master
  • Disabled

/stp/rstp/interfaces/interface/state/port-state

Section titled “/stp/rstp/interfaces/interface/state/port-state”

Path

/stp/rstp/interfaces/interface/state/port-state

Node Type

leaf

Description

The current state of the bridge port

Access

Read-Only

Data Type

<YANG type stp-port-state-enumeration>

Constraints

Enumeration with options:

  • Listening
  • Learning
  • Blocking
  • Discarding
  • Forwarding

Path

/stp/mstp

Node Type

container

Description

Global configuration

Access

Read-Write

Constraints

When condition: ../global/protocol = ‘mstp’

Path

/stp/mstp/config

Node Type

container

Description

Configuration data for MSTP

Access

Read-Write

Path

/stp/mstp/config/name

Node Type

leaf

Description

MST Region name

Access

Read-Write

Data Type

<YANG type string>

Constraints

String with length: 1 to 32

Path

/stp/mstp/config/forward-delay

Node Type

leaf

Description

Delay time for device state migration, in seconds, must meet 2*(forward-delay - 1 second) >= max-age

Access

Read-Write

Data Type

<YANG type uint16>

Constraints

Valid range: 4 to 30

Path

/stp/mstp/config/hello-time

Node Type

leaf

Description

MSTP hello time, in seconds

Access

Read-Write

Data Type

<YANG type uint16>

Constraints

Valid range: 1 to 10

Path

/stp/mstp/config/max-age

Node Type

leaf

Description A parameter used to determine whether a configuration message has been stored in the device for an out-of-date period of time,and the device will discard the out-of-date configuration message, in seconds, must meet 2*(max-age - 1 second) >= forward-delay

Access

Read-Write

Data Type

<YANG type uint32>

Constraints

Valid range: 6 to 40

Path

/stp/mstp/instances

Node Type

container

Description

Configuration and operation data for MSTP instances

Access

Read-Write

Path

/stp/mstp/instances/instance

Node Type

list

Description

List of MSTP instances

Access

Read-Write

Path

/stp/mstp/instances/instance/id

Node Type

leaf

Description

MSTP instance ID

Access

Read-Write

Data Type

<YANG type uint16>

Constraints

Valid range: 0 to 255

Path

/stp/mstp/instances/instance/priority

Node Type

leaf

Description

MSTP Region priority, once mstp is enabled the value is set to 8 by default.

Access

Read-Write

Data Type

<YANG type uint8>

Constraints

Valid range: 0 to 15

Path

/stp/mstp/instances/instance/vlans

Node Type

leaf-list

Description

VLAN ID

Access

Read-Write

Data Type

<YANG type vlan-id>

Constraints

Valid range: 1 to 4094

Path

/stp/mstp/instances/instance/interfaces

Node Type

container

Access

Read-Write

/stp/mstp/instances/instance/interfaces/interface

Section titled “/stp/mstp/instances/instance/interfaces/interface”

Path

/stp/mstp/instances/instance/interfaces/interface

Node Type

list

Description

List of MSTP instance ports

Access

Read-Write

/stp/mstp/instances/instance/interfaces/interface/name

Section titled “/stp/mstp/instances/instance/interfaces/interface/name”

Path

/stp/mstp/instances/instance/interfaces/interface/name

Node Type

leaf

Description

Port name

Access

Read-Write

Data Type

<YANG type union>

/stp/mstp/instances/instance/interfaces/interface/priority

Section titled “/stp/mstp/instances/instance/interfaces/interface/priority”

Path

/stp/mstp/instances/instance/interfaces/interface/priority

Node Type

leaf

Description

Set port priority for the MSTI

Access

Read-Write

Data Type

<YANG type uint8>

Constraints

Valid range: 0 to 15

/stp/mstp/instances/instance/interfaces/interface/state

Section titled “/stp/mstp/instances/instance/interfaces/interface/state”

Path

/stp/mstp/instances/instance/interfaces/interface/state

Node Type

container

Description

Operational state data for STP on each interface

Access

Read-Only

/stp/mstp/instances/instance/interfaces/interface/state/role

Section titled “/stp/mstp/instances/instance/interfaces/interface/state/role”

Path

/stp/mstp/instances/instance/interfaces/interface/state/role

Node Type

leaf

Description

The current role of the bridge port

Access

Read-Only

Data Type

<YANG type stp-port-role-enumeration>

Constraints

Enumeration with options:

  • Root
  • Designated
  • Alternate
  • Backup
  • Master
  • Disabled

/stp/mstp/instances/instance/interfaces/interface/state/port-state

Section titled “/stp/mstp/instances/instance/interfaces/interface/state/port-state”

Path

/stp/mstp/instances/instance/interfaces/interface/state/port-state

Node Type

leaf

Description

The current state of the bridge port

Access

Read-Only

Data Type

<YANG type stp-port-state-enumeration>

Constraints

Enumeration with options:

  • Listening
  • Learning
  • Blocking
  • Discarding
  • Forwarding

Path

/stp/interfaces

Node Type

container

Description

Enclosing container for the list of interface references

Access

Read-Write

Path

/stp/interfaces/interface

Node Type

list

Description

List of interfaces on which MSTP is enable

Access

Read-Write

Path

/stp/interfaces/interface/name

Node Type

leaf

Description

Interface name

Access

Read-Write

Data Type

<YANG type union>

Path

/stp/interfaces/interface/bpdu-filter

Node Type

leaf

Description

Configure mstp interface bpdu filter

Access

Read-Write

Data Type

<YANG type boolean>

Constraints

Valid in [true, false]

Path

/stp/interfaces/interface/bpdu-guard

Node Type

leaf

Description

Configure mstp interface bpdu guard

Access

Read-Write

Data Type

<YANG type boolean>

Constraints

Valid in [true, false]