fix bug in LAG
This commit is contained in:
parent
21c79e5b43
commit
98643ee4ac
1 changed files with 2 additions and 1 deletions
|
|
@ -294,7 +294,8 @@ class Network():
|
||||||
interface.type = type
|
interface.type = type
|
||||||
|
|
||||||
if interface.lag is not None:
|
if interface.lag is not None:
|
||||||
if nic['name'] not in self.nics[interface.lag.name]['bonding_slaves']:
|
local_lag_int = next(item for item in self.nics if item['name'] == interface.lag.name)
|
||||||
|
if nic['name'] not in local_lag_int['bonding_slaves']:
|
||||||
logging.info('Interface has no LAG, resetting')
|
logging.info('Interface has no LAG, resetting')
|
||||||
nic_update = True
|
nic_update = True
|
||||||
interface.lag = None
|
interface.lag = None
|
||||||
|
|
|
||||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue