@@ -264,18 +264,24 @@ class Device(NMDbusInterface):
264264
265265 def SpecificDevice (self ):
266266 return {
267+ NM_DEVICE_TYPE_ADSL : Adsl ,
268+ NM_DEVICE_TYPE_BOND : Bond ,
269+ NM_DEVICE_TYPE_BRIDGE : Bridge ,
270+ NM_DEVICE_TYPE_BT : Bluetooth ,
267271 NM_DEVICE_TYPE_ETHERNET : Wired ,
268- NM_DEVICE_TYPE_WIFI : Wireless ,
272+ NM_DEVICE_TYPE_GENERIC : Generic ,
273+ NM_DEVICE_TYPE_INFINIBAND : Infiniband ,
274+ NM_DEVICE_TYPE_IP_TUNNEL : IPTunnel ,
275+ NM_DEVICE_TYPE_MACVLAN : Macvlan ,
269276 NM_DEVICE_TYPE_MODEM : Modem ,
270- NM_DEVICE_TYPE_BT : Bluetooth ,
271277 NM_DEVICE_TYPE_OLPC_MESH : OlpcMesh ,
272- NM_DEVICE_TYPE_WIMAX : Wimax ,
273- NM_DEVICE_TYPE_INFINIBAND : Infiniband ,
274- NM_DEVICE_TYPE_BOND : Bond ,
278+ NM_DEVICE_TYPE_TEAM : Team ,
279+ NM_DEVICE_TYPE_TUN : Tun ,
280+ NM_DEVICE_TYPE_VETH : Veth ,
275281 NM_DEVICE_TYPE_VLAN : Vlan ,
276- NM_DEVICE_TYPE_ADSL : Adsl ,
277- NM_DEVICE_TYPE_BRIDGE : Bridge ,
278- NM_DEVICE_TYPE_GENERIC : Generic
282+ NM_DEVICE_TYPE_VXLAN : Vxlan ,
283+ NM_DEVICE_TYPE_WIFI : Wireless ,
284+ NM_DEVICE_TYPE_WIMAX : Wimax ,
279285 }[self .DeviceType ](self .object_path )
280286
281287 def postprocess (self , name , val ):
@@ -295,42 +301,60 @@ def postprocess(self, name, val):
295301 return fixups .strength_to_python (val )
296302 return val
297303
298- class Wired (NMDbusInterface ):
299- interface_name = 'org.freedesktop.NetworkManager.Device.Wired'
300-
301- class Wireless (NMDbusInterface ):
302- interface_name = 'org.freedesktop.NetworkManager.Device.Wireless'
303-
304- class Modem (NMDbusInterface ):
305- interface_name = 'org.freedesktop.NetworkManager.Device.Modem'
304+ class Adsl (NMDbusInterface ):
305+ interface_name = 'org.freedesktop.NetworkManager.Device.adsl'
306306
307307class Bluetooth (NMDbusInterface ):
308308 interface_name = 'org.freedesktop.NetworkManager.Device.Bluetooth'
309309
310- class OlpcMesh (NMDbusInterface ):
311- interface_name = 'org.freedesktop.NetworkManager.Device.OlpcMesh '
310+ class Bond (NMDbusInterface ):
311+ interface_name = 'org.freedesktop.NetworkManager.Device.Bond '
312312
313- class Wimax (NMDbusInterface ):
314- interface_name = 'org.freedesktop.NetworkManager.Device.Wimax'
313+ class Bridge (NMDbusInterface ):
314+ interface_name = 'org.freedesktop.NetworkManager.Device.Bridge'
315+
316+ class Generic (NMDbusInterface ):
317+ interface_name = 'org.freedesktop.NetworkManager.Device.Generic'
315318
316319class Infiniband (NMDbusInterface ):
317320 interface_name = 'org.freedesktop.NetworkManager.Device.Infiniband'
318321
319- class Bond (NMDbusInterface ):
320- interface_name = 'org.freedesktop.NetworkManager.Device.Bond '
322+ class IPTunnel (NMDbusInterface ):
323+ interface_name = 'org.freedesktop.NetworkManager.Device.Infiniband '
321324
322- class Bridge (NMDbusInterface ):
323- interface_name = 'org.freedesktop.NetworkManager.Device.Bridge'
325+ class Macvlan (NMDbusInterface ):
326+ interface_name = 'org.freedesktop.NetworkManager.Device.Generic'
327+
328+ class Modem (NMDbusInterface ):
329+ interface_name = 'org.freedesktop.NetworkManager.Device.Modem'
330+
331+ class OlpcMesh (NMDbusInterface ):
332+ interface_name = 'org.freedesktop.NetworkManager.Device.OlpcMesh'
333+
334+ class Team (NMDbusInterface ):
335+ interface_name = 'org.freedesktop.NetworkManager.Device.Generic'
336+
337+ class Tun (NMDbusInterface ):
338+ interface_name = 'org.freedesktop.NetworkManager.Device.Generic'
339+
340+ class Veth (NMDbusInterface ):
341+ interface_name = 'org.freedesktop.NetworkManager.Device.Generic'
324342
325343class Vlan (NMDbusInterface ):
326344 interface_name = 'org.freedesktop.NetworkManager.Device.Vlan'
327345
328- class Adsl (NMDbusInterface ):
329- interface_name = 'org.freedesktop.NetworkManager.Device.adsl'
330-
331- class Generic (NMDbusInterface ):
346+ class Vxlan (NMDbusInterface ):
332347 interface_name = 'org.freedesktop.NetworkManager.Device.Generic'
333348
349+ class Wimax (NMDbusInterface ):
350+ interface_name = 'org.freedesktop.NetworkManager.Device.Wimax'
351+
352+ class Wired (NMDbusInterface ):
353+ interface_name = 'org.freedesktop.NetworkManager.Device.Wired'
354+
355+ class Wireless (NMDbusInterface ):
356+ interface_name = 'org.freedesktop.NetworkManager.Device.Wireless'
357+
334358class NSP (NMDbusInterface ):
335359 interface_name = 'org.freedesktop.NetworkManager.Wimax.NSP'
336360
@@ -513,6 +537,11 @@ def route_to_dbus(route,family):
513537NM_DEVICE_TYPE_BRIDGE = 13
514538NM_DEVICE_TYPE_GENERIC = 14
515539NM_DEVICE_TYPE_TEAM = 15
540+ NM_DEVICE_TYPE_TUN = 16
541+ NM_DEVICE_TYPE_IP_TUNNEL = 17
542+ NM_DEVICE_TYPE_MACVLAN = 18
543+ NM_DEVICE_TYPE_VXLAN = 19
544+ NM_DEVICE_TYPE_VETH = 20
516545NM_DEVICE_CAP_NONE = 0
517546NM_DEVICE_CAP_NM_SUPPORTED = 1
518547NM_DEVICE_CAP_CARRIER_DETECT = 2
@@ -529,6 +558,7 @@ def route_to_dbus(route,family):
529558NM_WIFI_DEVICE_CAP_FREQ_VALID = 256
530559NM_WIFI_DEVICE_CAP_FREQ_2GHZ = 512
531560NM_WIFI_DEVICE_CAP_FREQ_5GHZ = 1024
561+ NM_WIFI_DEVICE_CAP_IBSS_RSN = 2048
532562NM_802_11_AP_FLAGS_NONE = 0
533563NM_802_11_AP_FLAGS_PRIVACY = 1
534564NM_802_11_AP_SEC_NONE = 0
0 commit comments