File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -396,7 +396,9 @@ def device_class(typ):
396
396
NM_DEVICE_TYPE_WIREGUARD : WireGuard ,
397
397
NM_DEVICE_TYPE_VRF : Vrf ,
398
398
NM_DEVICE_TYPE_WIFI_P2P : WifiP2p ,
399
- }[typ ]
399
+ NM_DEVICE_TYPE_LOOPBACK : Loopback ,
400
+ NM_DEVICE_TYPE_HSR : Hsr
401
+ }.get (typ , Generic )
400
402
401
403
class Adsl (Device ): pass
402
404
class Bluetooth (Device ): pass
@@ -427,7 +429,9 @@ class SixLoWpan(Device): pass
427
429
class WireGuard (Device ): pass
428
430
class WifiP2p (Device ): pass
429
431
class Vrf (Device ): pass
430
-
432
+ class Loopback (Device ): pass
433
+ class Hsr (Device ): pass
434
+
431
435
class NSP (TransientNMDbusInterface ):
432
436
interface_names = ['org.freedesktop.NetworkManager.Wimax.NSP' ]
433
437
@@ -821,6 +825,8 @@ def cert_to_dbus(cert):
821
825
NM_DEVICE_TYPE_WIREGUARD = 29
822
826
NM_DEVICE_TYPE_WIFI_P2P = 30
823
827
NM_DEVICE_TYPE_VRF = 31
828
+ NM_DEVICE_TYPE_LOOPBACK = 32
829
+ NM_DEVICE_TYPE_HSR = 33
824
830
NM_DEVICE_CAP_NONE = 0
825
831
NM_DEVICE_CAP_NM_SUPPORTED = 1
826
832
NM_DEVICE_CAP_CARRIER_DETECT = 2
You can’t perform that action at this time.
0 commit comments