commit cc4e88a7d81d7ece9b8c265a05e3081037f4ffd1 Author: Ondrej Lichtner olichtne@redhat.com Date: Wed Feb 19 11:51:32 2014 +0100
NetConfigDevice: cleanup unused functions
This commit removes the functions NetConfigDeviceType and NetConfigDeviceAllCleanup that are no longer used.
Signed-off-by: Ondrej Lichtner olichtne@redhat.com Signed-off-by: Jiri Pirko jiri@resnulli.us
lnst/Slave/NetConfigDevice.py | 19 ------------------- 1 files changed, 0 insertions(+), 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()
lnst-developers@lists.fedorahosted.org