From: Ondrej Lichtner <olichtne(a)redhat.com>
Similar to the previous patch, this makes sure that the method
_is_name_used checks the most up-to-date state of interface names.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Slave/InterfaceManager.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/lnst/Slave/InterfaceManager.py b/lnst/Slave/InterfaceManager.py
index 8a82bfe..dc3b366 100644
--- a/lnst/Slave/InterfaceManager.py
+++ b/lnst/Slave/InterfaceManager.py
@@ -263,6 +263,7 @@ class InterfaceManager(object):
self.handle_netlink_msgs(msgs)
def _is_name_used(self, name):
+ self.rescan_devices()
for device in self._devices.itervalues():
if name == device.get_name():
return True
--
2.8.2