From: Ondrej Lichtner <olichtne(a)redhat.com>
This commit removes the functions NetConfigDeviceType and
NetConfigDeviceAllCleanup that are no longer used.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Slave/NetConfigDevice.py | 19 -------------------
1 file changed, 19 deletions(-)
diff --git a/lnst/Slave/NetConfigDevice.py b/lnst/Slave/NetConfigDevice.py
index 997f22d..ee93ec8 100644
--- a/lnst/Slave/NetConfigDevice.py
+++ b/lnst/Slave/NetConfigDevice.py
@@ -311,22 +311,3 @@ def NetConfigDevice(dev_config, if_manager):
return nm_type_class_mapping[dev_config["type"]](dev_config,
if_manager)
else:
return type_class_mapping[dev_config["type"]](dev_config, if_manager)
-
-def NetConfigDeviceType(netdev, config):
- '''
- Class dispatcher for classmethods
- '''
- if is_nm_managed(netdev, config):
- return nm_type_class_mapping[netdev["type"]]
- else:
- return type_class_mapping[netdev["type"]]
-
-def NetConfigDeviceAllCleanup():
- logging.debug("Performing interface type cleanup.")
- if check_process_running("NetworkManager") and \
- lnst_config.get_option("environment", "use_nm"):
- for dev_type in nm_type_class_mapping:
- nm_type_class_mapping[dev_type].type_cleanup()
- else:
- for dev_type in type_class_mapping:
- type_class_mapping[dev_type].type_cleanup()
--
1.8.5.3
Show replies by date