summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadek Vykydal <rvykydal@redhat.com>2013-02-07 17:10:11 +0100
committerRadek Vykydal <rvykydal@redhat.com>2013-02-12 11:22:51 +0100
commit278a674cb754fa6f31283416b21a813d50a4cddf (patch)
tree1a5515984c08a4429098c7284e527b0f4588f751
parent357ff78ff4405c57398ba31edda44b847e7ada9f (diff)
downloadanaconda-278a674cb754fa6f31283416b21a813d50a4cddf.tar.gz
anaconda-278a674cb754fa6f31283416b21a813d50a4cddf.tar.xz
anaconda-278a674cb754fa6f31283416b21a813d50a4cddf.zip
Remove unused modules (dbus) and stuff from network.py
-rw-r--r--pyanaconda/network.py30
1 files changed, 0 insertions, 30 deletions
diff --git a/pyanaconda/network.py b/pyanaconda/network.py
index f44e4ea02..667edb720 100644
--- a/pyanaconda/network.py
+++ b/pyanaconda/network.py
@@ -28,10 +28,8 @@ import string
import shutil
import iutil
import socket
-import struct
import os
import time
-import dbus
import tempfile
import simpleconfig
import re
@@ -58,31 +56,6 @@ ifcfgLogFile = "/tmp/ifcfg.log"
CONNECTION_TIMEOUT = 45
DEFAULT_HOSTNAME = "localhost.localdomain"
-NM_SERVICE = "org.freedesktop.NetworkManager"
-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_DEVICE_IFACE = "org.freedesktop.NetworkManager.Device"
-NM_DEVICE_WIRED_IFACE = "org.freedesktop.NetworkManager.Device.Wired"
-NM_IP4CONFIG_IFACE = "org.freedesktop.NetworkManager.IP4Config"
-NM_IP6CONFIG_IFACE = "org.freedesktop.NetworkManager.IP6Config"
-NM_ACCESS_POINT_IFACE = "org.freedesktop.NetworkManager.AccessPoint"
-
-NM_STATE_UNKNOWN = 0
-NM_STATE_ASLEEP = 10
-NM_STATE_DISCONNECTED = 20
-NM_STATE_DISCONNECTING = 30
-NM_STATE_CONNECTING = 40
-NM_STATE_CONNECTED_LOCAL = 50
-NM_STATE_CONNECTED_SITE = 60
-NM_STATE_CONNECTED_GLOBAL = 70
-NM_DEVICE_STATE_ACTIVATED = 100
-NM_DEVICE_TYPE_WIFI = 2
-NM_DEVICE_TYPE_ETHERNET = 1
-
-DBUS_PROPS_IFACE = "org.freedesktop.DBus.Properties"
-
# part of a valid hostname between two periods (cannot start nor end with '-')
# for more info about '(?!-)' and '(?<!-)' see 're' module documentation
HOSTNAME_PART_RE = re.compile("(?!-)[A-Z\d-]{1,63}(?<!-)$", re.IGNORECASE)
@@ -314,9 +287,6 @@ class NetworkDevice(IfcfgFile):
return content
-def get_NM_object(path):
- return dbus.SystemBus().get_object(NM_SERVICE, path)
-
def dumpMissingDefaultIfcfgs():
"""
Dump missing default ifcfg file for wired devices.