Hi,
Currently, the ustp daemon does not pull the "priority" attribute from the bridge settings, and it does not allow setting this attribute manually via ubus. As a result, the default priority of 32768 (0x8000) is used, which can lead to issues with the correct selection of the root bridge in cases where other switches have a lower MAC address.
It would be great if support could be added for configuring the "priority" attribute through ubus to allow better control over this setting.
Additionally, it would be helpful if the "priority" attribute from the bridge settings in the main configuration (/etc/config/network) could be passed to ustp automatically, so it is consistent with the bridge configuration and can be properly applied when initializing the STP/RSTP/MSTP protocol.
cat /etc/config/network
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
option igmp_snooping '1'
option stp '1'
option priority '4096'
config bridge-vlan
option device 'br-lan'
option vlan '1'
list ports 'lan2:u*'
list ports 'lan3:u*'
list ports 'lan4:u*'
config bridge-vlan
option device 'br-lan'
option vlan '1000'
list ports 'lan4:t'
With ustp enabled
tcpdump -i lan4 -vv stp -etn
44:f7:70:2a:41:cc > 01:80:c2:00:00:00, 802.3, length 39: LLC, dsap STP (0x42) Individual,
ssap STP (0x42) Command, ctrl 0x03: STP 802.1w, Rapid STP, Flags [Proposal, Learn, Forward, Agreement],
bridge-id 8000.44:f7:70:2a:41:cc.8003, length 36
With ustp turned off
44:f7:70:2a:41:cc > 01:80:c2:00:00:00, 802.3, length 38: LLC, dsap STP (0x42) Individual,
ssap STP (0x42) Command, ctrl 0x03: STP 802.1d, Config,
Flags [none], bridge-id 1000.44:f7:70:2a:41:cc.8003, length 35
brctl show
bridge name bridge id STP enabled interfaces
br-lan 1000.44f7702a41cc 2 phy1-ap0
lan4
lan2
lan3
phy0-ap0
Hi,
Currently, the ustp daemon does not pull the "priority" attribute from the bridge settings, and it does not allow setting this attribute manually via ubus. As a result, the default priority of 32768 (0x8000) is used, which can lead to issues with the correct selection of the root bridge in cases where other switches have a lower MAC address.
It would be great if support could be added for configuring the "priority" attribute through ubus to allow better control over this setting.
Additionally, it would be helpful if the "priority" attribute from the bridge settings in the main configuration (/etc/config/network) could be passed to ustp automatically, so it is consistent with the bridge configuration and can be properly applied when initializing the STP/RSTP/MSTP protocol.
With ustp enabled
With ustp turned off