fix bug in LAG

This commit is contained in:
Solvik Blum 2019-08-08 17:56:55 +02:00
commit 98643ee4ac
No known key found for this signature in database
GPG key ID: CC12B3DC262B6C47

View file

@ -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