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

Added a few more try-except clauses during bridge config to continue on

failures

Ticket: CM-4382
Reviewed By:
Testing Done: Tested with bridge port addition failure example in the
bug report
This commit is contained in:
Roopa Prabhu
2014-12-27 20:29:44 -08:00
parent 61c4d72447
commit f6a0fa151b
3 changed files with 75 additions and 35 deletions

View File

@@ -228,6 +228,8 @@ class ifenslave(moduleBase):
def _apply_slaves_lacp_bypass_prio(self, ifaceobj):
slaves = self.ifenslavecmd.get_slaves(ifaceobj.name)
if not slaves:
return
attrval = ifaceobj.get_attrs_value_first(['bond-lacp-bypass-priority',
'bond-lacp-fallback-priority'])
if attrval: