Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ash-vd/python-networkmanager
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: CoderBotOrg/python-networkmanager
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jun 22, 2024

  1. Update NetworkManager.py

    add LOOPBACK, HSR
    previ authored Jun 22, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    8b60393 View commit details
Showing with 8 additions and 2 deletions.
  1. +8 −2 NetworkManager.py
10 changes: 8 additions & 2 deletions NetworkManager.py
Original file line number Diff line number Diff line change
@@ -396,7 +396,9 @@ def device_class(typ):
NM_DEVICE_TYPE_WIREGUARD: WireGuard,
NM_DEVICE_TYPE_VRF: Vrf,
NM_DEVICE_TYPE_WIFI_P2P: WifiP2p,
}[typ]
NM_DEVICE_TYPE_LOOPBACK: Loopback,
NM_DEVICE_TYPE_HSR: Hsr
}.get(typ, Generic)

class Adsl(Device): pass
class Bluetooth(Device): pass
@@ -427,7 +429,9 @@ class SixLoWpan(Device): pass
class WireGuard(Device): pass
class WifiP2p(Device): pass
class Vrf(Device): pass

class Loopback(Device): pass
class Hsr(Device): pass

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

@@ -821,6 +825,8 @@ def cert_to_dbus(cert):
NM_DEVICE_TYPE_WIREGUARD = 29
NM_DEVICE_TYPE_WIFI_P2P = 30
NM_DEVICE_TYPE_VRF = 31
NM_DEVICE_TYPE_LOOPBACK = 32
NM_DEVICE_TYPE_HSR = 33
NM_DEVICE_CAP_NONE = 0
NM_DEVICE_CAP_NM_SUPPORTED = 1
NM_DEVICE_CAP_CARRIER_DETECT = 2