connection: deprecate NMSettingConnection autoconnect-slaves property
To embrace inclusive language, deprecate the NMSettingConnection autoconnect-slaves property and introduce autoconnect-ports property.
This commit is contained in:
@@ -1956,6 +1956,7 @@ global:
|
||||
nm_device_ip_tunnel_get_fwmark;
|
||||
nm_ethtool_optname_is_channels;
|
||||
nm_ethtool_optname_is_eee;
|
||||
nm_setting_connection_get_autoconnect_ports;
|
||||
nm_setting_connection_get_controller;
|
||||
nm_setting_connection_get_port_type;
|
||||
nm_setting_hsr_get_multicast_spec;
|
||||
|
@@ -767,6 +767,10 @@
|
||||
dbus-type="b"
|
||||
gprop-type="gboolean"
|
||||
/>
|
||||
<property name="autoconnect-ports"
|
||||
dbus-type="i"
|
||||
gprop-type="NMTernary"
|
||||
/>
|
||||
<property name="autoconnect-priority"
|
||||
dbus-type="i"
|
||||
gprop-type="gint"
|
||||
@@ -776,6 +780,7 @@
|
||||
gprop-type="gint"
|
||||
/>
|
||||
<property name="autoconnect-slaves"
|
||||
is-deprecated="1"
|
||||
dbus-type="i"
|
||||
gprop-type="NMSettingConnectionAutoconnectSlaves"
|
||||
/>
|
||||
|
@@ -60,6 +60,7 @@ NM_GOBJECT_PROPERTIES_DEFINE(NMSettingConnection,
|
||||
PROP_SLAVE_TYPE,
|
||||
PROP_PORT_TYPE,
|
||||
PROP_AUTOCONNECT_SLAVES,
|
||||
PROP_AUTOCONNECT_PORTS,
|
||||
PROP_SECONDARIES,
|
||||
PROP_GATEWAY_PING_TIMEOUT,
|
||||
PROP_METERED,
|
||||
@@ -87,7 +88,7 @@ typedef struct {
|
||||
char *zone;
|
||||
char *mud_url;
|
||||
guint64 timestamp;
|
||||
int autoconnect_slaves;
|
||||
int autoconnect_ports;
|
||||
int metered;
|
||||
gint32 autoconnect_priority;
|
||||
gint32 autoconnect_retries;
|
||||
@@ -827,6 +828,25 @@ nm_setting_connection_get_wait_activation_delay(NMSettingConnection *setting)
|
||||
return NM_SETTING_CONNECTION_GET_PRIVATE(setting)->wait_activation_delay;
|
||||
}
|
||||
|
||||
/**
|
||||
* nm_setting_connection_get_autoconnect_ports:
|
||||
* @setting: the #NMSettingConnection
|
||||
*
|
||||
* Returns the #NMSettingConnection:autoconnect-ports property of the connection.
|
||||
*
|
||||
* Returns: whether ports of the connection should be activated together
|
||||
* with the connection.
|
||||
*
|
||||
* Since: 1.46
|
||||
**/
|
||||
NMTernary
|
||||
nm_setting_connection_get_autoconnect_ports(NMSettingConnection *setting)
|
||||
{
|
||||
g_return_val_if_fail(NM_IS_SETTING_CONNECTION(setting), NM_TERNARY_DEFAULT);
|
||||
|
||||
return NM_SETTING_CONNECTION_GET_PRIVATE(setting)->autoconnect_ports;
|
||||
}
|
||||
|
||||
/**
|
||||
* nm_setting_connection_get_autoconnect_slaves:
|
||||
* @setting: the #NMSettingConnection
|
||||
@@ -837,14 +857,15 @@ nm_setting_connection_get_wait_activation_delay(NMSettingConnection *setting)
|
||||
* with the connection.
|
||||
*
|
||||
* Since: 1.2
|
||||
*
|
||||
* Deprecated: 1.46. Use nm_setting_connection_get_autoconnect_ports() instead, this
|
||||
* is just an alias.
|
||||
**/
|
||||
NMSettingConnectionAutoconnectSlaves
|
||||
nm_setting_connection_get_autoconnect_slaves(NMSettingConnection *setting)
|
||||
{
|
||||
g_return_val_if_fail(NM_IS_SETTING_CONNECTION(setting),
|
||||
NM_SETTING_CONNECTION_AUTOCONNECT_SLAVES_DEFAULT);
|
||||
|
||||
return NM_SETTING_CONNECTION_GET_PRIVATE(setting)->autoconnect_slaves;
|
||||
return (NMSettingConnectionAutoconnectSlaves) nm_setting_connection_get_autoconnect_ports(
|
||||
setting);
|
||||
}
|
||||
|
||||
GArray *
|
||||
@@ -1911,6 +1932,24 @@ _nm_setting_connection_slave_type_from_dbus(_NM_SETT_INFO_PROP_FROM_DBUS_FCN_ARG
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
gboolean
|
||||
_nm_setting_connection_autoconnect_slaves_from_dbus(_NM_SETT_INFO_PROP_FROM_DBUS_FCN_ARGS _nm_nil)
|
||||
{
|
||||
gint32 autoconnect;
|
||||
|
||||
if (!_nm_setting_use_legacy_property(setting,
|
||||
connection_dict,
|
||||
NM_SETTING_CONNECTION_AUTOCONNECT_SLAVES,
|
||||
NM_SETTING_CONNECTION_AUTOCONNECT_PORTS)) {
|
||||
*out_is_modified = FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
autoconnect = g_variant_get_int32(value);
|
||||
|
||||
g_object_set(setting, NM_SETTING_CONNECTION_AUTOCONNECT_SLAVES, autoconnect, NULL);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
GVariant *
|
||||
_nm_setting_connection_port_type_to_dbus(_NM_SETT_INFO_PROP_TO_DBUS_FCN_ARGS _nm_nil)
|
||||
{
|
||||
@@ -1952,6 +1991,45 @@ _nm_setting_connection_port_type_from_dbus(_NM_SETT_INFO_PROP_FROM_DBUS_FCN_ARGS
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
GVariant *
|
||||
_nm_setting_connection_autoconnect_ports_to_dbus(_NM_SETT_INFO_PROP_TO_DBUS_FCN_ARGS _nm_nil)
|
||||
{
|
||||
NMTernary autoconnect;
|
||||
|
||||
/* FIXME: `autoconnect-ports` is an alias of `autoconnect-slaves` property.
|
||||
* Serializing the property to the clients would break them as they won't
|
||||
* be able to drop it if they are not aware of the existance of
|
||||
* `autoconnect-ports`. In order to give them time to adapt their code,
|
||||
* NetworkManager is not serializing `autoconnect-ports` on DBus.
|
||||
*/
|
||||
if (_nm_utils_is_manager_process) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
autoconnect = nm_setting_connection_get_autoconnect_ports(NM_SETTING_CONNECTION(setting));
|
||||
|
||||
return g_variant_new_int32(autoconnect);
|
||||
}
|
||||
|
||||
gboolean
|
||||
_nm_setting_connection_autoconnect_ports_from_dbus(_NM_SETT_INFO_PROP_FROM_DBUS_FCN_ARGS _nm_nil)
|
||||
{
|
||||
NMTernary autoconnect;
|
||||
|
||||
/* Ignore 'autoconnect-ports' if we're going to process 'autoconnect-slaves' */
|
||||
if (_nm_setting_use_legacy_property(setting,
|
||||
connection_dict,
|
||||
NM_SETTING_CONNECTION_AUTOCONNECT_SLAVES,
|
||||
NM_SETTING_CONNECTION_AUTOCONNECT_PORTS)) {
|
||||
*out_is_modified = FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
autoconnect = g_variant_get_int32(value);
|
||||
|
||||
g_object_set(setting, NM_SETTING_CONNECTION_AUTOCONNECT_PORTS, autoconnect, NULL);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
static void
|
||||
@@ -2566,6 +2644,8 @@ nm_setting_connection_class_init(NMSettingConnectionClass *klass)
|
||||
* determine the real value. If it is default as well, this fallbacks to 0.
|
||||
*
|
||||
* Since: 1.2
|
||||
*
|
||||
* Deprecated 1.46. Use #NMSettingConnection:autoconnect-ports instead, this is just an alias.
|
||||
**/
|
||||
/* ---ifcfg-rh---
|
||||
* property: autoconnect-slaves
|
||||
@@ -2575,16 +2655,60 @@ nm_setting_connection_class_init(NMSettingConnectionClass *klass)
|
||||
* when this connection is activated.
|
||||
* ---end---
|
||||
*/
|
||||
_nm_setting_property_define_direct_enum(properties_override,
|
||||
obj_properties,
|
||||
NM_SETTING_CONNECTION_AUTOCONNECT_SLAVES,
|
||||
PROP_AUTOCONNECT_SLAVES,
|
||||
NM_TYPE_SETTING_CONNECTION_AUTOCONNECT_SLAVES,
|
||||
NM_SETTING_CONNECTION_AUTOCONNECT_SLAVES_DEFAULT,
|
||||
NM_SETTING_PARAM_FUZZY_IGNORE,
|
||||
NULL,
|
||||
NMSettingConnectionPrivate,
|
||||
autoconnect_slaves);
|
||||
prop_idx = _nm_setting_property_define_direct_enum(
|
||||
properties_override,
|
||||
obj_properties,
|
||||
NM_SETTING_CONNECTION_AUTOCONNECT_SLAVES,
|
||||
PROP_AUTOCONNECT_SLAVES,
|
||||
NM_TYPE_SETTING_CONNECTION_AUTOCONNECT_SLAVES,
|
||||
NM_SETTING_CONNECTION_AUTOCONNECT_SLAVES_DEFAULT,
|
||||
NM_SETTING_PARAM_FUZZY_IGNORE,
|
||||
NM_SETT_INFO_PROPERT_TYPE_DBUS(G_VARIANT_TYPE_INT32,
|
||||
.direct_type = NM_VALUE_TYPE_ENUM,
|
||||
.compare_fcn = _nm_setting_property_compare_fcn_direct,
|
||||
.to_dbus_fcn = _nm_setting_property_to_dbus_fcn_direct,
|
||||
.from_dbus_fcn =
|
||||
_nm_setting_connection_autoconnect_slaves_from_dbus, ),
|
||||
NMSettingConnectionPrivate,
|
||||
autoconnect_ports,
|
||||
.is_deprecated = 1,
|
||||
.direct_is_aliased_field = TRUE, );
|
||||
|
||||
/**
|
||||
* NMSettingConnection:autoconnect-ports:
|
||||
*
|
||||
* Whether or not ports of this connection should be automatically brought up
|
||||
* when NetworkManager activates this connection. This only has a real effect
|
||||
* for controller connections. The properties #NMSettingConnection:autoconnect,
|
||||
* #NMSettingConnection:autoconnect-priority and #NMSettingConnection:autoconnect-retries
|
||||
* are unrelated to this setting.
|
||||
* The permitted values are: 0: leave port connections untouched,
|
||||
* 1: activate all the port connections with this connection, -1: default.
|
||||
* If -1 (default) is set, global connection.autoconnect-ports is read to
|
||||
* determine the real value. If it is default as well, this fallbacks to 0.
|
||||
*
|
||||
* Since: 1.46
|
||||
**/
|
||||
_nm_setting_property_define_direct_enum(
|
||||
properties_override,
|
||||
obj_properties,
|
||||
NM_SETTING_CONNECTION_AUTOCONNECT_PORTS,
|
||||
PROP_AUTOCONNECT_PORTS,
|
||||
NM_TYPE_TERNARY,
|
||||
NM_TERNARY_DEFAULT,
|
||||
NM_SETTING_PARAM_FUZZY_IGNORE,
|
||||
NM_SETT_INFO_PROPERT_TYPE_DBUS(
|
||||
G_VARIANT_TYPE_INT32,
|
||||
.direct_type = NM_VALUE_TYPE_ENUM,
|
||||
.compare_fcn = _nm_setting_property_compare_fcn_direct,
|
||||
.to_dbus_fcn = _nm_setting_connection_autoconnect_ports_to_dbus,
|
||||
.from_dbus_fcn = _nm_setting_connection_autoconnect_ports_from_dbus, ),
|
||||
NMSettingConnectionPrivate,
|
||||
autoconnect_ports,
|
||||
.direct_also_notify = obj_properties[PROP_AUTOCONNECT_SLAVES]);
|
||||
|
||||
nm_g_array_index(properties_override, NMSettInfoProperty, prop_idx).direct_also_notify =
|
||||
obj_properties[PROP_AUTOCONNECT_PORTS];
|
||||
|
||||
/**
|
||||
* NMSettingConnection:secondaries:
|
||||
|
@@ -411,6 +411,15 @@ GVariant *_nm_setting_connection_port_type_to_dbus(_NM_SETT_INFO_PROP_TO_DBUS_FC
|
||||
|
||||
gboolean _nm_setting_connection_slave_type_from_dbus(_NM_SETT_INFO_PROP_FROM_DBUS_FCN_ARGS _nm_nil);
|
||||
|
||||
gboolean
|
||||
_nm_setting_connection_autoconnect_ports_from_dbus(_NM_SETT_INFO_PROP_FROM_DBUS_FCN_ARGS _nm_nil);
|
||||
|
||||
GVariant *
|
||||
_nm_setting_connection_autoconnect_ports_to_dbus(_NM_SETT_INFO_PROP_TO_DBUS_FCN_ARGS _nm_nil);
|
||||
|
||||
gboolean
|
||||
_nm_setting_connection_autoconnect_slaves_from_dbus(_NM_SETT_INFO_PROP_FROM_DBUS_FCN_ARGS _nm_nil);
|
||||
|
||||
GVariant *_nm_setting_to_dbus(NMSetting *setting,
|
||||
NMConnection *connection,
|
||||
NMConnectionSerializationFlags flags,
|
||||
@@ -894,44 +903,44 @@ _nm_properties_override(GArray *properties_override, const NMSettInfoProperty *p
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
#define _nm_setting_property_define_direct_enum(properties_override, \
|
||||
obj_properties, \
|
||||
prop_name, \
|
||||
prop_id, \
|
||||
gtype_enum, \
|
||||
default_value, \
|
||||
param_flags, \
|
||||
property_type, \
|
||||
private_struct_type, \
|
||||
private_struct_field, \
|
||||
... /* extra NMSettInfoProperty fields */) \
|
||||
({ \
|
||||
GParamSpec *_param_spec; \
|
||||
const NMSettInfoPropertType *_property_type; \
|
||||
\
|
||||
G_STATIC_ASSERT( \
|
||||
!NM_FLAGS_ANY((param_flags), \
|
||||
~(NM_SETTING_PARAM_REAPPLY_IMMEDIATELY | NM_SETTING_PARAM_FUZZY_IGNORE \
|
||||
| NM_SETTING_PARAM_INFERRABLE))); \
|
||||
\
|
||||
_param_spec = g_param_spec_enum("" prop_name "", \
|
||||
"", \
|
||||
"", \
|
||||
(gtype_enum), \
|
||||
(default_value), \
|
||||
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY \
|
||||
| G_PARAM_STATIC_STRINGS | (param_flags)); \
|
||||
\
|
||||
(obj_properties)[(prop_id)] = _param_spec; \
|
||||
_property_type = (property_type) ?: &nm_sett_info_propert_type_direct_enum; \
|
||||
\
|
||||
_nm_properties_override_gobj( \
|
||||
(properties_override), \
|
||||
_param_spec, \
|
||||
_property_type, \
|
||||
.direct_offset = \
|
||||
NM_STRUCT_OFFSET_ENSURE_TYPE(int, private_struct_type, private_struct_field), \
|
||||
__VA_ARGS__); \
|
||||
#define _nm_setting_property_define_direct_enum(properties_override, \
|
||||
obj_properties, \
|
||||
prop_name, \
|
||||
prop_id, \
|
||||
gtype_enum, \
|
||||
default_value, \
|
||||
param_flags, \
|
||||
property_type, \
|
||||
private_struct_type, \
|
||||
private_struct_field, \
|
||||
... /* extra NMSettInfoProperty fields */) \
|
||||
({ \
|
||||
GParamSpec *_param_spec; \
|
||||
const NMSettInfoPropertType *_property_type; \
|
||||
\
|
||||
G_STATIC_ASSERT( \
|
||||
!NM_FLAGS_ANY((param_flags), \
|
||||
~(NM_SETTING_PARAM_REAPPLY_IMMEDIATELY | NM_SETTING_PARAM_FUZZY_IGNORE \
|
||||
| NM_SETTING_PARAM_INFERRABLE))); \
|
||||
\
|
||||
_param_spec = g_param_spec_enum("" prop_name "", \
|
||||
"", \
|
||||
"", \
|
||||
(gtype_enum), \
|
||||
(default_value), \
|
||||
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY \
|
||||
| G_PARAM_STATIC_STRINGS | (param_flags)); \
|
||||
\
|
||||
(obj_properties)[(prop_id)] = _param_spec; \
|
||||
_property_type = (property_type) ?: &nm_sett_info_propert_type_direct_enum; \
|
||||
\
|
||||
_nm_properties_override_gobj( \
|
||||
(properties_override), \
|
||||
_param_spec, \
|
||||
_property_type, \
|
||||
.direct_offset = \
|
||||
NM_STRUCT_OFFSET_ENSURE_TYPE(int, private_struct_type, private_struct_field), \
|
||||
__VA_ARGS__); \
|
||||
})
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@@ -2659,7 +2659,8 @@ _nm_setting_property_compare_fcn_direct(_NM_SETT_INFO_PROP_COMPARE_FCN_ARGS _nm_
|
||||
_nm_setting_property_to_dbus_fcn_direct,
|
||||
_nm_setting_property_to_dbus_fcn_direct_mac_address,
|
||||
_nm_setting_connection_controller_to_dbus,
|
||||
_nm_setting_connection_port_type_to_dbus));
|
||||
_nm_setting_connection_port_type_to_dbus,
|
||||
_nm_setting_connection_autoconnect_ports_to_dbus));
|
||||
|
||||
if (!property_info->param_spec)
|
||||
return nm_assert_unreachable_val(NM_TERNARY_DEFAULT);
|
||||
|
@@ -3962,7 +3962,7 @@ typedef struct {
|
||||
|
||||
typedef struct {
|
||||
const char *name;
|
||||
DiffKey keys[31];
|
||||
DiffKey keys[32];
|
||||
} DiffSetting;
|
||||
|
||||
#define ARRAY_LEN(a) (sizeof(a) / sizeof(a[0]))
|
||||
@@ -4023,6 +4023,7 @@ test_connection_diff_a_only(void)
|
||||
{NM_SETTING_CONNECTION_SLAVE_TYPE, NM_SETTING_DIFF_RESULT_IN_A},
|
||||
{NM_SETTING_CONNECTION_PORT_TYPE, NM_SETTING_DIFF_RESULT_IN_A},
|
||||
{NM_SETTING_CONNECTION_AUTOCONNECT_SLAVES, NM_SETTING_DIFF_RESULT_IN_A},
|
||||
{NM_SETTING_CONNECTION_AUTOCONNECT_PORTS, NM_SETTING_DIFF_RESULT_IN_A},
|
||||
{NM_SETTING_CONNECTION_SECONDARIES, NM_SETTING_DIFF_RESULT_IN_A},
|
||||
{NM_SETTING_CONNECTION_GATEWAY_PING_TIMEOUT, NM_SETTING_DIFF_RESULT_IN_A},
|
||||
{NM_SETTING_CONNECTION_METERED, NM_SETTING_DIFF_RESULT_IN_A},
|
||||
|
@@ -4664,7 +4664,6 @@ test_setting_metadata(void)
|
||||
} else if (sip->property_type->direct_type == NM_VALUE_TYPE_ENUM) {
|
||||
const GParamSpecEnum *pspec;
|
||||
|
||||
g_assert(sip->property_type == &nm_sett_info_propert_type_direct_enum);
|
||||
g_assert(g_variant_type_equal(sip->property_type->dbus_type, "i"));
|
||||
g_assert(sip->param_spec);
|
||||
g_assert(g_type_is_a(sip->param_spec->value_type, G_TYPE_ENUM));
|
||||
|
@@ -51,6 +51,7 @@ G_BEGIN_DECLS
|
||||
#define NM_SETTING_CONNECTION_SLAVE_TYPE "slave-type"
|
||||
#define NM_SETTING_CONNECTION_PORT_TYPE "port-type"
|
||||
#define NM_SETTING_CONNECTION_AUTOCONNECT_SLAVES "autoconnect-slaves"
|
||||
#define NM_SETTING_CONNECTION_AUTOCONNECT_PORTS "autoconnect-ports"
|
||||
#define NM_SETTING_CONNECTION_SECONDARIES "secondaries"
|
||||
#define NM_SETTING_CONNECTION_GATEWAY_PING_TIMEOUT "gateway-ping-timeout"
|
||||
#define NM_SETTING_CONNECTION_METERED "metered"
|
||||
@@ -77,7 +78,10 @@ G_BEGIN_DECLS
|
||||
* should be activated when master is activated.
|
||||
*
|
||||
* Since: 1.2
|
||||
*
|
||||
* Deprecated: 1.46
|
||||
*/
|
||||
NM_DEPRECATED_IN_1_46
|
||||
typedef enum {
|
||||
NM_SETTING_CONNECTION_AUTOCONNECT_SLAVES_DEFAULT = -1,
|
||||
NM_SETTING_CONNECTION_AUTOCONNECT_SLAVES_NO = 0,
|
||||
@@ -211,9 +215,13 @@ NM_AVAILABLE_IN_1_46
|
||||
const char *nm_setting_connection_get_port_type(NMSettingConnection *setting);
|
||||
|
||||
NM_AVAILABLE_IN_1_2
|
||||
NM_DEPRECATED_IN_1_46
|
||||
NMSettingConnectionAutoconnectSlaves
|
||||
nm_setting_connection_get_autoconnect_slaves(NMSettingConnection *setting);
|
||||
|
||||
NM_AVAILABLE_IN_1_46
|
||||
NMTernary nm_setting_connection_get_autoconnect_ports(NMSettingConnection *setting);
|
||||
|
||||
guint32 nm_setting_connection_get_num_secondaries(NMSettingConnection *setting);
|
||||
const char *nm_setting_connection_get_secondary(NMSettingConnection *setting, guint32 idx);
|
||||
gboolean nm_setting_connection_add_secondary(NMSettingConnection *setting, const char *sec_uuid);
|
||||
|
@@ -5685,6 +5685,9 @@ static const NMMetaPropertyInfo *const property_infos_CONNECTION[] = {
|
||||
PROPERTY_INFO_WITH_DESC (NM_SETTING_CONNECTION_AUTOCONNECT_SLAVES,
|
||||
.property_type = &_pt_gobject_enum,
|
||||
),
|
||||
PROPERTY_INFO_WITH_DESC (NM_SETTING_CONNECTION_AUTOCONNECT_PORTS,
|
||||
.property_type = &_pt_gobject_enum,
|
||||
),
|
||||
PROPERTY_INFO_WITH_DESC (NM_SETTING_CONNECTION_SECONDARIES,
|
||||
.describe_message =
|
||||
N_("Enter secondary connections that should be activated when this connection is\n"
|
||||
|
@@ -2,6 +2,7 @@
|
||||
|
||||
#define DESCRIBE_DOC_NM_SETTING_CONNECTION_AUTH_RETRIES N_("The number of retries for the authentication. Zero means to try indefinitely; -1 means to use a global default. If the global default is not set, the authentication retries for 3 times before failing the connection. Currently, this only applies to 802-1x authentication.")
|
||||
#define DESCRIBE_DOC_NM_SETTING_CONNECTION_AUTOCONNECT N_("Whether or not the connection should be automatically connected by NetworkManager when the resources for the connection are available. TRUE to automatically activate the connection, FALSE to require manual intervention to activate the connection. Autoconnect happens when the circumstances are suitable. That means for example that the device is currently managed and not active. Autoconnect thus never replaces or competes with an already active profile. Note that autoconnect is not implemented for VPN profiles. See \"secondaries\" as an alternative to automatically connect VPN profiles. If multiple profiles are ready to autoconnect on the same device, the one with the better \"connection.autoconnect-priority\" is chosen. If the priorities are equal, then the most recently connected profile is activated. If the profiles were not connected earlier or their \"connection.timestamp\" is identical, the choice is undefined. Depending on \"connection.multi-connect\", a profile can (auto)connect only once at a time or multiple times.")
|
||||
#define DESCRIBE_DOC_NM_SETTING_CONNECTION_AUTOCONNECT_PORTS N_("Whether or not ports of this connection should be automatically brought up when NetworkManager activates this connection. This only has a real effect for controller connections. The properties \"autoconnect\", \"autoconnect-priority\" and \"autoconnect-retries\" are unrelated to this setting. The permitted values are: 0: leave port connections untouched, 1: activate all the port connections with this connection, -1: default. If -1 (default) is set, global connection.autoconnect-ports is read to determine the real value. If it is default as well, this fallbacks to 0.")
|
||||
#define DESCRIBE_DOC_NM_SETTING_CONNECTION_AUTOCONNECT_PRIORITY N_("The autoconnect priority in range -999 to 999. If the connection is set to autoconnect, connections with higher priority will be preferred. The higher number means higher priority. Defaults to 0. Note that this property only matters if there are more than one candidate profile to select for autoconnect. In case of equal priority, the profile used most recently is chosen.")
|
||||
#define DESCRIBE_DOC_NM_SETTING_CONNECTION_AUTOCONNECT_RETRIES N_("The number of times a connection should be tried when autoactivating before giving up. Zero means forever, -1 means the global default (4 times if not overridden). Setting this to 1 means to try activation only once before blocking autoconnect. Note that after a timeout, NetworkManager will try to autoconnect again.")
|
||||
#define DESCRIBE_DOC_NM_SETTING_CONNECTION_AUTOCONNECT_SLAVES N_("Whether or not slaves of this connection should be automatically brought up when NetworkManager activates this connection. This only has a real effect for master connections. The properties \"autoconnect\", \"autoconnect-priority\" and \"autoconnect-retries\" are unrelated to this setting. The permitted values are: 0: leave slave connections untouched, 1: activate all the slave connections with this connection, -1: default. If -1 (default) is set, global connection.autoconnect-slaves is read to determine the real value. If it is default as well, this fallbacks to 0.")
|
||||
|
@@ -674,6 +674,10 @@
|
||||
nmcli-description="Whether or not slaves of this connection should be automatically brought up when NetworkManager activates this connection. This only has a real effect for master connections. The properties "autoconnect", "autoconnect-priority" and "autoconnect-retries" are unrelated to this setting. The permitted values are: 0: leave slave connections untouched, 1: activate all the slave connections with this connection, -1: default. If -1 (default) is set, global connection.autoconnect-slaves is read to determine the real value. If it is default as well, this fallbacks to 0."
|
||||
format="choice (NMSettingConnectionAutoconnectSlaves)"
|
||||
values="default (-1), no (0), yes (1)" />
|
||||
<property name="autoconnect-ports"
|
||||
nmcli-description="Whether or not ports of this connection should be automatically brought up when NetworkManager activates this connection. This only has a real effect for controller connections. The properties "autoconnect", "autoconnect-priority" and "autoconnect-retries" are unrelated to this setting. The permitted values are: 0: leave port connections untouched, 1: activate all the port connections with this connection, -1: default. If -1 (default) is set, global connection.autoconnect-ports is read to determine the real value. If it is default as well, this fallbacks to 0."
|
||||
format="choice (NMTernary)"
|
||||
values="default (-1), false (0), true (1)" />
|
||||
<property name="secondaries"
|
||||
nmcli-description="List of connection UUIDs that should be activated when the base connection itself is activated. Currently, only VPN connections are supported."
|
||||
format="list of strings" />
|
||||
|
@@ -502,12 +502,12 @@ NAME UUID TYPE DEVICE
|
||||
con-1 5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet --
|
||||
|
||||
<<<
|
||||
size: 1459
|
||||
size: 1512
|
||||
location: src/tests/client/test-client.py:test_002()/23
|
||||
cmd: $NMCLI c s con-1
|
||||
lang: C
|
||||
returncode: 0
|
||||
stdout: 1331 bytes
|
||||
stdout: 1384 bytes
|
||||
>>>
|
||||
connection.id: con-1
|
||||
connection.uuid: 5fcfd6d7-1e63-3332-8826-a7eda103792d
|
||||
@@ -527,6 +527,7 @@ connection.master: --
|
||||
connection.slave-type: --
|
||||
connection.port-type: --
|
||||
connection.autoconnect-slaves: -1 (default)
|
||||
connection.autoconnect-ports: -1 (default)
|
||||
connection.secondaries: --
|
||||
connection.gateway-ping-timeout: 0
|
||||
connection.metered: unknown
|
||||
@@ -539,12 +540,12 @@ connection.wait-device-timeout: -1
|
||||
connection.wait-activation-delay: -1
|
||||
|
||||
<<<
|
||||
size: 1470
|
||||
size: 1523
|
||||
location: src/tests/client/test-client.py:test_002()/24
|
||||
cmd: $NMCLI c s con-1
|
||||
lang: pl_PL.UTF-8
|
||||
returncode: 0
|
||||
stdout: 1332 bytes
|
||||
stdout: 1385 bytes
|
||||
>>>
|
||||
connection.id: con-1
|
||||
connection.uuid: 5fcfd6d7-1e63-3332-8826-a7eda103792d
|
||||
@@ -564,6 +565,7 @@ connection.master: --
|
||||
connection.slave-type: --
|
||||
connection.port-type: --
|
||||
connection.autoconnect-slaves: -1 (default)
|
||||
connection.autoconnect-ports: -1 (default)
|
||||
connection.secondaries: --
|
||||
connection.gateway-ping-timeout: 0
|
||||
connection.metered: nieznane
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user