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

Commit 46c1272

Browse files
committed
Add the vrf device class
1 parent c4a5913 commit 46c1272

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

NetworkManager.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,8 @@ def device_class(typ):
393393
NM_DEVICE_TYPE_WPAN: Wpan,
394394
NM_DEVICE_TYPE_6LOWPAN: SixLoWpan,
395395
NM_DEVICE_TYPE_WIREGUARD: WireGuard,
396-
NM_DEVICE_TYPE_WIFI_P2P: WifiP2p
396+
NM_DEVICE_TYPE_VRF: Vrf,
397+
NM_DEVICE_TYPE_WIFI_P2P: WifiP2p,
397398
}[typ]
398399

399400
class Adsl(Device): pass
@@ -424,6 +425,7 @@ class Wpan(Device): pass
424425
class SixLoWpan(Device): pass
425426
class WireGuard(Device): pass
426427
class WifiP2p(Device): pass
428+
class Vrf(Device): pass
427429

428430
class NSP(TransientNMDbusInterface):
429431
interface_names = ['org.freedesktop.NetworkManager.Wimax.NSP']

0 commit comments

Comments
 (0)