NETCONF Configuration Guide
YANG API Reference
stp
31 min
asternos model for multiple spanning tree protocol yang tree diagram yang tree diagram 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> resources resources resource list resource list path access /stp read write /stp/global read write /stp/global/enabled read write /stp/global/protocol read write /stp/stp read write /stp/stp/config read write /stp/stp/config/forward delay read write /stp/stp/config/hello time read write /stp/stp/config/max age read write /stp/stp/config/priority read write /stp/stp/interfaces read write /stp/stp/interfaces/interface read write /stp/stp/interfaces/interface/name read write /stp/stp/interfaces/interface/priority read write /stp/stp/interfaces/interface/state read only /stp/stp/interfaces/interface/state/role read only /stp/stp/interfaces/interface/state/port state read only /stp/rstp read write /stp/rstp/config read write /stp/rstp/config/forward delay read write /stp/rstp/config/hello time read write /stp/rstp/config/max age read write /stp/rstp/config/priority read write /stp/rstp/interfaces read write /stp/rstp/interfaces/interface read write /stp/rstp/interfaces/interface/name read write /stp/rstp/interfaces/interface/priority read write /stp/rstp/interfaces/interface/state read only /stp/rstp/interfaces/interface/state/role read only /stp/rstp/interfaces/interface/state/port state read only /stp/mstp read write /stp/mstp/config read write /stp/mstp/config/name read write /stp/mstp/config/forward delay read write /stp/mstp/config/hello time read write /stp/mstp/config/max age read write /stp/mstp/instances read write /stp/mstp/instances/instance read write /stp/mstp/instances/instance/id read write /stp/mstp/instances/instance/priority read write /stp/mstp/instances/instance/vlans read write /stp/mstp/instances/instance/interfaces read write /stp/mstp/instances/instance/interfaces/interface read write /stp/mstp/instances/instance/interfaces/interface/name read write /stp/mstp/instances/instance/interfaces/interface/priority read write /stp/mstp/instances/instance/interfaces/interface/state read only /stp/mstp/instances/instance/interfaces/interface/state/role read only /stp/mstp/instances/instance/interfaces/interface/state/port state read only /stp/interfaces read write /stp/interfaces/interface read write /stp/interfaces/interface/name read write /stp/interfaces/interface/bpdu filter read write /stp/interfaces/interface/bpdu guard read write detailed nodes detailed nodes /stp /stp path /stp node type container description top level grouping for multi spanning tree model access read write /stp/global /stp/global path /stp/global node type container description global configuration access read write /stp/global/enabled /stp/global/enabled 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] /stp/global/protocol /stp/global/protocol 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 /stp/stp /stp/stp path /stp/stp node type container description global configuration access read write constraints when condition /global/protocol = 'stp' /stp/stp/config /stp/stp/config path /stp/stp/config node type container description configuration data for stp access read write /stp/stp/config/forward delay /stp/stp/config/forward delay 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 /stp/stp/config/hello time /stp/stp/config/hello time 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 /stp/stp/config/max age /stp/stp/config/max age 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 /stp/stp/config/priority /stp/stp/config/priority 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 /stp/stp/interfaces /stp/stp/interfaces path /stp/stp/interfaces node type container access read write /stp/stp/interfaces/interface /stp/stp/interfaces/interface path /stp/stp/interfaces/interface node type list description list of mstp instance ports access read write /stp/stp/interfaces/interface/name /stp/stp/interfaces/interface/name path /stp/stp/interfaces/interface/name node type leaf description port name access read write data type \<yang type union> /stp/stp/interfaces/interface/priority /stp/stp/interfaces/interface/priority 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 /stp/stp/interfaces/interface/state /stp/stp/interfaces/interface/state path /stp/stp/interfaces/interface/state node type container description operational state data for stp on each interface access read only /stp/stp/interfaces/interface/state/role /stp/stp/interfaces/interface/state/role 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 /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 /stp/rstp /stp/rstp path /stp/rstp node type container description global configuration access read write constraints when condition /global/protocol = 'rstp' /stp/rstp/config /stp/rstp/config path /stp/rstp/config node type container description configuration data for rstp access read write /stp/rstp/config/forward delay /stp/rstp/config/forward delay 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 /stp/rstp/config/hello time /stp/rstp/config/hello time 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 /stp/rstp/config/max age /stp/rstp/config/max age 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 /stp/rstp/config/priority /stp/rstp/config/priority 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 /stp/rstp/interfaces /stp/rstp/interfaces path /stp/rstp/interfaces node type container access read write /stp/rstp/interfaces/interface /stp/rstp/interfaces/interface path /stp/rstp/interfaces/interface node type list description list of mstp instance ports access read write /stp/rstp/interfaces/interface/name /stp/rstp/interfaces/interface/name path /stp/rstp/interfaces/interface/name node type leaf description port name access read write data type \<yang type union> /stp/rstp/interfaces/interface/priority /stp/rstp/interfaces/interface/priority 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 /stp/rstp/interfaces/interface/state /stp/rstp/interfaces/interface/state path /stp/rstp/interfaces/interface/state node type container description operational state data for stp on each interface access read only /stp/rstp/interfaces/interface/state/role /stp/rstp/interfaces/interface/state/role 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 /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 /stp/mstp /stp/mstp path /stp/mstp node type container description global configuration access read write constraints when condition /global/protocol = 'mstp' /stp/mstp/config /stp/mstp/config path /stp/mstp/config node type container description configuration data for mstp access read write /stp/mstp/config/name /stp/mstp/config/name 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 /stp/mstp/config/forward delay /stp/mstp/config/forward delay 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 /stp/mstp/config/hello time /stp/mstp/config/hello time 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 /stp/mstp/config/max age /stp/mstp/config/max age 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 /stp/mstp/instances /stp/mstp/instances path /stp/mstp/instances node type container description configuration and operation data for mstp instances access read write /stp/mstp/instances/instance /stp/mstp/instances/instance path /stp/mstp/instances/instance node type list description list of mstp instances access read write /stp/mstp/instances/instance/id /stp/mstp/instances/instance/id 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 /stp/mstp/instances/instance/priority /stp/mstp/instances/instance/priority 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 /stp/mstp/instances/instance/vlans /stp/mstp/instances/instance/vlans 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 /stp/mstp/instances/instance/interfaces /stp/mstp/instances/instance/interfaces path /stp/mstp/instances/instance/interfaces node type container access read write /stp/mstp/instances/instance/interfaces/interface /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 /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 /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 /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 /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 /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 /stp/interfaces /stp/interfaces path /stp/interfaces node type container description enclosing container for the list of interface references access read write /stp/interfaces/interface /stp/interfaces/interface path /stp/interfaces/interface node type list description list of interfaces on which mstp is enable access read write /stp/interfaces/interface/name /stp/interfaces/interface/name path /stp/interfaces/interface/name node type leaf description interface name access read write data type \<yang type union> /stp/interfaces/interface/bpdu filter /stp/interfaces/interface/bpdu filter 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] /stp/interfaces/interface/bpdu guard /stp/interfaces/interface/bpdu guard 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]
