SettingConnection
Object Hierarchy:
Description:
[ CCode ( type_id = "nm_setting_connection_get_type ()" ) ]
public sealed class SettingConnection : Setting
public sealed class SettingConnection : Setting
General Connection Profile Settings
Namespace: NM
Package: libnm
Content:
Constants:
- public const string AUTH_RETRIES
- public const string AUTOCONNECT
- public const string AUTOCONNECT_PRIORITY
- public const int AUTOCONNECT_PRIORITY_DEFAULT
- public const int AUTOCONNECT_PRIORITY_MAX
- public const int AUTOCONNECT_PRIORITY_MIN
- public const string AUTOCONNECT_RETRIES
- public const string AUTOCONNECT_SLAVES
- public const string DNS_OVER_TLS
- public const string GATEWAY_PING_TIMEOUT
- public const string ID
- public const string INTERFACE_NAME
- public const string LLDP
- public const string LLMNR
- public const string MASTER
- public const string MDNS
- public const string METERED
- public const string MPTCP_FLAGS
- public const string MUD_URL
- public const string MULTI_CONNECT
- public const string PERMISSIONS
- public const string READ_ONLY
- public const string SECONDARIES
- public const string SETTING_NAME
- public const string SLAVE_TYPE
- public const string STABLE_ID
- public const string TIMESTAMP
- public const string TYPE
- public const string UUID
- public const string WAIT_ACTIVATION_DELAY
- public const string WAIT_DEVICE_TIMEOUT
- public const string ZONE
Properties:
- public int auth_retries { get; set; }
The number of retries for the authentication.
- public bool autoconnect { get; set; }
Whether or not the connection should be automatically connected by NetworkManager when the resources for the connection are available.
- public int autoconnect_priority { get; set; }
The autoconnect priority in range -999 to 999.
- public int autoconnect_retries { get; set; }
The number of times a connection should be tried when autoactivating before giving up.
- public SettingConnectionAutoconnectSlaves autoconnect_slaves { get; set; }
Whether or not slaves of this connection should be automatically brought up when NetworkManager activates this connection.
- public int dns_over_tls { get; set; }
Whether DNSOverTls (dns-over-tls) is enabled for the connection.
- public uint gateway_ping_timeout { get; set; }
If greater than zero, delay success of IP addressing until either the timeout is reached, or an IP gateway replies to a ping.
- public string id { owned get; set; }
A human readable unique identifier for the connection, like "Work Wi-Fi" or "T-Mobile 3G".
- public string interface_name { owned get; set; }
The name of the network interface this connection is bound to.
- public int lldp { get; set; }
Whether LLDP is enabled for the connection.
- public int llmnr { get; set; }
Whether Link-Local Multicast Name Resolution (LLMNR) is enabled for the connection.
- public string master { owned get; set; }
Interface name of the master device or UUID of the master connection.
- public int mdns { get; set; }
Whether mDNS is enabled for the connection.
- public Metered metered { get; set; }
Whether the connection is metered.
- public uint mptcp_flags { get; set; }
Whether to configure MPTCP endpoints and the address flags.
- public string mud_url { owned get; set; }
If configured, set to a Manufacturer Usage Description (MUD) URL that points to manufacturer-recommended network policies for IoT devices.
- public int multi_connect { get; set; }
Specifies whether the profile can be active multiple times at a particular moment.
- public string[] permissions { owned get; set; }
An array of strings defining what access a given user has to this connection.
- public bool read_only { get; set; }
This property is deprecated and has no meaning.
- public string[] secondaries { owned get; set; }
List of connection UUIDs that should be activated when the base connection itself is activated.
- public string slave_type { owned get; set; }
Setting name of the device type of this slave's master connection (eg, nm_setting_bond_setting_name), or null if this connection is not a slave.
- public string stable_id { owned get; set; }
This represents the identity of the connection used for various purposes.
- public uint64 timestamp { get; set; }
The time, in seconds since the Unix Epoch, that the connection was last _successfully_ fully activated.
- public string type { owned get; set; }
Base type of the connection.
- public string uuid { owned get; set; }
A universally unique identifier for the connection, for example generated with libuuid.
- public int wait_activation_delay { get; set; }
Time in milliseconds to wait for connection to be considered activated.
- public int wait_device_timeout { get; set; }
Timeout in milliseconds to wait for device at startup.
- public string zone { owned get; set; }
The trust level of a the connection.
Creation methods:
- public SettingConnection ()
Creates a new SettingConnection object with default values.
Methods:
- public bool add_permission (string ptype, string pitem, string? detail)
Adds a permission to the connection's permission list.
- public bool add_secondary (string sec_uuid)
Adds a new secondary connection UUID to the setting.
- public int get_auth_retries ()
Returns the value contained in the auth_retries property.
- public bool get_autoconnect ()
Returns the autoconnect property of the connection.
- public int get_autoconnect_priority ()
Returns the autoconnect_priority property of the connection.
- public int get_autoconnect_retries ()
Returns the autoconnect_retries property of the connection.
- public SettingConnectionAutoconnectSlaves get_autoconnect_slaves ()
Returns the autoconnect_slaves property of the connection.
- public unowned string get_connection_type ()
Returns the type property of the connection.
- public SettingConnectionDnsOverTls get_dns_over_tls ()
- public uint32 get_gateway_ping_timeout ()
- public unowned string get_id ()
Returns the id property of the connection.
- public unowned string get_interface_name ()
Returns the interface_name property of the connection.
- public SettingConnectionLldp get_lldp ()
Returns the lldp property of the connection.
- public SettingConnectionLlmnr get_llmnr ()
- public unowned string get_master ()
Returns the master property of the connection.
- public SettingConnectionMdns get_mdns ()
- public Metered get_metered ()
- public MptcpFlags get_mptcp_flags ()
- public unowned string get_mud_url ()
Returns the value contained in the mud_url property.
- public ConnectionMultiConnect get_multi_connect ()
- public uint32 get_num_permissions ()
Returns the number of entries in the permissions property of this setting.
- public uint32 get_num_secondaries ()
- public bool get_permission (uint32 idx, string out_ptype, string out_pitem, string out_detail)
Retrieve one of the entries of the permissions property of this setting.
- public bool get_read_only ()
Returns the read_only property of the connection.
- public unowned string get_secondary (uint32 idx)
- public unowned string get_slave_type ()
Returns the slave_type property of the connection.
- public unowned string get_stable_id ()
Returns the stable_id property of the connection.
- public uint64 get_timestamp ()
Returns the timestamp property of the connection.
- public unowned string get_uuid ()
Returns the uuid property of the connection.
- public int32 get_wait_activation_delay ()
- public int32 get_wait_device_timeout ()
- public unowned string get_zone ()
Returns the zone property of the connection.
- public bool is_slave_type (string type)
- public bool permissions_user_allowed (string uname)
Checks whether the given username is allowed to view/access this connection.
- public void remove_permission (uint32 idx)
Removes the permission at index
idx
from the connection. - public bool remove_permission_by_value (string ptype, string pitem, string? detail)
Removes the permission from the connection.
- public void remove_secondary (uint32 idx)
Removes the secondary connection UUID at index
idx
. - public bool remove_secondary_by_value (string sec_uuid)
Removes the secondary connection UUID
sec_uuid
.
Inherited Members:
All known members inherited from class NM.Setting
All known members inherited from class GLib.Object