mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
Cleanup clag enable references.
Ticket: CM-9078 Reviewed By: Trivial Testing Done: bond ifdown/ifup on s6000 This needs to be replaced with protodown of clag bond slaves pre-enslave (TBD; coming soon).
This commit is contained in:
@@ -262,11 +262,6 @@ class bond(moduleBase):
|
||||
[ self.bondcmd.remove_slave(ifaceobj.name, s)
|
||||
for s in runningslaves if s not in slaves ]
|
||||
|
||||
def _set_clag_enable(self, ifaceobj):
|
||||
attrval = ifaceobj.get_attr_value_first('clag-id')
|
||||
attrval = attrval if attrval else '0'
|
||||
self.bondcmd.set_clag_enable(ifaceobj.name, attrval)
|
||||
|
||||
def _apply_slaves_lacp_bypass_prio(self, ifaceobj):
|
||||
slaves = self.bondcmd.get_slaves(ifaceobj.name)
|
||||
if not slaves:
|
||||
@@ -306,8 +301,6 @@ class bond(moduleBase):
|
||||
if not self.ipcmd.link_exists(ifaceobj.name):
|
||||
self.bondcmd.create_bond(ifaceobj.name)
|
||||
self._apply_master_settings(ifaceobj)
|
||||
# clag_enable has to happen before the slaves are added to the bond
|
||||
self._set_clag_enable(ifaceobj)
|
||||
self._add_slaves(ifaceobj)
|
||||
self._apply_slaves_lacp_bypass_prio(ifaceobj)
|
||||
if ifaceobj.addr_method == 'manual':
|
||||
|
Reference in New Issue
Block a user