Blame docs/api/html/gdbus-org.freedesktop.NetworkManager.html

Packit 5756e2
Packit 5756e2
<html>
Packit 5756e2
<head>
Packit 5756e2
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Packit 5756e2
<title>org.freedesktop.NetworkManager: NetworkManager Reference Manual</title>
Packit 5756e2
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
Packit 5756e2
<link rel="home" href="index.html" title="NetworkManager Reference Manual">
Packit 5756e2
<link rel="up" href="ref-dbus-manager.html" title="The /org/freedesktop/NetworkManager object">
Packit 5756e2
<link rel="prev" href="ref-dbus-manager.html" title="The /org/freedesktop/NetworkManager object">
Packit 5756e2
<link rel="next" href="ref-dbus-agent-manager.html" title="The /org/freedesktop/NetworkManager/AgentManager object">
Packit Service a1bd4f
<meta name="generator" content="GTK-Doc V1.33.0 (XML mode)">
Packit 5756e2
<link rel="stylesheet" href="style.css" type="text/css">
Packit 5756e2
</head>
Packit 5756e2
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
Packit 5756e2
Packit 5756e2
Packit 5756e2
Top  | 
Packit 5756e2
                  Description  | 
Packit 5756e2
                  Properties  | 
Packit 5756e2
                  Signals
Packit 5756e2
Packit 5756e2
Home
Packit 5756e2
Up
Packit 5756e2
Prev
Packit 5756e2
Next
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

org.freedesktop.NetworkManager

Packit 5756e2

org.freedesktop.NetworkManager — Connection Manager

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Methods

Packit 5756e2
Packit 5756e2
Reload                          (IN  u         flags);
Packit 5756e2
GetDevices                      (OUT ao        devices);
Packit 5756e2
GetAllDevices                   (OUT ao        devices);
Packit 5756e2
GetDeviceByIpIface              (IN  s         iface,
Packit 5756e2
                                 OUT o         device);
Packit 5756e2
ActivateConnection              (IN  o         connection,
Packit 5756e2
                                 IN  o         device,
Packit 5756e2
                                 IN  o         specific_object,
Packit 5756e2
                                 OUT o         active_connection);
Packit 5756e2
AddAndActivateConnection        (IN  a{sa{sv}} connection,
Packit 5756e2
                                 IN  o         device,
Packit 5756e2
                                 IN  o         specific_object,
Packit 5756e2
                                 OUT o         path,
Packit 5756e2
                                 OUT o         active_connection);
Packit 5756e2
AddAndActivateConnection2       (IN  a{sa{sv}} connection,
Packit 5756e2
                                 IN  o         device,
Packit 5756e2
                                 IN  o         specific_object,
Packit 5756e2
                                 IN  a{sv}     options,
Packit 5756e2
                                 OUT o         path,
Packit 5756e2
                                 OUT o         active_connection,
Packit 5756e2
                                 OUT a{sv}     result);
Packit 5756e2
DeactivateConnection            (IN  o         active_connection);
Packit 5756e2
Sleep                           (IN  b         sleep);
Packit 5756e2
Enable                          (IN  b         enable);
Packit 5756e2
GetPermissions                  (OUT a{ss}     permissions);
Packit 5756e2
SetLogging                      (IN  s         level,
Packit 5756e2
                                 IN  s         domains);
Packit 5756e2
GetLogging                      (OUT s         level,
Packit 5756e2
                                 OUT s         domains);
Packit 5756e2
CheckConnectivity               (OUT u         connectivity);
Packit 5756e2
state                           (OUT u         state);
Packit 5756e2
CheckpointCreate                (IN  ao        devices,
Packit 5756e2
                                 IN  u         rollback_timeout,
Packit 5756e2
                                 IN  u         flags,
Packit 5756e2
                                 OUT o         checkpoint);
Packit 5756e2
CheckpointDestroy               (IN  o         checkpoint);
Packit 5756e2
CheckpointRollback              (IN  o         checkpoint,
Packit 5756e2
                                 OUT a{su}     result);
Packit 5756e2
CheckpointAdjustRollbackTimeout (IN  o         checkpoint,
Packit 5756e2
                                 IN  u         add_timeout);
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Signals

Packit 5756e2
Packit 5756e2
CheckPermissions  ();
Packit 5756e2
StateChanged      (u     state);
Packit 5756e2
PropertiesChanged (a{sv} properties);
Packit 5756e2
DeviceAdded       (o     device_path);
Packit 5756e2
DeviceRemoved     (o     device_path);
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Properties

Packit 5756e2
Packit 5756e2
Devices                     readable   ao
Packit 5756e2
AllDevices                  readable   ao
Packit 5756e2
Checkpoints                 readable   ao
Packit 5756e2
NetworkingEnabled           readable   b
Packit 5756e2
WirelessEnabled             readwrite  b
Packit 5756e2
WirelessHardwareEnabled     readable   b
Packit 5756e2
WwanEnabled                 readwrite  b
Packit 5756e2
WwanHardwareEnabled         readable   b
Packit 5756e2
WimaxEnabled                readwrite  b
Packit 5756e2
WimaxHardwareEnabled        readable   b
Packit 5756e2
ActiveConnections           readable   ao
Packit 5756e2
PrimaryConnection           readable   o
Packit 5756e2
PrimaryConnectionType       readable   s
Packit 5756e2
Metered                     readable   u
Packit 5756e2
ActivatingConnection        readable   o
Packit 5756e2
Startup                     readable   b
Packit 5756e2
Version                     readable   s
Packit 5756e2
Capabilities                readable   au
Packit 5756e2
State                       readable   u
Packit 5756e2
Connectivity                readable   u
Packit 5756e2
ConnectivityCheckAvailable  readable   b
Packit 5756e2
ConnectivityCheckEnabled    readwrite  b
Packit 5756e2
ConnectivityCheckUri        readable   s
Packit 5756e2
GlobalDnsConfiguration      readwrite  a{sv}
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Description

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2

Method Details

Packit 5756e2
Packit 5756e2

The Reload() method

Packit 5756e2
Packit 5756e2
Reload (IN  u flags);
Packit 5756e2
Packit 5756e2

Reload NetworkManager's configuration and perform certain updates, like flushing a cache or

Packit 5756e2
        rewriting external state to disk. This is similar to sending SIGHUP to NetworkManager but it
Packit 5756e2
        allows for more fine-grained control over what to reload (see flags). It also allows
Packit 5756e2
        non-root access via PolicyKit and contrary to signals it is synchronous.
Packit 5756e2

Packit 5756e2

No flags (0x00) means to reload everything that is supported which is identical to

Packit 5756e2
        sending a SIGHUP.
Packit 5756e2
        (0x01) means to reload the NetworkManager.conf configuration from disk. Note that this
Packit 5756e2
        does not include connections, which can be reloaded via Setting's ReloadConnections.
Packit 5756e2
        (0x02) means to update DNS configuration, which usually involves writing /etc/resolv.conf
Packit 5756e2
        anew.
Packit 5756e2
        (0x04) means to restart the DNS plugin. This is for example useful when using
Packit 5756e2
        dnsmasq plugin, which uses additional configuration in /etc/NetworkManager/dnsmasq.d.
Packit 5756e2
        If you edit those files, you can restart the DNS plugin. This action shortly interrupts
Packit 5756e2
        name resolution.
Packit 5756e2
        Note that flags may affect each other. For example, restarting the DNS plugin (0x04)
Packit 5756e2
        implicitly updates DNS too (0x02). Or when reloading the configuration (0x01), changes
Packit 5756e2
        to DNS setting also cause a DNS update (0x02). However, (0x01) does not involve restarting
Packit 5756e2
        the DNS plugin (0x04) or update resolv.conf (0x02), unless the DNS related configuration
Packit 5756e2
        changes in NetworkManager.conf.
Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

IN u flags:

Packit 5756e2

optional flags to specify which parts shall be reloaded.

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The GetDevices() method

Packit 5756e2
Packit 5756e2
GetDevices (OUT ao devices);
Packit 5756e2
Packit 5756e2

Get the list of realized network devices.

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

OUT ao devices:

Packit 5756e2

List of object paths of network devices known to the system. This list does not include device placeholders (see GetAllDevices()).

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The GetAllDevices() method

Packit 5756e2
Packit 5756e2
GetAllDevices (OUT ao devices);
Packit 5756e2
Packit 5756e2

Get the list of all network devices.

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

OUT ao devices:

Packit 5756e2

List of object paths of network devices and device placeholders (eg, devices that do not yet exist but which can be automatically created by NetworkManager if one of their AvailableConnections was activated).

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The GetDeviceByIpIface() method

Packit 5756e2
Packit 5756e2
GetDeviceByIpIface (IN  s iface,
Packit 5756e2
                    OUT o device);
Packit 5756e2
Packit 5756e2

Return the object path of the network device referenced by its IP

Packit 5756e2
        interface name. Note that some devices (usually modems) only have an IP
Packit 5756e2
        interface name when they are connected.
Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

IN s iface:

Packit 5756e2

Interface name of the device to find.

Packit 5756e2
Packit 5756e2
Packit 5756e2

OUT o device:

Packit 5756e2

Object path of the network device.

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The ActivateConnection() method

Packit 5756e2
Packit 5756e2
ActivateConnection (IN  o connection,
Packit 5756e2
                    IN  o device,
Packit 5756e2
                    IN  o specific_object,
Packit 5756e2
                    OUT o active_connection);
Packit 5756e2
Packit 5756e2

Activate a connection using the supplied device.

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

IN o connection:

Packit 5756e2

The connection to activate. If "/" is given, a valid device path must be given, and NetworkManager picks the best connection to activate for the given device. VPN connections must always pass a valid connection path.

Packit 5756e2
Packit 5756e2
Packit 5756e2

IN o device:

Packit 5756e2

The object path of device to be activated for physical connections. This parameter is ignored for VPN connections, because the specific_object (if provided) specifies the device to use.

Packit 5756e2
Packit 5756e2
Packit 5756e2

IN o specific_object:

Packit 5756e2

The path of a connection-type-specific object this activation should use. This parameter is currently ignored for wired and mobile broadband connections, and the value of "/" should be used (ie, no specific object). For Wi-Fi connections, pass the object path of a specific AP from the card's scan list, or "/" to pick an AP automatically. For VPN connections, pass the object path of an ActiveConnection object that should serve as the "base" connection (to which the VPN connections lifetime will be tied), or pass "/" and NM will automatically use the current default device.

Packit 5756e2
Packit 5756e2
Packit 5756e2

OUT o active_connection:

Packit 5756e2

The path of the active connection object representing this active connection.

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The AddAndActivateConnection() method

Packit 5756e2
Packit 5756e2
AddAndActivateConnection (IN  a{sa{sv}} connection,
Packit 5756e2
                          IN  o         device,
Packit 5756e2
                          IN  o         specific_object,
Packit 5756e2
                          OUT o         path,
Packit 5756e2
                          OUT o         active_connection);
Packit 5756e2
Packit 5756e2

Adds a new connection using the given details (if any) as a template

Packit 5756e2
        (automatically filling in missing settings with the capabilities of the
Packit 5756e2
        given device and specific object), then activate the new connection.
Packit 5756e2
        Cannot be used for VPN connections at this time.
Packit 5756e2

Packit 5756e2

See also AddAndActivateConnection2.

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

IN a{sa{sv}} connection:

Packit 5756e2

Connection settings and properties; if incomplete missing settings will be automatically completed using the given device and specific object.

Packit 5756e2
Packit 5756e2
Packit 5756e2

IN o device:

Packit 5756e2

The object path of device to be activated using the given connection.

Packit 5756e2
Packit 5756e2
Packit 5756e2

IN o specific_object:

Packit 5756e2

The path of a connection-type-specific object this activation should use. This parameter is currently ignored for wired and mobile broadband connections, and the value of "/" should be used (ie, no specific object). For Wi-Fi connections, pass the object path of a specific AP from the card's scan list, which will be used to complete the details of the newly added connection.

Packit 5756e2
Packit 5756e2
Packit 5756e2

OUT o path:

Packit 5756e2

Object path of the new connection that was just added.

Packit 5756e2
Packit 5756e2
Packit 5756e2

OUT o active_connection:

Packit 5756e2

The path of the active connection object representing this active connection.

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The AddAndActivateConnection2() method

Packit 5756e2
Packit 5756e2
AddAndActivateConnection2 (IN  a{sa{sv}} connection,
Packit 5756e2
                           IN  o         device,
Packit 5756e2
                           IN  o         specific_object,
Packit 5756e2
                           IN  a{sv}     options,
Packit 5756e2
                           OUT o         path,
Packit 5756e2
                           OUT o         active_connection,
Packit 5756e2
                           OUT a{sv}     result);
Packit 5756e2
Packit 5756e2

output arguments are supported.

Packit 5756e2

Packit 5756e2

Adds a new connection using the given details (if any) as a template

Packit 5756e2
        (automatically filling in missing settings with the capabilities of the
Packit 5756e2
        given device and specific object), then activate the new connection.
Packit 5756e2
        Cannot be used for VPN connections at this time.
Packit 5756e2

Packit 5756e2

This method extends AddAndActivateConnection to allow passing further

Packit 5756e2
        parameters. At this time the following options are supported:
Packit 5756e2

Packit 5756e2

* persist: A string value of either "disk" (default), "memory" or "volatile". If "memory" is passed, the connection will not be saved to disk. If "volatile" is passed, the connection will not be saved to disk and will be destroyed when disconnected.

Packit 5756e2
         * bind-activation: Bind the activation lifetime. Set to "dbus-name" to automatically disconnect when the requesting process disappears from the bus. The default of "none" means the connection is kept activated normally.
Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

IN a{sa{sv}} connection:

Packit 5756e2

Connection settings and properties; if incomplete missing settings will be automatically completed using the given device and specific object.

Packit 5756e2
Packit 5756e2
Packit 5756e2

IN o device:

Packit 5756e2

The object path of device to be activated using the given connection.

Packit 5756e2
Packit 5756e2
Packit 5756e2

IN o specific_object:

Packit 5756e2

The path of a connection-type-specific object this activation should use. This parameter is currently ignored for wired and mobile broadband connections, and the value of "/" should be used (ie, no specific object). For Wi-Fi connections, pass the object path of a specific AP from the card's scan list, which will be used to complete the details of the newly added connection.

Packit 5756e2
Packit 5756e2
Packit 5756e2

IN a{sv} options:

Packit 5756e2

Further options for the method call.

Packit 5756e2
Packit 5756e2
Packit 5756e2

OUT o path:

Packit 5756e2

Object path of the new connection that was just added.

Packit 5756e2
Packit 5756e2
Packit 5756e2

OUT o active_connection:

Packit 5756e2

The path of the active connection object representing this active connection.

Packit 5756e2
Packit 5756e2
Packit 5756e2

OUT a{sv} result:

Packit 5756e2

a dictionary of additional output arguments for future extension. Currently, not additional

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The DeactivateConnection() method

Packit 5756e2
Packit 5756e2
DeactivateConnection (IN  o active_connection);
Packit 5756e2
Packit 5756e2

Deactivate an active connection.

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

IN o active_connection:

Packit 5756e2

The currently active connection to deactivate.

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The Sleep() method

Packit 5756e2
Packit 5756e2
Sleep (IN  b sleep);
Packit 5756e2
Packit 5756e2

Control the NetworkManager daemon's sleep state. When asleep, all

Packit 5756e2
        interfaces that it manages are deactivated. When awake, devices are
Packit 5756e2
        available to be activated. This command should not be called directly by
Packit 5756e2
        users or clients; it is intended for system suspend/resume tracking.
Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

IN b sleep:

Packit 5756e2

Indicates whether the NetworkManager daemon should sleep or wake.

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The Enable() method

Packit 5756e2
Packit 5756e2
Enable (IN  b enable);
Packit 5756e2
Packit 5756e2

Control whether overall networking is enabled or disabled. When disabled,

Packit 5756e2
        all interfaces that NM manages are deactivated. When enabled, all managed
Packit 5756e2
        interfaces are re-enabled and available to be activated. This command
Packit 5756e2
        should be used by clients that provide to users the ability to
Packit 5756e2
        enable/disable all networking.
Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

IN b enable:

Packit 5756e2

If FALSE, indicates that all networking should be disabled. If TRUE, indicates that NetworkManager should begin managing network devices.

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The GetPermissions() method

Packit 5756e2
Packit 5756e2
GetPermissions (OUT a{ss} permissions);
Packit 5756e2
Packit 5756e2

Returns the permissions a caller has for various authenticated operations

Packit 5756e2
        that NetworkManager provides, like Enable/Disable networking, changing
Packit 5756e2
        Wi-Fi, WWAN, and WiMAX state, etc.
Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

OUT a{ss} permissions:

Packit 5756e2

Dictionary of available permissions and results. Each permission is represented by a name (ie "org.freedesktop.NetworkManager.Foobar") and each result is one of the following values: "yes" (the permission is available), "auth" (the permission is available after a successful authentication), or "no" (the permission is denied). Clients may use these values in the UI to indicate the ability to perform certain operations.

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The SetLogging() method

Packit 5756e2
Packit 5756e2
SetLogging (IN  s level,
Packit 5756e2
            IN  s domains);
Packit 5756e2
Packit 5756e2

Set logging verbosity and which operations are logged.

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

IN s level:

Packit 5756e2

One of [ERR, WARN, INFO, DEBUG, TRACE, OFF, KEEP]. This level is applied to the domains as specified in the domains argument. Except for the special level "KEEP", all unmentioned domains are disabled entirely. "KEEP" is special and allows not to change the current setting except for the specified domains. E.g. level=KEEP and domains=PLATFORM:DEBUG will only touch the platform domain.

Packit 5756e2
Packit 5756e2
Packit 5756e2

IN s domains:

Packit 5756e2

A combination of logging domains separated by commas (','), or "NONE" to disable logging. Each domain enables logging for operations related to that domain. Available domains are: [PLATFORM, RFKILL, ETHER, WIFI, BT, MB, DHCP4, DHCP6, PPP, WIFI_SCAN, IP4, IP6, AUTOIP4, DNS, VPN, SHARING, SUPPLICANT, AGENTS, SETTINGS, SUSPEND, CORE, DEVICE, OLPC, WIMAX, INFINIBAND, FIREWALL, ADSL, BOND, VLAN, BRIDGE, DBUS_PROPS, TEAM, CONCHECK, DCB, DISPATCH, AUDIT]. In addition to these domains, the following special domains can be used: [NONE, ALL, DEFAULT, DHCP, IP]. You can also specify that some domains should log at a different level from the default by appending a colon (':') and a log level (eg, 'WIFI:DEBUG'). If an empty string is given, the log level is changed but the current set of log domains remains unchanged.

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The GetLogging() method

Packit 5756e2
Packit 5756e2
GetLogging (OUT s level,
Packit 5756e2
            OUT s domains);
Packit 5756e2
Packit 5756e2

Get current logging verbosity level and operations domains.

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

OUT s level:

Packit 5756e2

One of [ERR, WARN, INFO, DEBUG, TRACE].

Packit 5756e2
Packit 5756e2
Packit 5756e2

OUT s domains:

Packit 5756e2

For available domains see SetLogging() call.

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The CheckConnectivity() method

Packit 5756e2
Packit 5756e2
CheckConnectivity (OUT u connectivity);
Packit 5756e2
Packit 5756e2

Re-check the network connectivity state.

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

OUT u connectivity:

Packit 5756e2

(NMConnectivityState) The current connectivity state.

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The state() method

Packit 5756e2
Packit 5756e2
state (OUT u state);
Packit 5756e2
Packit 5756e2

The overall networking state as determined by the NetworkManager daemon,

Packit 5756e2
        based on the state of network devices under its management.
Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

OUT u state:

Packit 5756e2

NMState

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The CheckpointCreate() method

Packit 5756e2
Packit 5756e2
CheckpointCreate (IN  ao devices,
Packit 5756e2
                  IN  u  rollback_timeout,
Packit 5756e2
                  IN  u  flags,
Packit 5756e2
                  OUT o  checkpoint);
Packit 5756e2
Packit 5756e2

Create a checkpoint of the current networking configuration

Packit 5756e2
        for given interfaces. If rollback_timeout is not zero, a
Packit 5756e2
        rollback is automatically performed after the given timeout.
Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

IN ao devices:

Packit 5756e2

A list of device paths for which a checkpoint should be created. An empty list means all devices.

Packit 5756e2
Packit 5756e2
Packit 5756e2

IN u rollback_timeout:

Packit 5756e2

The time in seconds until NetworkManager will automatically rollback to the checkpoint. Set to zero for infinite.

Packit 5756e2
Packit 5756e2
Packit 5756e2

IN u flags:

Packit 5756e2

(NMCheckpointCreateFlags) Flags for the creation.

Packit 5756e2
Packit 5756e2
Packit 5756e2

OUT o checkpoint:

Packit 5756e2

On success, the path of the new checkpoint.

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The CheckpointDestroy() method

Packit 5756e2
Packit 5756e2
CheckpointDestroy (IN  o checkpoint);
Packit 5756e2
Packit 5756e2

Destroy a previously created checkpoint.

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

IN o checkpoint:

Packit 5756e2

The checkpoint to be destroyed. Set to empty to cancel all pending checkpoints.

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The CheckpointRollback() method

Packit 5756e2
Packit 5756e2
CheckpointRollback (IN  o     checkpoint,
Packit 5756e2
                    OUT a{su} result);
Packit 5756e2
Packit 5756e2

Rollback a checkpoint before the timeout is reached.

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

IN o checkpoint:

Packit 5756e2

The checkpoint to be rolled back.

Packit 5756e2
Packit 5756e2
Packit 5756e2

OUT a{su} result:

Packit 5756e2

On return, a dictionary of devices and results. Devices are represented by their original D-Bus path; each result is a RollbackResult.

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The CheckpointAdjustRollbackTimeout() method

Packit 5756e2
Packit 5756e2
CheckpointAdjustRollbackTimeout (IN  o checkpoint,
Packit 5756e2
                                 IN  u add_timeout);
Packit 5756e2
Packit 5756e2

timeout will expire. Set to 0 to disable the timeout.

Packit 5756e2
          Note that the added seconds start counting from now,
Packit 5756e2
          not "Created" timestamp or the previous expiration
Packit 5756e2
          time. Note that the "Created" property of the checkpoint
Packit 5756e2
          will stay unchanged by this call. However, the "RollbackTimeout"
Packit 5756e2
          will be recalculated to give the approximate new expiration time.
Packit 5756e2
          The new "RollbackTimeout" property will be approximate up to
Packit 5756e2
          one second precision, which is the accuracy of the property.
Packit 5756e2

Packit 5756e2

Reset the timeout for rollback for the checkpoint.

Packit 5756e2

Packit 5756e2

Since: 1.12

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

IN o checkpoint:

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2

IN u add_timeout:

Packit 5756e2

number of seconds from ~now~ in which the

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Signal Details

Packit 5756e2
Packit 5756e2

The "CheckPermissions" signal

Packit 5756e2
Packit 5756e2
CheckPermissions ();
Packit 5756e2
Packit 5756e2

Emitted when system authorization details change, indicating that clients

Packit 5756e2
        may wish to recheck permissions with GetPermissions.
Packit 5756e2

Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "StateChanged" signal

Packit 5756e2
Packit 5756e2
StateChanged (u state);
Packit 5756e2
Packit 5756e2

NetworkManager's state changed.

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

u state:

Packit 5756e2

(NMState) The new state of NetworkManager.

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "PropertiesChanged" signal

Packit 5756e2
Packit 5756e2
PropertiesChanged (a{sv} properties);
Packit 5756e2
Packit 5756e2

DEPRECATED. Use the standard "PropertiesChanged" signal from "org.freedesktop.DBus.Properties" instead which exists since version NetworkManager 1.2.0.

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

a{sv} properties:

Packit 5756e2

The changed properties.

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "DeviceAdded" signal

Packit 5756e2
Packit 5756e2
DeviceAdded (o device_path);
Packit 5756e2
Packit 5756e2

A device was added to the system

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

o device_path:

Packit 5756e2

The object path of the newly added device.

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "DeviceRemoved" signal

Packit 5756e2
Packit 5756e2
DeviceRemoved (o device_path);
Packit 5756e2
Packit 5756e2

A device was removed from the system, and is no longer available.

Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

o device_path:

Packit 5756e2

The object path of the device that was just removed.

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2

Property Details

Packit 5756e2
Packit 5756e2

The "Devices" property

Packit 5756e2
Packit 5756e2
Devices  readable   ao
Packit 5756e2
Packit 5756e2

The list of realized network devices. Realized devices are those which

Packit 5756e2
        have backing resources (eg from the kernel or a management daemon like
Packit 5756e2
        ModemManager, teamd, etc).
Packit 5756e2

Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "AllDevices" property

Packit 5756e2
Packit 5756e2
AllDevices  readable   ao
Packit 5756e2
Packit 5756e2

The list of both realized and un-realized network devices. Un-realized

Packit 5756e2
        devices are software devices which do not yet have backing resources, but
Packit 5756e2
        for which backing resources can be created if the device is activated.
Packit 5756e2

Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "Checkpoints" property

Packit 5756e2
Packit 5756e2
Checkpoints  readable   ao
Packit 5756e2
Packit 5756e2

The list of active checkpoints.

Packit 5756e2

Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "NetworkingEnabled" property

Packit 5756e2
Packit 5756e2
NetworkingEnabled  readable   b
Packit 5756e2
Packit 5756e2

Indicates if overall networking is currently enabled or not. See the

Packit 5756e2
        Enable() method.
Packit 5756e2

Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "WirelessEnabled" property

Packit 5756e2
Packit 5756e2
WirelessEnabled  readwrite  b
Packit 5756e2
Packit 5756e2

Indicates if wireless is currently enabled or not.

Packit 5756e2

Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "WirelessHardwareEnabled" property

Packit 5756e2
Packit 5756e2
WirelessHardwareEnabled  readable   b
Packit 5756e2
Packit 5756e2

Indicates if the wireless hardware is currently enabled, i.e. the state of

Packit 5756e2
        the RF kill switch.
Packit 5756e2

Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "WwanEnabled" property

Packit 5756e2
Packit 5756e2
WwanEnabled  readwrite  b
Packit 5756e2
Packit 5756e2

Indicates if mobile broadband devices are currently enabled or not.

Packit 5756e2

Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "WwanHardwareEnabled" property

Packit 5756e2
Packit 5756e2
WwanHardwareEnabled  readable   b
Packit 5756e2
Packit 5756e2

Indicates if the mobile broadband hardware is currently enabled, i.e. the

Packit 5756e2
        state of the RF kill switch.
Packit 5756e2

Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "WimaxEnabled" property

Packit 5756e2
Packit 5756e2
WimaxEnabled  readwrite  b
Packit 5756e2
Packit 5756e2

DEPRECATED. Doesn't have any meaning and is around only for

Packit 5756e2
        compatibility reasons.
Packit 5756e2

Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "WimaxHardwareEnabled" property

Packit 5756e2
Packit 5756e2
WimaxHardwareEnabled  readable   b
Packit 5756e2
Packit 5756e2

DEPRECATED. Doesn't have any meaning and is around only for

Packit 5756e2
        compatibility reasons.
Packit 5756e2

Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "ActiveConnections" property

Packit 5756e2
Packit 5756e2
ActiveConnections  readable   ao
Packit 5756e2
Packit 5756e2

List of active connection object paths.

Packit 5756e2

Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "PrimaryConnection" property

Packit 5756e2
Packit 5756e2
PrimaryConnection  readable   o
Packit 5756e2
Packit 5756e2

The object path of the "primary" active connection being used to access

Packit 5756e2
        the network. In particular, if there is no VPN active, or the VPN does not
Packit 5756e2
        have the default route, then this indicates the connection that has the
Packit 5756e2
        default route. If there is a VPN active with the default route, then this
Packit 5756e2
        indicates the connection that contains the route to the VPN endpoint.
Packit 5756e2

Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "PrimaryConnectionType" property

Packit 5756e2
Packit 5756e2
PrimaryConnectionType  readable   s
Packit 5756e2
Packit 5756e2

The connection type of the "primary" active connection being used to

Packit 5756e2
        access the network. This is the same as the Type property on the object
Packit 5756e2
        indicated by PrimaryConnection.
Packit 5756e2

Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "Metered" property

Packit 5756e2
Packit 5756e2
Metered  readable   u
Packit 5756e2
Packit 5756e2

Indicates whether the connectivity is metered. This is equivalent to the

Packit 5756e2
        metered property of the device associated with the primary connection.
Packit 5756e2

Packit 5756e2

Returns: NMMetered

Packit 5756e2

Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "ActivatingConnection" property

Packit 5756e2
Packit 5756e2
ActivatingConnection  readable   o
Packit 5756e2
Packit 5756e2

The object path of an active connection that is currently being activated

Packit 5756e2
        and which is expected to become the new PrimaryConnection when it finishes
Packit 5756e2
        activating.
Packit 5756e2

Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "Startup" property

Packit 5756e2
Packit 5756e2
Startup  readable   b
Packit 5756e2
Packit 5756e2

Indicates whether NM is still starting up; this becomes FALSE when NM has

Packit 5756e2
        finished attempting to activate every connection that it might be able to
Packit 5756e2
        activate at startup.
Packit 5756e2

Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "Version" property

Packit 5756e2
Packit 5756e2
Version  readable   s
Packit 5756e2
Packit 5756e2

NetworkManager version.

Packit 5756e2

Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "Capabilities" property

Packit 5756e2
Packit 5756e2
Capabilities  readable   au
Packit 5756e2
Packit 5756e2

The current set of capabilities. See NMCapability for currently

Packit 5756e2
        defined capability numbers. The array is guaranteed to
Packit 5756e2
        be sorted in ascending order without duplicates.
Packit 5756e2

Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "State" property

Packit 5756e2
Packit 5756e2
State  readable   u
Packit 5756e2
Packit 5756e2

The overall state of the NetworkManager daemon.

Packit 5756e2

Packit 5756e2

This takes state of all active connections and the connectivity state into account

Packit 5756e2
        to produce a single indicator of the network accessibility status.
Packit 5756e2

Packit 5756e2

The graphical shells may use this property to provide network connection status

Packit 5756e2
        indication and applications may use this to check if Internet connection is
Packit 5756e2
        accessible. Shell that is able to cope with captive portals should use the
Packit 5756e2
        "Connectivity" property to decide whether to present a captive portal authentication
Packit 5756e2
        dialog.
Packit 5756e2

Packit 5756e2

Returns: NMState

Packit 5756e2

Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "Connectivity" property

Packit 5756e2
Packit 5756e2
Connectivity  readable   u
Packit 5756e2
Packit 5756e2

The result of the last connectivity check. The connectivity check is triggered

Packit 5756e2
        automatically when a default connection becomes available, periodically and by
Packit 5756e2
        calling a CheckConnectivity() method.
Packit 5756e2

Packit 5756e2

This property is in general useful for the graphical shell to determine whether

Packit 5756e2
        the Internet access is being hijacked by an authentication gateway (a "captive
Packit 5756e2
        portal"). In such case it would typically present a web browser window to give
Packit 5756e2
        the user a chance to authenticate and call CheckConnectivity() when the user
Packit 5756e2
        submits a form or dismisses the window.
Packit 5756e2

Packit 5756e2

To determine the whether the user is able to access the Internet without dealing

Packit 5756e2
        with captive portals (e.g. to provide a network connection indicator or disable
Packit 5756e2
        controls that require Internet access), the "State" property is more suitable.
Packit 5756e2

Packit 5756e2

Returns: NMConnectivityState

Packit 5756e2

Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "ConnectivityCheckAvailable" property

Packit 5756e2
Packit 5756e2
ConnectivityCheckAvailable  readable   b
Packit 5756e2
Packit 5756e2

Indicates whether connectivity checking service has been

Packit 5756e2
        configured.  This may return true even if the service is not
Packit 5756e2
        currently enabled.
Packit 5756e2

Packit 5756e2

This is primarily intended for use in a privacy control panel,

Packit 5756e2
        as a way to determine whether to show an option to
Packit 5756e2
        enable/disable the feature.
Packit 5756e2

Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "ConnectivityCheckEnabled" property

Packit 5756e2
Packit 5756e2
ConnectivityCheckEnabled  readwrite  b
Packit 5756e2
Packit 5756e2

Indicates whether connectivity checking is enabled. This

Packit 5756e2
        property can also be written to disable connectivity
Packit 5756e2
        checking (as a privacy control panel might want to do).
Packit 5756e2

Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "ConnectivityCheckUri" property

Packit 5756e2
Packit 5756e2
ConnectivityCheckUri  readable   s
Packit 5756e2
Packit 5756e2

The URI that NetworkManager will hit to check if there is internet connectivity.

Packit 5756e2

Packit 5756e2
Packit 5756e2

Packit 5756e2
Packit 5756e2

The "GlobalDnsConfiguration" property

Packit 5756e2
Packit 5756e2
GlobalDnsConfiguration  readwrite  a{sv}
Packit 5756e2
Packit 5756e2

Dictionary of global DNS settings where the key is one of "searches",

Packit 5756e2
        "options" and "domains". The values for the "searches" and "options" keys
Packit 5756e2
        are string arrays describing the list of search domains and resolver
Packit 5756e2
        options, respectively. The value of the "domains" key is a second-level
Packit 5756e2
        dictionary, where each key is a domain name, and each key's value is a
Packit 5756e2
        third-level dictionary with the keys "servers" and "options". "servers" is
Packit 5756e2
        a string array of DNS servers, "options" is a string array of
Packit 5756e2
        domain-specific options.
Packit 5756e2

Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit 5756e2
Packit Service a1bd4f

Generated by GTK-Doc V1.33.0
Packit 5756e2
</body>
Packit 5756e2
</html>