Configure BPDU protection on an edge port. This function prevents network flapping caused by attack packets.
cost
-
Set the path cost of the current port. The default instance is 0.
edged_port
-
Choices:
enable
disable
Set the current port as an edge port.
interface
-
Interface name. If the value is all, will apply configuration to all interfaces. if the value is a special name, only support input the full name.
loop_protection
-
Choices:
enable
disable
Enable loop protection on the current port.
root_protection
-
Choices:
enable
disable
Enable root protection on the current port.
state
-
Choices:
present ←
absent
Specify desired state of the resource.
stp_converge
-
Choices:
fast
normal
STP convergence mode. Fast means set STP aging mode to Fast. Normal means set STP aging mode to Normal.
stp_enable
-
Choices:
enable
disable
Enable or disable STP on a switch.
stp_mode
-
Choices:
stp
rstp
mstp
Set an operation mode for the current MSTP process. The mode can be STP, RSTP, or MSTP.
tc_protection
-
Choices:
enable
disable
Configure the TC BPDU protection function for an MSTP process.
tc_protection_interval
-
Set the time the MSTP device takes to handle the maximum number of TC BPDUs and immediately refresh forwarding entries. The value is an integer ranging from 1 to 600, in seconds.
tc_protection_threshold
-
Set the maximum number of TC BPDUs that the MSTP can handle. The value is an integer ranging from 1 to 255. The default value is 1 on the switch.