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

Moved warning to info level

Ticket: CM-4622
Reviewed By:
Testing Done: Tested ifup/ifdown on a bridge

If the file is not present, we will just log it.
This commit is contained in:
Roopa Prabhu
2014-12-31 23:47:18 -08:00
parent 00f6105d9f
commit a8f0880820

View File

@@ -282,7 +282,7 @@ class bridge(moduleBase):
self.write_file('/proc/sys/net/ipv6/conf/%s' %p +
'/disable_ipv6', enable)
except Exception, e:
self.logger.warn(str(e))
self.logger.info(str(e))
pass
def _add_ports(self, ifaceobj):
@@ -326,7 +326,7 @@ class bridge(moduleBase):
pass
# enable ipv6 for ports that were removed
self._ports_enable_disable_ipv6(removedbridgeports, '1')
self._ports_enable_disable_ipv6(removedbridgeports, '0')
if err:
self.log_error('bridge configuration failed (missing ports)')
@@ -844,7 +844,7 @@ class bridge(moduleBase):
if not running_ports:
return
# disable ipv6 for ports that were added to bridge
self._ports_enable_disable_ipv6(running_ports, '0')
self._ports_enable_disable_ipv6(running_ports, '1')
self._apply_bridge_port_settings_all(ifaceobj,
ifaceobj_getfunc=ifaceobj_getfunc)
except Exception, e:
@@ -867,12 +867,10 @@ class bridge(moduleBase):
ports = self.brctlcmd.get_bridge_ports(ifaceobj.name)
self.brctlcmd.delete_bridge(ifaceobj.name)
if ports:
for p in ports:
proc_file = ('/proc/sys/net/ipv6/conf/%s' %p +
'/disable_ipv6')
self.write_file(proc_file, '0')
self._ports_enable_disable_ipv6(ports, '0')
if ifaceobj.link_type != ifaceLinkType.LINK_NA:
rtnetlink_api.rtnl_api.link_set(p, "down")
map(lambda p: rtnetlink_api.rtnl_api.link_set(p,
"down"), ports)
except Exception, e:
self.log_error(str(e))