mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-09 18:10:21 +01:00
manager: allow autoconnect-slaves to reconnect the same connection
When a master connection is activated and has autoconnect-slaves=yes,
we want to reactivate an existing slave connection even if it is
already active.
https://bugzilla.redhat.com/show_bug.cgi?id=1548265
(cherry picked from commit 4985ca5ada)
This commit is contained in:
parent
ca12c0fafb
commit
370f84081c
1 changed files with 5 additions and 3 deletions
|
|
@ -3978,13 +3978,15 @@ _internal_activation_auth_done (NMActiveConnection *active,
|
|||
|
||||
priv->authorizing_connections = g_slist_remove (priv->authorizing_connections, active);
|
||||
|
||||
/* Don't continue with the activation if an equivalent active connection
|
||||
* already exists. We also check this earlier, but there we may fail to
|
||||
/* Don't continue with an internal activation if an equivalent active
|
||||
* connection already exists. Note that slave autoconnections always force a
|
||||
* reconnection. We also check this earlier, but there we may fail to
|
||||
* detect a duplicate if the existing active connection is undergoing
|
||||
* authorization in impl_manager_activate_connection().
|
||||
*/
|
||||
if ( success
|
||||
&& nm_auth_subject_is_internal (nm_active_connection_get_subject (active))) {
|
||||
&& nm_auth_subject_is_internal (nm_active_connection_get_subject (active))
|
||||
&& nm_active_connection_get_activation_reason (active) != NM_ACTIVATION_REASON_AUTOCONNECT_SLAVES) {
|
||||
c_list_for_each_entry (ac, &priv->active_connections_lst_head, active_connections_lst) {
|
||||
if ( nm_active_connection_get_device (ac) == nm_active_connection_get_device (active)
|
||||
&& nm_active_connection_get_settings_connection (ac) == nm_active_connection_get_settings_connection (active)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue