diff --git a/man/NetworkManager.conf.xml b/man/NetworkManager.conf.xml index ed92ef5b89..474e795177 100644 --- a/man/NetworkManager.conf.xml +++ b/man/NetworkManager.conf.xml @@ -856,8 +856,13 @@ ipv6.ip6-privacy=0 If left unspecified, the default value is 3 tries before failing the connection. + + connection.autoconnect-ports + connection.autoconnect-slaves + This is deprecated, please use "connection.autoconnect-ports" instead. + connection.down-on-poweroff diff --git a/src/core/nm-manager.c b/src/core/nm-manager.c index 21da89c89e..0a7e7b2e4a 100644 --- a/src/core/nm-manager.c +++ b/src/core/nm-manager.c @@ -5375,12 +5375,22 @@ should_connect_ports(NMConnection *connection, NMDevice *device) val = nm_config_data_get_connection_default_int64(NM_CONFIG_GET_DATA, - NM_CON_DEFAULT("connection.autoconnect-slaves"), + NM_CON_DEFAULT("connection.autoconnect-ports"), device, 0, 1, -1); + /* Trust "connection.autoconnect-ports" first, if set to default fallback to the deprecated term. */ + if (val == NM_TERNARY_DEFAULT) + val = nm_config_data_get_connection_default_int64( + NM_CONFIG_GET_DATA, + NM_CON_DEFAULT("connection.autoconnect-slaves"), + device, + 0, + 1, + -1); + out: if (val == NM_TERNARY_FALSE) return FALSE;