1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

addons: bond: set protodown off on unslaved evpn-mh bond slave

Signed-off-by: Julien Fortin <jfortin@nvidia.com>
This commit is contained in:
Julien Fortin
2022-03-29 20:08:04 +02:00
parent 6a61093d73
commit 97789789f0

View File

@ -421,6 +421,8 @@ class bond(Addon, moduleBase):
self.netlink.link_set_protodown_off(s)
except Exception as e:
self.logger.error('%s: %s' % (ifaceobj.name, str(e)))
elif ifaceobj.link_privflags & ifaceLinkPrivFlags.ES_BOND:
self.netlink.link_set_protodown_off(s)
# ip link set $slave nomaster will set the slave admin down
# if the slave has an auto stanza, we should keep it admin up