mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
Ticket: CM-11773 Reviewed By: Roopa, Nikhil G Testing Done: smoke + hand testings : $ cat /etc/network/interfaces auto br2 iface br2 bridge-vlan-aware yes bridge-vids 100 bridge-pvid 1 bridge-ports swp1 swp4 swp5 bridge-stp on $ ifreload -a -v [...] info: netlink: set link swp1 up info: netlink: set link swp4 up info: netlink: set link swp5 up info: br2: applying mstp configuration specific to ports info: br2: processing mstp config for port swp1 info: executing /sbin/mstpctl showportdetail br2 json info: executing /sbin/mstpctl settreeportprio br2 swp1 0 128 info: br2: processing mstp config for port swp4 info: executing /sbin/mstpctl settreeportprio br2 swp4 0 128 info: br2: processing mstp config for port swp5 info: executing /sbin/mstpctl settreeportprio br2 swp5 0 128 info: netlink: set link br2 up [...] $ /sbin/mstpctl settreeportprio br2 swpX 0 128 is executed for every port. ifupdown2 tries to set this attr to 128 (the default value). This is a problem at scale. We shouldn't try to set this value if the running value is already 128. With the attached patch: $ ifreload -a [...] info: netlink: set link swp1 up info: netlink: set link swp4 up info: netlink: set link swp5 up info: executing /sbin/mstpctl showportdetail br2 json info: br2: applying mstp configuration specific to ports info: br2: processing mstp config for port swp1 info: br2: processing mstp config for port swp4 info: br2: processing mstp config for port swp5 info: netlink: set link br2 up [...] $ Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
9.7 KiB
9.7 KiB