mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 18:50:12 +01:00
device: commit l3cfg on link change only when the device is activating
On link change, the configuration should be reapplied only when the device is activating. Fixes:58287cbcc0('core: rework IP configuration in NetworkManager using layer 3 configuration') https://bugzilla.redhat.com/show_bug.cgi?id=2079054 https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1216 (cherry picked from commit77c8b2960a)
This commit is contained in:
parent
e056a68d21
commit
b596ad1058
1 changed files with 2 additions and 1 deletions
|
|
@ -6585,7 +6585,8 @@ device_link_changed(gpointer user_data)
|
|||
* so that it theoretically would also work for NMVpnConnection (although,
|
||||
* NMVpnConnection should become like a regular device, akin to NMDevicePpp).
|
||||
*/
|
||||
if (!nm_device_sys_iface_state_is_external(self))
|
||||
if (priv->state >= NM_DEVICE_STATE_IP_CONFIG && priv->state <= NM_DEVICE_STATE_ACTIVATED
|
||||
&& !nm_device_sys_iface_state_is_external(self))
|
||||
nm_device_l3cfg_commit(self, NM_L3_CFG_COMMIT_TYPE_REAPPLY, FALSE);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue