File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -396,7 +396,9 @@ def device_class(typ):
396396 NM_DEVICE_TYPE_WIREGUARD : WireGuard ,
397397 NM_DEVICE_TYPE_VRF : Vrf ,
398398 NM_DEVICE_TYPE_WIFI_P2P : WifiP2p ,
399- }[typ ]
399+ NM_DEVICE_TYPE_LOOPBACK : Loopback ,
400+ NM_DEVICE_TYPE_HSR : Hsr
401+ }.get (typ , Generic )
400402
401403class Adsl (Device ): pass
402404class Bluetooth (Device ): pass
@@ -427,7 +429,9 @@ class SixLoWpan(Device): pass
427429class WireGuard (Device ): pass
428430class WifiP2p (Device ): pass
429431class Vrf (Device ): pass
430-
432+ class Loopback (Device ): pass
433+ class Hsr (Device ): pass
434+
431435class NSP (TransientNMDbusInterface ):
432436 interface_names = ['org.freedesktop.NetworkManager.Wimax.NSP' ]
433437
@@ -821,6 +825,8 @@ def cert_to_dbus(cert):
821825NM_DEVICE_TYPE_WIREGUARD = 29
822826NM_DEVICE_TYPE_WIFI_P2P = 30
823827NM_DEVICE_TYPE_VRF = 31
828+ NM_DEVICE_TYPE_LOOPBACK = 32
829+ NM_DEVICE_TYPE_HSR = 33
824830NM_DEVICE_CAP_NONE = 0
825831NM_DEVICE_CAP_NM_SUPPORTED = 1
826832NM_DEVICE_CAP_CARRIER_DETECT = 2
You can’t perform that action at this time.
0 commit comments