mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
addons: mstpctl: call disable_ipv6 only if mstpctl_ports is specified
Ticket: Reviewed By: trivial Testing Done: tested sanity and bridge bringup and reload bridge module already disables ipv6 on ports when bridge-ports is specified. Making this change because i saw redundant calls to disable_ipv6 on bridge ports by modules bridge and mstpctl when bridge-ports is specified. It is slowing down ifreload Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
This commit is contained in:
@@ -459,10 +459,10 @@ class mstpctl(moduleBase):
|
|||||||
pass
|
pass
|
||||||
finally:
|
finally:
|
||||||
self.ipcmd.batch_commit()
|
self.ipcmd.batch_commit()
|
||||||
running_ports = self.brctlcmd.get_bridge_ports(ifaceobj.name)
|
running_ports = self.brctlcmd.get_bridge_ports(ifaceobj.name)
|
||||||
if running_ports:
|
if running_ports:
|
||||||
# disable ipv6 for ports that were added to bridge
|
# disable ipv6 for ports that were added to bridge
|
||||||
self._ports_enable_disable_ipv6(running_ports, '1')
|
self._ports_enable_disable_ipv6(running_ports, '1')
|
||||||
|
|
||||||
stp = ifaceobj.get_attr_value_first('mstpctl-stp')
|
stp = ifaceobj.get_attr_value_first('mstpctl-stp')
|
||||||
if stp:
|
if stp:
|
||||||
|
Reference in New Issue
Block a user