From 81348c326631e11df56373628e8d56c17216ad45 Mon Sep 17 00:00:00 2001 From: Julien Fortin Date: Wed, 3 May 2023 16:37:51 +0200 Subject: [PATCH] addons: bond: ignore exception raised during bond-slave speed check Signed-off-by: Julien Fortin --- ifupdown2/addons/bond.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ifupdown2/addons/bond.py b/ifupdown2/addons/bond.py index d3dab14..5a47b06 100644 --- a/ifupdown2/addons/bond.py +++ b/ifupdown2/addons/bond.py @@ -431,9 +431,12 @@ class bond(Addon, moduleBase): raise_error=False) continue - # making sure the slave-to-be has the right speed - if not self.valid_slave_speed(ifaceobj, runningslaves, slave): - continue + try: + # making sure the slave-to-be has the right speed + if not self.valid_slave_speed(ifaceobj, runningslaves, slave): + continue + except Exception as e: + self.logger.debug("%s: bond-slave (%s) speed validation failed: %s" % (ifaceobj.name, slave, str(e))) link_up = False if self.cache.link_is_up(slave):