From 656f2ce883e9e89fc844ec0d886c2ea7c6ddc79b Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Sat, 9 Apr 2022 22:08:32 +0000 Subject: [PATCH] Only signal bondethernet diff if mode/lb are actually set in the config --- vpp/reconciler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vpp/reconciler.py b/vpp/reconciler.py index 52e9271..d0bef87 100644 --- a/vpp/reconciler.py +++ b/vpp/reconciler.py @@ -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