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

move link_set 'up' errors to debug

Ticket: CM-5199
Reviewed By: trivial
Testing Done: tested with interfaces file in the bug
This commit is contained in:
Roopa Prabhu
2015-02-25 13:45:37 -08:00
parent ba1b38298b
commit f28e72e544
2 changed files with 14 additions and 3 deletions

View File

@@ -235,7 +235,12 @@ class ifenslave(moduleBase):
link_up = True
self.ipcmd.link_set(slave, 'master', ifaceobj.name)
if link_up or ifaceobj.link_type != ifaceLinkType.LINK_NA:
rtnetlink_api.rtnl_api.link_set(slave, "up")
try:
rtnetlink_api.rtnl_api.link_set(slave, "up")
except Exception, e:
self.logger.debug('%s: %s: link set up (%s)'
%(ifaceobj.name, slave, str(e)))
pass
def _set_clag_enable(self, ifaceobj):
attrval = ifaceobj.get_attr_value_first('clag-id')