Skip to content
This repository was archived by the owner on Jan 27, 2023. It is now read-only.

Commit fa130e5

Browse files
committed
Add missing device types
1 parent ab5f7ae commit fa130e5

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

NetworkManager.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,11 @@ def device_class(typ):
389389
NM_DEVICE_TYPE_PPP: PPP,
390390
NM_DEVICE_TYPE_OVS_INTERFACE: OvsIf,
391391
NM_DEVICE_TYPE_OVS_PORT: OvsPort,
392-
NM_DEVICE_TYPE_OVS_BRIDGE: OvsBridge
392+
NM_DEVICE_TYPE_OVS_BRIDGE: OvsBridge,
393+
NM_DEVICE_TYPE_WPAN: Wpan,
394+
NM_DEVICE_TYPE_6LOWPAN: SixLoWpan,
395+
NM_DEVICE_TYPE_WIREGUARD: WireGuard,
396+
NM_DEVICE_TYPE_WIFI_P2P: WifiP2p
393397
}[typ]
394398

395399
class Adsl(Device): pass
@@ -416,6 +420,10 @@ class PPP(Device): pass
416420
class OvsIf(Device): pass
417421
class OvsPort(Device): pass
418422
class OvsBridge(Device): pass
423+
class Wpan(Device): pass
424+
class SixLoWpan(Device): pass
425+
class WireGuard(Device): pass
426+
class WifiP2p(Device): pass
419427

420428
class NSP(TransientNMDbusInterface):
421429
interface_names = ['org.freedesktop.NetworkManager.Wimax.NSP']
@@ -780,6 +788,10 @@ def cert_to_dbus(cert):
780788
NM_DEVICE_TYPE_OVS_INTERFACE = 24
781789
NM_DEVICE_TYPE_OVS_PORT = 25
782790
NM_DEVICE_TYPE_OVS_BRIDGE = 26
791+
NM_DEVICE_TYPE_WPAN = 27
792+
NM_DEVICE_TYPE_6LOWPAN = 28
793+
NM_DEVICE_TYPE_WIREGUARD = 29
794+
NM_DEVICE_TYPE_WIFI_P2P = 30
783795
NM_DEVICE_CAP_NONE = 0
784796
NM_DEVICE_CAP_NM_SUPPORTED = 1
785797
NM_DEVICE_CAP_CARRIER_DETECT = 2

0 commit comments

Comments
 (0)