1
0
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:
Julien Fortin
2018-11-05 20:15:09 +01:00
parent 84ae193632
commit 0c4237d58d

View File

@@ -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):