NetConfigDeviceAllCleanup would clean the system from netdevice modules
even if they had not been configured at all. This can break a setup with
virt guest running on a host system both acting as lnst slaves and using
bridge netdevice driver.
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
---
lnst/Slave/NetTestSlave.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/lnst/Slave/NetTestSlave.py b/lnst/Slave/NetTestSlave.py
index 75fa7ab..0f17839 100644
--- a/lnst/Slave/NetTestSlave.py
+++ b/lnst/Slave/NetTestSlave.py
@@ -31,7 +31,6 @@ from lnst.Common.ResourceCache import ResourceCache
from lnst.Common.NetTestCommand import NetTestCommandContext
from lnst.Common.NetTestCommand import CommandException, NetTestCommand
from lnst.Slave.NetConfig import NetConfig
-from lnst.Slave.NetConfigDevice import NetConfigDeviceAllCleanup
from lnst.Slave.NmConfigDevice import is_nm_managed_by_name
from lnst.Common.Utils import check_process_running
from lnst.Common.ConnectionHandler import recv_data, send_data
@@ -271,7 +270,6 @@ class SlaveMethods:
self._command_context.cleanup()
self._netconfig.deconfigure_all()
self._netconfig.cleanup()
- NetConfigDeviceAllCleanup()
self._cache.del_old_entries()
self.restore_system_config()
return True
--
1.8.1.4