- public string @interface { owned get; }
The interface of the device.
- public ActiveConnection active_connection { get; }
- public bool autoconnect { get; set; }
Whether the device can auto-activate a connection.
- public GenericArray<RemoteConnection> available_connections { get; }
The available connections of the device
- public DeviceCapabilities capabilities { get; }
The capabilities of the device.
- public DeviceType device_type { get; }
The numeric type of the device.
- public DhcpConfig dhcp4_config { get; }
- public DhcpConfig dhcp6_config { get; }
- public string driver { get; }
The driver of the device.
- public string driver_version { get; }
The version of the device driver.
- public bool firmware_missing { get; }
When true indicates the device is
likely missing firmware required for its operation.
- public string firmware_version { get; }
The firmware version of the device.
- public string hw_address { get; }
The hardware address of the device.
- public uint interface_flags { get; }
The interface flags.
- public IPConfig ip4_config { get; }
The NMIP4Config
of the device.
- public ConnectivityState ip4_connectivity { get; }
The IPv4 connectivity state of the device.
- public IPConfig ip6_config { get; }
- public ConnectivityState ip6_connectivity { get; }
The IPv6 connectivity state of the device.
- public string ip_interface { owned get; }
The IP interface of the device which should be used for all IP-related
operations like addressing and routing.
- public GenericArray<void*> lldp_neighbors { get; }
The LLDP neighbors.
- public bool managed { get; }
Whether the device is managed by NetworkManager.
- public uint metered { get; }
Whether the device is metered.
- public uint mtu { get; }
The MTU of the device.
- public bool nm_plugin_missing { get; }
When true indicates that the
NetworkManager plugin for the device is not installed.
- public string path { get; }
- public string physical_port_id { get; }
The physical port ID of the device.
- public GenericArray<void*> ports { get; }
The port devices of the controller device.
- public string product { get; }
The product string of the device.
- public bool real { get; }
Whether the device is real or is a placeholder device that could be
created automatically by NetworkManager if one of its
available_connections was activated.
- public DeviceState state { get; }
The state of the device.
- public uint state_reason { get; }
The reason for the device state.
- public string udi { get; }
An operating-system specific device hardware identifier; this is not
unique to a specific hardware device across reboots or hotplugs.
- public string vendor { get; }
The vendor string of the device.
- public bool @delete (Cancellable? cancellable = null) throws Error
Deletes the software device.
- public bool connection_compatible (Connection connection) throws Error
Validates a given connection for a given
Device object and returns whether the connection may be activated with the device.
- public bool connection_valid (Connection connection)
Validates a given connection for a given
Device object and returns whether the connection may be activated with the device.
- public async bool delete_async (Cancellable? cancellable) throws Error
Asynchronously begins deleting the software device.
- public bool disconnect (Cancellable? cancellable = null) throws Error
Disconnects the device if currently connected, and prevents the device
from automatically connecting to networks until the next manual network connection request.
- public async bool disconnect_async (Cancellable? cancellable) throws Error
Asynchronously begins disconnecting the device if currently connected,
and prevents the device from automatically connecting to networks until the next manual network connection request.
- public GenericArray<Connection> filter_connections (GenericArray<Connection> connections)
Filters a given array of connections for a given
Device object and returns connections which may be activated with the device.
- public unowned ActiveConnection get_active_connection ()
- public Connection get_applied_connection (uint32 flags, out uint64 version_id, Cancellable? cancellable = null) throws Error
Fetch the currently applied connection on the device.
- public async Connection get_applied_connection_async (uint32 flags, Cancellable? cancellable, out uint64 version_id) throws Error
Asynchronously begins and gets the currently applied connection.
- public bool get_autoconnect ()
Whether the Device can be
autoconnected.
- public unowned GenericArray<RemoteConnection> get_available_connections ()
Gets the
RemoteConnections currently known to the daemon that could be activated on this.
- public DeviceCapabilities get_capabilities ()
Gets the device' capabilities.
- public ConnectivityState get_connectivity (int addr_family)
The connectivity state of the device for given address family.
- public unowned string get_description ()
Gets a description of this, based on
its vendor and product names.
- public DeviceType get_device_type ()
Returns the numeric type of the Device
, ie Ethernet, Wi-Fi, etc.
- public unowned DhcpConfig get_dhcp4_config ()
Gets the current IPv4
DhcpConfig associated with the Device.
- public unowned DhcpConfig get_dhcp6_config ()
Gets the current IPv6
DhcpConfig associated with the Device.
- public unowned string get_driver ()
Gets the driver of the Device.
- public unowned string get_driver_version ()
Gets the driver version of the Device
.
- public bool get_firmware_missing ()
Indicates that firmware required for the device's operation is likely
to be missing.
- public unowned string get_firmware_version ()
Gets the firmware version of the Device
.
- public unowned string get_hw_address ()
Gets the current a hardware address (MAC) for the
this.
- public unowned string get_iface ()
Gets the interface name of the Device
.
- public DeviceInterfaceFlags get_interface_flags ()
Gets the interface flags of the device.
- public unowned IPConfig get_ip4_config ()
Gets the current IPv4
IPConfig associated with the Device.
- public unowned IPConfig get_ip6_config ()
Gets the current IPv6
IPConfig associated with the Device.
- public unowned string get_ip_iface ()
Gets the IP interface name of the Device
over which IP traffic flows when the device is in the ACTIVATED state.
- public unowned GenericArray<LldpNeighbor> get_lldp_neighbors ()
Gets the list of neighbors discovered through LLDP.
- public bool get_managed ()
Whether the Device is managed by
NetworkManager.
- public Metered get_metered ()
Gets the metered setting of a Device
.
- public uint32 get_mtu ()
Gets the MTU of the Device.
- public bool get_nm_plugin_missing ()
Indicates that the NetworkManager plugin for the device is not
installed.
- public unowned string get_path ()
Gets the path of the Device as
exposed by the udev property ID_PATH.
- public unowned string get_physical_port_id ()
Gets the physical port ID of the Device
.
- public unowned GenericArray<Device> get_ports ()
Gets the devices currently set as port of
this.
- public unowned string get_product ()
Gets the product string of the Device
.
- public Type get_setting_type ()
Gets the (primary)
Setting subtype associated with connections that can be used on this.
- public DeviceState get_state ()
Gets the current Device state.
- public DeviceStateReason get_state_reason ()
Gets the reason for entering the current
Device state.
- public unowned string get_type_description ()
Gets a (non-localized) description of the type of device that
this is.
- public unowned string get_udi ()
Gets the Unique Device Identifier of the
Device.
- public unowned string get_vendor ()
Gets the vendor string of the Device
.
- public bool is_real ()
- public bool is_software ()
Whether the device is a software device.
- public bool reapply (Connection? connection, uint64 version_id, uint32 flags, Cancellable? cancellable = null) throws Error
Attempts to update device with changes to the currently active
connection made since it was last applied.
- public async bool reapply_async (Connection? connection, uint64 version_id, uint32 flags, Cancellable? cancellable) throws Error
Asynchronously begins an attempt to update device with changes to the
currently active connection made since it was last applied.
- public void set_autoconnect (bool autoconnect)
Enables or disables automatic activation of the
Device.
- public void set_managed (bool managed)
Enables or disables management of Device
by NetworkManager.