From: Ido Schimmel <idosch(a)mellanox.com>
The set_addresses() function is used in different recipes to remove IP
addresses from interfaces, so that the generated routes will be deleted.
However, there's no good reason to flush IPv6 link-local addresses, as
it breaks neighbour discovery on the interface.
Signed-off-by: Ido Schimmel <idosch(a)mellanox.com>
Signed-off-by: Yuval Mintz <yuvalm(a)mellanox.com>
---
lnst/Slave/InterfaceManager.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lnst/Slave/InterfaceManager.py b/lnst/Slave/InterfaceManager.py
index e28682f..8f12e39 100644
--- a/lnst/Slave/InterfaceManager.py
+++ b/lnst/Slave/InterfaceManager.py
@@ -736,7 +736,7 @@ class Device(object):
def set_addresses(self, ips):
self._conf.set_addresses(ips)
- exec_cmd("ip addr flush %s" % self._name)
+ exec_cmd("ip addr flush %s scope global" % self._name)
for address in ips:
exec_cmd("ip addr add %s dev %s" % (address, self._name))
--
2.4.3