diff options
author | Radek Vykydal <rvykydal@redhat.com> | 2010-11-02 16:14:35 +0100 |
---|---|---|
committer | Radek Vykydal <rvykydal@redhat.com> | 2010-11-03 10:46:37 +0100 |
commit | 09c2654b4de34a23cd9e13b9cbd7f39688455a20 (patch) | |
tree | 84bf97ccbf799ba5166ae73bb7d5a7bf7d014639 /pyanaconda/isys | |
parent | d3180ef38db7d4cc2615ebadedfbb59d9fe984cd (diff) | |
download | anaconda-09c2654b4de34a23cd9e13b9cbd7f39688455a20.tar.gz anaconda-09c2654b4de34a23cd9e13b9cbd7f39688455a20.tar.xz anaconda-09c2654b4de34a23cd9e13b9cbd7f39688455a20.zip |
Remove obsolete networking code.
Diffstat (limited to 'pyanaconda/isys')
-rwxr-xr-x | pyanaconda/isys/__init__.py | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/pyanaconda/isys/__init__.py b/pyanaconda/isys/__init__.py index f11d31e7a..7b4debc56 100755 --- a/pyanaconda/isys/__init__.py +++ b/pyanaconda/isys/__init__.py @@ -320,41 +320,6 @@ def getDeviceProperties(dev=None): else: return None -# Return true if method is currently 'dhcp' for the specified device. -def isDeviceDHCP(dev=None): - if dev is None: - return False - - bus = dbus.SystemBus() - nm = bus.get_object(NM_SERVICE, NM_MANAGER_PATH) - nm_props_iface = dbus.Interface(nm, DBUS_PROPS_IFACE) - active_connections = nm_props_iface.Get(NM_MANAGER_IFACE, "ActiveConnections") - - for path in active_connections: - active = bus.get_object(NM_SERVICE, path) - active_props_iface = dbus.Interface(active, DBUS_PROPS_IFACE) - - active_service_name = active_props_iface.Get(NM_ACTIVE_CONNECTION_IFACE, "ServiceName") - active_path = active_props_iface.Get(NM_ACTIVE_CONNECTION_IFACE, "Connection") - active_devices = active_props_iface.Get(NM_ACTIVE_CONNECTION_IFACE, "Devices") - - device = bus.get_object(NM_SERVICE, active_devices[0]) - device_props_iface = dbus.Interface(device, DBUS_PROPS_IFACE) - iface = device_props_iface.Get(NM_DEVICE_IFACE, "Interface") - - if iface != dev: - continue - - connection = bus.get_object(active_service_name, active_path) - connection_iface = dbus.Interface(connection, NM_CONNECTION_IFACE) - settings = connection_iface.GetSettings() - - ip4_setting = settings.get('ipv4') - if not ip4_setting or not ip4_setting['method'] or ip4_setting['method'] == 'auto': - return True - - return False - # Get the MAC address for a network device. def getMacAddress(dev): if dev == '' or dev is None: |