mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
addons: bond: catch exception and log.info on modprobe failure
Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
This commit is contained in:
@@ -203,7 +203,10 @@ class bond(moduleBase):
|
||||
self.bondcmd = None
|
||||
|
||||
if not os.path.exists('/sys/class/net/bonding_masters'):
|
||||
utils.exec_command('modprobe -q bonding')
|
||||
try:
|
||||
utils.exec_command('modprobe -q bonding')
|
||||
except Exception as e:
|
||||
self.logger.info("bond: error while loading bonding module: %s" % str(e))
|
||||
|
||||
@staticmethod
|
||||
def get_bond_slaves(ifaceobj):
|
||||
|
||||
Reference in New Issue
Block a user