mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
addons: vrf: fix incorrect check when checking for running vs configured slaves
change 'or' to 'and'. Its valid for one of them to be null. This was causing vrf enslavement errors during bootup. This was a recent regression. Closes: CM-9757 Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
This commit is contained in:
@ -240,7 +240,7 @@ class vrf(moduleBase):
|
||||
def _add_vrf_slaves(self, ifaceobj):
|
||||
running_slaves = self.ipcmd.link_get_lowers(ifaceobj.name)
|
||||
config_slaves = ifaceobj.lowerifaces
|
||||
if not config_slaves or not running_slaves:
|
||||
if not config_slaves and not running_slaves:
|
||||
return
|
||||
add_slaves = set(config_slaves).difference(set(running_slaves))
|
||||
del_slaves = set(running_slaves).difference(set(config_slaves))
|
||||
|
Reference in New Issue
Block a user