seveas / python-networkmanager

Easy communication with NetworkManager
http://packages.python.org/python-networkmanager/
Other
166 stars 90 forks source link

Another Fix for #68 #76 - Add new devices type #81

Closed Sliim closed 3 years ago

Sliim commented 4 years ago

According to the NetworkManager documentation: https://developer.gnome.org/NetworkManager/stable/nm-dbus-types.html#NMDeviceType

There is 4 new device type:

NM_DEVICE_TYPE_WPAN      = 27 - a IEEE 802.15.4 (WPAN) MAC Layer Device
NM_DEVICE_TYPE_6LOWPAN   = 28 - 6LoWPAN interface
NM_DEVICE_TYPE_WIREGUARD = 29 - a WireGuard interface
NM_DEVICE_TYPE_WIFI_P2P  = 30 - an 802.11 Wi-Fi P2P device (Since: 1.16)

This changes add contants and classes for these devices and add them in the device_class dict.

Fix #68 #76 See also #80

jnavila commented 3 years ago

@seveas Can you merge this PR? This is much needed!

seveas commented 3 years ago

Cherry-picked as c4a5913da45a2ce427c141f4e9df57199f34083e after regenerating the constants. Thank you, and sorry for the delay.