commit 69eaa1b369eb18399037d06f1dc17cdb989f42a3
Author: Ondrej Lichtner <olichtne(a)redhat.com>
Date: Fri Jul 26 12:59:44 2013 +0200
NetTestSlave: add cleanup on slave finish
When killed slaves were only cleaning runing processes. Now slaves also
deconfigure any configured interfaces.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
lnst/Slave/NetTestSlave.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/lnst/Slave/NetTestSlave.py b/lnst/Slave/NetTestSlave.py
index 182bb41..af9ab90 100644
--- a/lnst/Slave/NetTestSlave.py
+++ b/lnst/Slave/NetTestSlave.py
@@ -449,7 +449,11 @@ class NetTestSlave:
for msg in msgs:
self._process_msg(msg[1])
+ logging.info("Cleaning up leftover commands.")
self._cmd_context.cleanup()
+ logging.info("Cleaning up configured interfaces.")
+ self._netconfig.deconfigure_all()
+ self._netconfig.cleanup()
def _process_msg(self, msg):
if msg["type"] == "command":
Show replies by date