The stp pw-port cost command sets the default path cost for a PW interface.
The undo stp pw-port cost command restores the default path cost for a PW interface.
By default, no default path cost is specified for a PW interface.
Usage Scenario
In VRP V8, the default rate of a PW interface is 4294967295 bit/s, and the calculated path cost varies according to the calculation method. However, in VRP V5, the default path cost of a PW interface is 1. Therefore, the path cost changes after a device is upgraded from VRP V5 to VRP V8. You can run this command to set the path cost in VRP V8 to be the same as that in VRP V5.
Configuration Impact
If the path cost of an interface changes, the spanning tree where the interface resides is recalculated.
Precautions
You are advised to run this command in VRP V5-to-VRP V8 upgrade scenarios.