Only signal bondethernet diff if mode/lb are actually set in the config

This commit is contained in:
Pim van Pelt
2022-04-09 22:08:32 +00:00
parent be36cc0ede
commit 656f2ce883

View File

@ -255,10 +255,10 @@ class Reconciler():
vpp_bond = self.vpp.cache['bondethernets'][vpp_iface.sw_if_index]
mode = bondethernet.mode_to_int(bondethernet.get_mode(self.cfg, config_ifname))
if mode != vpp_bond.mode:
if mode != -1 and mode != vpp_bond.mode:
return True
lb = bondethernet.lb_to_int(bondethernet.get_lb(self.cfg, config_ifname))
if lb != vpp_bond.lb:
if lb != -1 and lb != vpp_bond.lb:
return True
return False