From 969aac98f7f1e4b089277fbbe32c6fddcbdd34fa Mon Sep 17 00:00:00 2001 From: Scott Emery Date: Mon, 8 Feb 2016 12:47:08 -0800 Subject: [PATCH] ifupdown2: After loading bonding driver, continue to create bond Ticket: CM-9182 Reviewed By: Trivial Testing Done: ifup'd bond when bonding module was not yet loaded. The bond support in ifupdown2 would check to see if the bonding module is loaded when creating a bond. If it was not it would load the driver and return. The correct operation is to load the driver and then continue to create the bond. --- ifupdownaddons/bondutil.py | 1 - 1 file changed, 1 deletion(-) diff --git a/ifupdownaddons/bondutil.py b/ifupdownaddons/bondutil.py index 21f1c95..25e4f3d 100644 --- a/ifupdownaddons/bondutil.py +++ b/ifupdownaddons/bondutil.py @@ -397,7 +397,6 @@ class bondutil(utilsBase): if not os.path.exists(sysfs_bonding_masters): self.logger.debug('loading bonding driver') self.load_bonding_module() - return True self.write_file(sysfs_bonding_masters, '+' + bondname) self._cache_update([bondname], {})