.. _dellemc.enterprise_sonic.sonic_stp_module:
**********************************
dellemc.enterprise_sonic.sonic_stp
**********************************
**Manage STP configuration on SONiC**
Version added: 2.3.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module provides configuration management of STP for devices running SONiC
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
dictionary
|
|
Specifies STP configurations
mstp, pvst and rapid_pvst are mutually exclusive.
|
|
global
dictionary
|
|
Global STP configuration
|
|
|
bpdu_filter
boolean
|
|
Enables edge port BPDU filter
|
|
|
bridge_priority
integer
|
|
The manageable component of the bridge identifier
Value must be a multiple of 4096 in the range of 0-61440
|
|
|
disabled_vlans
list
/ elements=string
|
|
List of disabled STP VLANs. The value of a list item can be a single VLAN ID or a range of VLAN IDs
separated by '-' or '..'; for example 70-100 or 70..100.
|
|
|
enabled_protocol
string
|
Choices:
- mst
- pvst
- rapid_pvst
|
Specifies the type of STP enabled on the device
|
|
|
fwd_delay
integer
|
|
Delay in seconds used by STP bridges to transition root and designated ports to forwarding
Range 4-30
|
|
|
hello_time
integer
|
|
Interval in seconds between periodic transmissions of configuration messages by designated ports
Range 1-10
|
|
|
loop_guard
boolean
|
|
The loop guard default setting for the bridge
|
|
|
max_age
integer
|
|
Maximum age in seconds of the information transmitted by the bridge when it is the root bridge
Range 6-40
|
|
|
portfast
boolean
|
|
Enables PortFast globally on all access ports
Configurable for pvst protocol
|
|
|
root_guard_timeout
integer
|
|
Specifies root guard recovery timeout in seconds before the port is moved back to forwarding state
Range 5-600
|
|
interfaces
list
/ elements=dictionary
|
|
Interfaces STP configuration
|
|
|
bpdu_filter
boolean
|
|
Enables edge port BPDU filter
|
|
|
bpdu_guard
boolean
|
|
Enable edge port BPDU guard
|
|
|
cost
integer
|
|
The port's contribution, when it is the root port, to the root path cost for the bridge
Range 1-200000000
|
|
|
edge_port
boolean
|
|
Configure interface as an STP edge port
|
|
|
guard
string
|
|
Enables root guard or loop guard
|
|
|
intf_name
string
/ required
|
|
Name of interface
|
|
|
link_type
string
|
Choices:
- point-to-point
- shared
|
Specifies the interface's link type
|
|
|
port_priority
integer
|
|
The manageable component of the port identifier
Range 0-240
|
|
|
portfast
boolean
|
|
Enable/Disable portfast on specified interface
Configurable for pvst protocol
|
|
|
shutdown
boolean
|
|
Port to be shutdown when it receives a BPDU
|
|
|
stp_enable
boolean
|
|
Enables STP on the interface
|
|
|
uplink_fast
boolean
|
|
Enables uplink fast
|
|
mstp
dictionary
|
|
Multi STP configuration
|
|
|
fwd_delay
integer
|
|
Delay in seconds used by STP bridges to transition root and designated ports to forwarding
Range 4-30
|
|
|
hello_time
integer
|
|
Interval in seconds between periodic transmissions of configuration messages by designated ports
Range 1-10
|
|
|
max_age
integer
|
|
Maximum age in seconds of the information transmitted by the bridge when it is the root bridge
Range 6-40
|
|
|
max_hop
integer
|
|
Number of bridges in an MST region that a BPDU can traverse before it is discarded
Range 1-40
|
|
|
mst_instances
list
/ elements=dictionary
|
|
Configuration for MST instances
|
|
|
|
bridge_priority
integer
|
|
The manageable component of the bridge identifier
Value must be a multiple of 4096 in the range of 0-61440
|
|
|
|
interfaces
list
/ elements=dictionary
|
|
List of STP enabled interfaces
|
|
|
|
|
cost
integer
|
|
The port's contribution, when it is the root port, to the root path cost for the bridge
Range 1-200000000
|
|
|
|
|
intf_name
string
/ required
|
|
Reference to the STP interface
|
|
|
|
|
port_priority
integer
|
|
The manageable component of the port identifier, range 0-240
|
|
|
|
mst_id
integer
/ required
|
|
Value used to identify MST instance, range 0-4094
|
|
|
|
vlans
list
/ elements=string
|
|
List of VLANs mapped to the MST instance. The value of a list item can be a single VLAN ID or a range of VLAN IDs
separated by '-' or '..'; for example 70-100 or 70..100.
|
|
|
mst_name
string
|
|
Name of the MST configuration identifier
|
|
|
revision
integer
|
|
Revision level of the MST configuration identifier, range 0-65535
|
|
pvst
list
/ elements=dictionary
|
|
Per VLAN STP configuration
|
|
|
bridge_priority
integer
|
|
The manageable component of the bridge identifier
Value must be a multiple of 4096 in the range of 0-61440
|
|
|
fwd_delay
integer
|
|
Delay in seconds used by STP bridges to transition root and designated ports to forwarding
Range 4-30
|
|
|
hello_time
integer
|
|
Interval in seconds between periodic transmissions of configuration messages by designated ports
Range 1-10
|
|
|
interfaces
list
/ elements=dictionary
|
|
List of STP enabled interfaces
|
|
|
|
cost
integer
|
|
The port's contribution, when it is the root port, to the root path cost for the bridge
Range 1-200000000
|
|
|
|
intf_name
string
/ required
|
|
Reference to the STP interface
|
|
|
|
port_priority
integer
|
|
The manageable component of the port identifier, range 0-240
|
|
|
max_age
integer
|
|
Maximum age in seconds of the information transmitted by the bridge when it is the root bridge
Range 6-40
|
|
|
vlan_id
integer
/ required
|
|
VLAN identifier, range 1-4094
|
|
rapid_pvst
list
/ elements=dictionary
|
|
Rapid per VLAN STP configuration
|
|
|
bridge_priority
integer
|
|
The manageable component of the bridge identifier
Value must be a multiple of 4096 in the range of 0-61440
|
|
|
fwd_delay
integer
|
|
Delay in seconds used by STP bridges to transition root and designated ports to forwarding
Range 4-30
|
|
|
hello_time
integer
|
|
Interval in seconds between periodic transmissions of configuration messages by designated ports
Range 1-10
|
|
|
interfaces
list
/ elements=dictionary
|
|
List of STP enabled interfaces
|
|
|
|
cost
integer
|
|
The port's contribution, when it is the root port, to the root path cost for the bridge
Range 1-200000000
|
|
|
|
intf_name
string
/ required
|
|
Reference to the STP interface
|
|
|
|
port_priority
integer
|
|
The manageable component of the port identifier, range 0-240
|
|
|
max_age
integer
|
|
Maximum age in seconds of the information transmitted by the bridge when it is the root bridge
Range 6-40
|
|
|
vlan_id
integer
/ required
|
|
VLAN identifier, range 1-4094
|
|
state
string
|
Choices:
merged ←
- deleted
- replaced
- overridden
|
The state of the configuration after module completion
|