Network Manager objects
All objects avaiable in NetworkManager.
Only the implemented interfaces for each object are documented. Click on interface link to see which properties and methods does the interface implements.
Network Manager main object
- class sdbus_async.networkmanager.NetworkManager(bus=None)
Network Manager main object
Implements
NetworkManagerInterfaceAsyncService name
'org.freedesktop.NetworkManager'and object path/org/freedesktop/NetworkManageris predetermined.- Parameters:
bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
Network Manager settings
- class sdbus_async.networkmanager.NetworkManagerSettings(bus=None)
NetworkManager settings
Implements
NetworkManagerSettingsInterfaceAsync.Service name
'org.freedesktop.NetworkManager'and object path/org/freedesktop/NetworkManager/DnsManageris predetermined.- Parameters:
bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- async get_connections_by_id(connection_id)
Helper method to get a list of connection profile paths which use the given connection identifier.
- Parameters:
connection_id (str) – The connection identifier of the connections, e.g. “Wired connection 1”
- Returns:
List of connection profile paths using the given identifier.
- Return type:
List[str]
- async get_settings_by_uuid(connection_uuid)
Helper to get a nested settings dict of a connection profile by uuid.
- Parameters:
connection_uuid (str) – The connection uuid of the connection profile
- Returns:
Nested dictionary of all settings of the given connection profile
- Return type:
Dict[str, Dict[str, Tuple[str, Any]]]
- async delete_connection_by_uuid(connection_uuid)
Helper to delete a connection profile identified by the connection uuid.
- Parameters:
connection_uuid (str) – The connection uuid of the connection profile
- Return type:
None
- class sdbus_async.networkmanager.NetworkManagerDnsManager(bus=None)
NetworkManager DNS manager
Implements
NetworkManagerDnsManagerInterfaceAsync.Service name
'org.freedesktop.NetworkManager'and object path/org/freedesktop/NetworkManager/DnsManageris predetermined.- Parameters:
bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.NetworkManagerAgentManager(bus=None)
NetworkManager secrets manager
Implements
NetworkManagerSecretAgentManagerInterfaceAsync.Service name
'org.freedesktop.NetworkManager'and object path/org/freedesktop/NetworkManager/AgentManageris predetermined.- Parameters:
bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.NetworkConnectionSettings(settings_path, bus=None)
Setting of specific connection
Implements
NetworkManagerSettingsConnectionInterfaceAsync- Parameters:
settings_path (str) – D-Bus path to settings object. Usually obtained from
NetworkManagerDeviceInterfaceAsync.active_connectionbus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
Device objects
- class sdbus_async.networkmanager.NetworkDeviceGeneric(device_path, bus=None)
Generic device
Implements
NetworkManagerDeviceInterfaceAsync,NetworkManagerDeviceStatisticsInterfaceAsyncandNetworkManagerDeviceGenericInterfaceAsync- Parameters:
device_path (str) – D-Bus path to device object. Obtained from
NetworkManagerInterface.get_devices()orNetworkManagerInterface.get_device_by_ip_iface().bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.NetworkDeviceWired(device_path, bus=None)
Ethernet device
Implements
NetworkManagerDeviceInterfaceAsync,NetworkManagerDeviceStatisticsInterfaceAsyncandNetworkManagerDeviceWiredInterfaceAsync- Parameters:
device_path (str) – D-Bus path to device object. Obtained from
NetworkManagerInterface.get_devices()orNetworkManagerInterface.get_device_by_ip_iface().bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.NetworkDeviceWireless(device_path, bus=None)
WiFi device
Implements
NetworkManagerDeviceInterfaceAsync,NetworkManagerDeviceStatisticsInterfaceAsyncandNetworkManagerDeviceWirelessInterfaceAsync- Parameters:
device_path (str) – D-Bus path to device object. Obtained from
NetworkManagerInterface.get_devices()orNetworkManagerInterface.get_device_by_ip_iface().bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.NetworkDeviceBluetooth(device_path, bus=None)
Bluetooth device
Implements
NetworkManagerDeviceInterfaceAsync,NetworkManagerDeviceStatisticsInterfaceAsyncandNetworkManagerDeviceBluetoothInterfaceAsync- Parameters:
device_path (str) – D-Bus path to device object. Obtained from
NetworkManagerInterface.get_devices()orNetworkManagerInterface.get_device_by_ip_iface().bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.NetworkDeviceBond(device_path, bus=None)
Bond device
Implements
NetworkManagerDeviceInterfaceAsync,NetworkManagerDeviceStatisticsInterfaceAsyncandNetworkManagerDeviceBondInterfaceAsync- Parameters:
device_path (str) – D-Bus path to device object. Obtained from
NetworkManagerInterface.get_devices()orNetworkManagerInterface.get_device_by_ip_iface().bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.NetworkDeviceBridge(device_path, bus=None)
Bridge device
Implements
NetworkManagerDeviceInterfaceAsync,NetworkManagerDeviceStatisticsInterfaceAsyncandNetworkManagerDeviceBridgeInterfaceAsync- Parameters:
device_path (str) – D-Bus path to device object. Obtained from
NetworkManagerInterface.get_devices()orNetworkManagerInterface.get_device_by_ip_iface().bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.NetworkDeviceIpTunnel(device_path, bus=None)
Generic device
Implements
NetworkManagerDeviceInterfaceAsync,NetworkManagerDeviceStatisticsInterfaceAsyncandNetworkManagerDeviceIPTunnelInterfaceAsync- Parameters:
device_path (str) – D-Bus path to device object. Obtained from
NetworkManagerInterface.get_devices()orNetworkManagerInterface.get_device_by_ip_iface().bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.NetworkDeviceMacsec(device_path, bus=None)
Macsec device
Implements
NetworkManagerDeviceInterfaceAsync,NetworkManagerDeviceStatisticsInterfaceAsyncandNetworkManagerDeviceMacsecInterfaceAsync- Parameters:
device_path (str) – D-Bus path to device object. Obtained from
NetworkManagerInterface.get_devices()orNetworkManagerInterface.get_device_by_ip_iface().bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.NetworkDeviceMacvlan(device_path, bus=None)
Macvlan device
Implements
NetworkManagerDeviceInterfaceAsync,NetworkManagerDeviceStatisticsInterfaceAsyncandNetworkManagerDeviceMacvlanInterfaceAsync- Parameters:
device_path (str) – D-Bus path to device object. Obtained from
NetworkManagerInterface.get_devices()orNetworkManagerInterface.get_device_by_ip_iface().bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.NetworkDeviceModem(device_path, bus=None)
Generic device
Implements
NetworkManagerDeviceInterfaceAsync,NetworkManagerDeviceStatisticsInterfaceAsyncandNetworkManagerDeviceModemInterfaceAsync- Parameters:
device_path (str) – D-Bus path to device object. Obtained from
NetworkManagerInterface.get_devices()orNetworkManagerInterface.get_device_by_ip_iface().bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.NetworkDeviceOlpcMesh(device_path, bus=None)
OLPC wireless mesh device
Implements
NetworkManagerDeviceInterfaceAsync,NetworkManagerDeviceStatisticsInterfaceAsyncandNetworkManagerDeviceOlpcMeshInterfaceAsync- Parameters:
device_path (str) – D-Bus path to device object. Obtained from
NetworkManagerInterface.get_devices()orNetworkManagerInterface.get_device_by_ip_iface().bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.NetworkDeviceOpenVSwitchBridge(device_path, bus=None)
Open vSwitch bridge device
Implements
NetworkManagerDeviceInterfaceAsync,NetworkManagerDeviceStatisticsInterfaceAsyncandNetworkManagerDeviceOvsBridgeInterfaceAsync- Parameters:
device_path (str) – D-Bus path to device object. Obtained from
NetworkManagerInterface.get_devices()orNetworkManagerInterface.get_device_by_ip_iface().bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.NetworkDeviceOpenVSwitchPort(device_path, bus=None)
Open vSwitch port device
Implements
NetworkManagerDeviceInterfaceAsync,NetworkManagerDeviceStatisticsInterfaceAsyncandNetworkManagerDeviceOvsPortInterfaceAsync- Parameters:
device_path (str) – D-Bus path to device object. Obtained from
NetworkManagerInterface.get_devices()orNetworkManagerInterface.get_device_by_ip_iface().bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.NetworkDeviceTeam(device_path, bus=None)
Team device (special Bond device for NetworkManager)
Implements
NetworkManagerDeviceInterfaceAsync,NetworkManagerDeviceStatisticsInterfaceAsyncandNetworkManagerDeviceTeamInterfaceAsync- Parameters:
device_path (str) – D-Bus path to device object. Obtained from
NetworkManagerInterface.get_devices()orNetworkManagerInterface.get_device_by_ip_iface().bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.NetworkDeviceTun(device_path, bus=None)
TUN device
Implements
NetworkManagerDeviceInterfaceAsync,NetworkManagerDeviceStatisticsInterfaceAsyncandNetworkManagerDeviceTunInterfaceAsync- Parameters:
device_path (str) – D-Bus path to device object. Obtained from
NetworkManagerInterface.get_devices()orNetworkManagerInterface.get_device_by_ip_iface().bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.NetworkDeviceVeth(device_path, bus=None)
Virtual Ethernet device
Implements
NetworkManagerDeviceInterfaceAsync,NetworkManagerDeviceStatisticsInterfaceAsyncandNetworkManagerDeviceVethInterfaceAsync- Parameters:
device_path (str) – D-Bus path to device object. Obtained from
NetworkManagerInterface.get_devices()orNetworkManagerInterface.get_device_by_ip_iface().bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.NetworkDeviceVlan(device_path, bus=None)
VLAN device
Implements
NetworkManagerDeviceInterfaceAsync,NetworkManagerDeviceStatisticsInterfaceAsyncandNetworkManagerDeviceVlanInterfaceAsync- Parameters:
device_path (str) – D-Bus path to device object. Obtained from
NetworkManagerInterface.get_devices()orNetworkManagerInterface.get_device_by_ip_iface().bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.NetworkDeviceVrf(device_path, bus=None)
VRF (virtual routing) device
Implements
NetworkManagerDeviceInterfaceAsync,NetworkManagerDeviceStatisticsInterfaceAsyncandNetworkManagerDeviceVrfInterfaceAsync- Parameters:
device_path (str) – D-Bus path to device object. Obtained from
NetworkManagerInterface.get_devices()orNetworkManagerInterface.get_device_by_ip_iface().bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.NetworkDeviceVxlan(device_path, bus=None)
VXLAN device
Implements
NetworkManagerDeviceInterfaceAsync,NetworkManagerDeviceStatisticsInterfaceAsyncandNetworkManagerDeviceVxlanInterfaceAsync- Parameters:
device_path (str) – D-Bus path to device object. Obtained from
NetworkManagerInterface.get_devices()orNetworkManagerInterface.get_device_by_ip_iface().bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.NetworkDeviceWifiP2P(device_path, bus=None)
Wifi Peer-to-Peer (P2P) device
Implements
NetworkManagerDeviceInterfaceAsync,NetworkManagerDeviceStatisticsInterfaceAsyncandNetworkManagerDeviceWifiP2PInterfaceAsync- Parameters:
device_path (str) – D-Bus path to device object. Obtained from
NetworkManagerInterface.get_devices()orNetworkManagerInterface.get_device_by_ip_iface().bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.NetworkDeviceWireGuard(device_path, bus=None)
Generic device
Implements
NetworkManagerDeviceInterfaceAsync,NetworkManagerDeviceStatisticsInterfaceAsyncandNetworkManagerDeviceWireGuardInterfaceAsync- Parameters:
device_path (str) – D-Bus path to device object. Obtained from
NetworkManagerInterface.get_devices()orNetworkManagerInterface.get_device_by_ip_iface().bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.NetworkDevicePPP(device_path, bus=None)
PPP device
Implements
NetworkManagerDeviceInterfaceAsync,NetworkManagerDeviceStatisticsInterfaceAsyncandNetworkManagerPPPInterfaceAsync- Parameters:
device_path (str) – D-Bus path to device object. Obtained from
NetworkManagerInterface.get_devices()orNetworkManagerInterface.get_device_by_ip_iface().bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.NetworkDeviceLoopback(device_path, bus=None)
Loopback device
Implements
NetworkManagerDeviceInterfaceAsync,NetworkManagerDeviceStatisticsInterfaceAsyncandNetworkManagerLoopbackInterfaceAsync- Parameters:
device_path (str) – D-Bus path to device object. Obtained from
NetworkManagerInterface.get_devices()orNetworkManagerInterface.get_device_by_ip_iface().bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
Connection configuration objects
- class sdbus_async.networkmanager.ActiveConnection(connection_path, bus=None)
Active connection object
Implements
NetworkManagerConnectionActiveInterfaceAsync- Parameters:
connection_path (str) – D-Bus path to connection object. Obtained from
NetworkManagerDeviceInterfaceAsync.active_connection().bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.ActiveVPNConnection(connection_path, bus=None)
Active VPN connection object
Implements
NetworkManagerConnectionActiveInterfaceAsyncandNetworkManagerVPNConnectionInterfaceAsync- Parameters:
connection_path (str) – D-Bus path to connection object. Obtained from
NetworkManagerDeviceInterfaceAsync.active_connection().bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.IPv4Config(ip4_path, bus=None)
IPv4 configuration interface
Implements
NetworkManagerIP4ConfigInterfaceAsync- Parameters:
ip4_path (str) – D-Bus path to IPv4 config object. Obtained from
NetworkManagerDeviceInterfaceAsync.ip4_config.bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.IPv6Config(ip6_path, bus=None)
IPv6 configuration interface
Implements
NetworkManagerIP6ConfigInterfaceAsync- Parameters:
ip6_path (str) – D-Bus path to IPv6 config object. Obtained from
NetworkManagerDeviceInterfaceAsync.ip4_config.bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.DHCPv4Config(dhcp4_path, bus=None)
DHCPv4 configuration interface
Implements
NetworkManagerDHCP4ConfigInterfaceAsync- Parameters:
dhcp4_path (str) – D-Bus path to DHCPv4 config object. Obtained from
NetworkManagerDeviceInterfaceAsync.dhcp4_config.bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.DHCPv6Config(dhcpv6_path, bus=None)
DHCPv6 configuration interface
Implements
NetworkManagerDHCP6ConfigInterfaceAsync- Parameters:
dhcpv6_path (str) – D-Bus path to DHCPv6 config object. Obtained from
NetworkManagerDeviceInterfaceAsync.dhcp6_config.bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
Other objects
- class sdbus_async.networkmanager.AccessPoint(point_path, bus=None)
Access Point (WiFi point) object
Implements
NetworkManagerAccessPointInterfaceAsync- Parameters:
point_path (str) – D-Bus path to access point object. Obtained from
NetworkManagerDeviceWirelessInterfaceAsync.access_points.bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.WiFiP2PPeer(peer_path, bus=None)
WiFi peer object
Implements
NetworkManagerWifiP2PPeerInterfaceAsync- Parameters:
peer_path (str) – D-Bus path to access point object. Obtained from
NetworkManagerDeviceWifiP2PInterfaceAsync.peers.bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.
- class sdbus_async.networkmanager.ConfigCheckpoint(checkpoint_path, bus=None)
Configuration checkpoint interface
Implements
NetworkManagerCheckpointInterfaceAsync- Parameters:
checkpoint_path (str) – D-Bus path to access point object. Obtained from
NetworkManagerDeviceWifiP2PInterfaceAsync.checkpoint_create.bus (Optional[SdBus]) – You probably want to set default bus to system bus or pass system bus directly.