From: Christos Sfakianakis <csfakian(a)redhat.com>
Have any master device(s) cleaned up before the cleanup of
the slave(s) is started. This helps preventing DeviceConfigError
thrown during the deconfiguration stage which would result in
device(s) not being cleaned up after the test. This has been notable
with VirtualOvsBridge* recipes.
Signed-off-by: Christos Sfakianakis <csfakian(a)redhat.com>
---
lnst/Devices/Device.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/lnst/Devices/Device.py b/lnst/Devices/Device.py
index d9aa023..b78b295 100644
--- a/lnst/Devices/Device.py
+++ b/lnst/Devices/Device.py
@@ -329,6 +329,7 @@ class Device(object):
values.
"""
if self.master:
+ self.master.cleanup()
self.master = None
self.down()
self.ip_flush()
--
2.17.1