commit 4df9e7ce771516b9c3133dc053cc27c1e60dcd95 Author: Jan Tluka jtluka@redhat.com Date: Mon Sep 12 17:01:45 2011 +0200
Switch setting link down and address removal
This patch fixes the ipv6 deconfiguration of devices.
Setting link down on ipv6 configured device results in flushing all ipv6 addresses assigned to the device.
Signed-off-by: Jan Tluka jtluka@redhat.com
NetConfig/NetConfigDevice.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) --- diff --git a/NetConfig/NetConfigDevice.py b/NetConfig/NetConfigDevice.py index b0366a1..e024db7 100644 --- a/NetConfig/NetConfigDevice.py +++ b/NetConfig/NetConfigDevice.py @@ -50,10 +50,10 @@ class NetConfigDeviceGeneric:
def down(self): netdev = self._netdev - exec_cmd("ip link set %s down" % netdev["name"]) if "addresses" in netdev: for address in netdev["addresses"]: exec_cmd("ip addr del %s dev %s" % (address, netdev["name"])) + exec_cmd("ip link set %s down" % netdev["name"])
@classmethod def type_init(self):