43
43
class NMState :
44
44
'''Global state
45
45
46
- As per https://developer.gnome.org/NetworkManager/unstable/spec .html#type-NM_STATE
46
+ As per https://developer.gnome.org/NetworkManager/unstable/nm-dbus-types .html#NMState
47
47
'''
48
48
NM_STATE_UNKNOWN = 0
49
49
NM_STATE_ASLEEP = 10
@@ -58,7 +58,7 @@ class NMState:
58
58
class NMConnectivityState :
59
59
'''Connectvity state
60
60
61
- As per https://developer.gnome.org/NetworkManager/unstable/spec .html#type-NM_CONNECTIVITY
61
+ As per https://developer.gnome.org/NetworkManager/unstable/nm-dbus-types .html#NMConnectivityState
62
62
'''
63
63
NM_CONNECTIVITY_UNKNOWN = 0
64
64
NM_CONNECTIVITY_NONE = 1
@@ -70,7 +70,7 @@ class NMConnectivityState:
70
70
class NMActiveConnectionState :
71
71
'''Active connection state
72
72
73
- As per https://developer.gnome.org/NetworkManager/unstable/spec .html#type-NM_ACTIVE_CONNECTION_STATE
73
+ As per https://developer.gnome.org/NetworkManager/unstable/nm-dbus-types .html#NMActiveConnectionState
74
74
'''
75
75
NM_ACTIVE_CONNECTION_STATE_UNKNOWN = 0
76
76
NM_ACTIVE_CONNECTION_STATE_ACTIVATING = 1
@@ -82,7 +82,7 @@ class NMActiveConnectionState:
82
82
class InfrastructureMode :
83
83
'''Infrastructure mode
84
84
85
- As per https://developer.gnome.org/NetworkManager/unstable/spec .html#type-NM_802_11_MODE
85
+ As per https://developer.gnome.org/NetworkManager/unstable/nm-dbus-types .html#NM80211Mode
86
86
'''
87
87
NM_802_11_MODE_UNKNOWN = 0
88
88
NM_802_11_MODE_ADHOC = 1
@@ -100,7 +100,7 @@ class InfrastructureMode:
100
100
class DeviceState :
101
101
'''Device states
102
102
103
- As per https://developer.gnome.org/NetworkManager/unstable/spec .html#type-NM_DEVICE_STATE
103
+ As per https://developer.gnome.org/NetworkManager/unstable/nm-dbus-types .html#NMDeviceState
104
104
'''
105
105
UNKNOWN = 0
106
106
UNMANAGED = 10
@@ -120,7 +120,7 @@ class DeviceState:
120
120
class NM80211ApSecurityFlags :
121
121
'''Security flags
122
122
123
- As per https://developer.gnome.org/NetworkManager/unstable/spec .html#type-NM_802_11_AP_SEC
123
+ As per https://developer.gnome.org/NetworkManager/unstable/nm-dbus-types .html#NM80211ApSecurityFlags
124
124
'''
125
125
NM_802_11_AP_SEC_NONE = 0x00000000
126
126
NM_802_11_AP_SEC_PAIR_WEP40 = 0x00000001
@@ -145,7 +145,7 @@ class NM80211ApSecurityFlags:
145
145
class NM80211ApFlags :
146
146
'''Device flags
147
147
148
- As per https://developer.gnome.org/NetworkManager/unstable/spec .html#type-NM_802_11_AP_FLAGS
148
+ As per https://developer.gnome.org/NetworkManager/unstable/nm-dbus-types .html#NM80211ApFlags
149
149
'''
150
150
NM_802_11_AP_FLAGS_NONE = 0x00000000
151
151
NM_802_11_AP_FLAGS_PRIVACY = 0x00000001
@@ -305,7 +305,7 @@ def AddEthernetDevice(self, device_name, iface_name, state):
305
305
state. You can use the predefined DeviceState values (e. g.
306
306
DeviceState.ACTIVATED) or supply a numeric value. For valid state values
307
307
please visit
308
- http ://projects .gnome.org/NetworkManager/developers/api/09/spec .html#type-NM_DEVICE_STATE
308
+ https ://developer .gnome.org/NetworkManager/unstable/nm-dbus-types .html#NMDeviceState
309
309
310
310
Please note that this does not set any global properties.
311
311
@@ -355,7 +355,7 @@ def AddWiFiDevice(self, device_name, iface_name, state):
355
355
state. You can use the predefined DeviceState values (e. g.
356
356
DeviceState.ACTIVATED) or supply a numeric value. For valid state values,
357
357
please visit
358
- http ://projects .gnome.org/NetworkManager/developers/api/09/spec .html#type-NM_DEVICE_STATE
358
+ https ://developer .gnome.org/NetworkManager/unstable/nm-dbus-types .html#NMDeviceState
359
359
360
360
Please note that this does not set any global properties.
361
361
@@ -417,7 +417,7 @@ def AddAccessPoint(self, dev_path, ap_name, ssid, hw_address,
417
417
You have to specify WiFi Device path, Access Point object name,
418
418
ssid, hw_address, mode, frequency, rate, strength and security.
419
419
For valid access point property values, please visit
420
- http ://projects .gnome.org/NetworkManager/developers/api/09/spec.html# org.freedesktop.NetworkManager.AccessPoint
420
+ https ://developer .gnome.org/NetworkManager/unstable/gdbus- org.freedesktop.NetworkManager.AccessPoint.html
421
421
422
422
Please note that this does not set any global properties.
423
423
@@ -705,8 +705,7 @@ def SettingsAddConnection(self, connection_settings):
705
705
'''Add a connection.
706
706
707
707
connection_settings is a String String Variant Map Map. See
708
- https://developer.gnome.org/NetworkManager/0.9/spec.html
709
- #type-String_String_Variant_Map_Map
708
+ https://developer.gnome.org/NetworkManager/0.9/spec.html #type-String_String_Variant_Map_Map
710
709
711
710
If you omit uuid, this method adds one for you.
712
711
'''
@@ -786,8 +785,7 @@ def ConnectionUpdate(self, settings):
786
785
'''Update settings on a connection.
787
786
788
787
settings is a String String Variant Map Map. See
789
- https://developer.gnome.org/NetworkManager/0.9/spec.html
790
- #type-String_String_Variant_Map_Map
788
+ https://developer.gnome.org/NetworkManager/0.9/spec.html#type-String_String_Variant_Map_Map
791
789
'''
792
790
connection_path = self .connection_path
793
791
0 commit comments