[PATCH 02/17] Remove unused networking stuff from isys

Radek Vykydal rvykydal at redhat.com
Fri Feb 8 14:04:18 UTC 2013


---
 pyanaconda/isys/__init__.py | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/pyanaconda/isys/__init__.py b/pyanaconda/isys/__init__.py
index 149936e..bf5a293 100755
--- a/pyanaconda/isys/__init__.py
+++ b/pyanaconda/isys/__init__.py
@@ -50,7 +50,6 @@ NM_MANAGER_PATH = "/org/freedesktop/NetworkManager"
 NM_SETTINGS_PATH = "/org/freedesktop/NetworkManager/Settings"
 NM_MANAGER_IFACE = "org.freedesktop.NetworkManager"
 NM_ACTIVE_CONNECTION_IFACE = "org.freedesktop.NetworkManager.Connection.Active"
-NM_CONNECTION_IFACE = "org.freedesktop.NetworkManager.Settings.Connection"
 NM_DEVICE_IFACE = "org.freedesktop.NetworkManager.Device"
 NM_DEVICE_WIRED_IFACE = "org.freedesktop.NetworkManager.Device.Wired"
 NM_IP4CONFIG_IFACE = "org.freedesktop.NetworkManager.IP4Config"
@@ -113,13 +112,6 @@ def sync ():
 def isIsoImage(file):
     return _isys.isisoimage(file)
 
-# Return number of network devices
-def getNetworkDeviceCount():
-    bus = dbus.SystemBus()
-    nm = bus.get_object(NM_SERVICE, NM_MANAGER_PATH)
-    devlist = nm.get_dbus_method("GetDevices")()
-    return len(devlist)
-
 # Get a D-Bus interface for the specified device's (e.g., eth0) properties.
 # If dev=None, return a hash of the form 'hash[dev] = props_iface' that
 # contains all device properties for all interfaces that NetworkManager knows
-- 
1.7.11.7



More information about the anaconda-patches mailing list