1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

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.
This commit is contained in:
Scott Emery
2016-02-08 12:47:08 -08:00
parent e7cd7b3bf1
commit 969aac98f7

View File

@ -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], {})