commit 68cc48b9bcbb883548e459c5c94c0480c7e91b7e
Author: Jan Tluka <jtluka(a)redhat.com>
Date: Mon Jan 27 10:09:16 2014 +0100
Don't remove any modules on device cleanup
Removal of some kernel modules can break the testing environment e.g.
the bridge driver in virtual setup where dom0 is acting as one of the
slaves. This patch removes the code that unloads netdevice's kernel module.
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
lnst/Slave/NetConfigDevice.py | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/lnst/Slave/NetConfigDevice.py b/lnst/Slave/NetConfigDevice.py
index 53e89b2..0c71fc7 100644
--- a/lnst/Slave/NetConfigDevice.py
+++ b/lnst/Slave/NetConfigDevice.py
@@ -72,9 +72,6 @@ class NetConfigDeviceGeneric:
def type_cleanup(self):
if self._cleanupcmd:
exec_cmd(self._cleanupcmd, die_on_err=False)
- if self._modulename:
- kmod_in_use(self._modulename, 300)
- exec_cmd("modprobe -q -r %s" % self._modulename, die_on_err=False)
class NetConfigDeviceEth(NetConfigDeviceGeneric):
def configure(self):