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):
Mon, Sep 12, 2011 at 05:01:45PM CEST, jtluka@redhat.com wrote:
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
applied. Thanks Jan!
lnst-developers@lists.fedorahosted.org