summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2008-08-28 19:03:28 -1000
committerDavid Cantrell <dcantrell@redhat.com>2008-08-28 19:03:28 -1000
commit9371ff803ab10ea09be7b8fea6e697fdd56972c7 (patch)
treeadaadd4fe0b2a695d0965ebe0835ecc2b84afc57 /isys
parentc44052c94d0bb46db55b0c3337e34c0d59b661e5 (diff)
downloadanaconda-9371ff803ab10ea09be7b8fea6e697fdd56972c7.tar.gz
anaconda-9371ff803ab10ea09be7b8fea6e697fdd56972c7.tar.xz
anaconda-9371ff803ab10ea09be7b8fea6e697fdd56972c7.zip
Define the NM_STATE_* constants in isys.py
The NM_STATE_* constants are possible values for the State property of NetworkManager.
Diffstat (limited to 'isys')
-rwxr-xr-xisys/isys.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/isys/isys.py b/isys/isys.py
index 01217482d..5f2a7f22c 100755
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -52,6 +52,12 @@ NM_ACTIVE_CONNECTION_IFACE = "org.freedesktop.NetworkManager.Connection.Active"
NM_CONNECTION_IFACE = "org.freedesktop.NetworkManagerSettings.Connection"
NM_DEVICE_IFACE = "org.freedesktop.NetworkManager.Device"
+NM_STATE_UNKNOWN = 0
+NM_STATE_ASLEEP = 1
+NM_STATE_CONNECTING = 2
+NM_STATE_CONNECTED = 3
+NM_STATE_DISCONNECTED = 4
+
mountCount = {}
raidCount = {}