mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 12:50:17 +01:00
device: stop activation when queueing the unmanaged state
When the unmanaged state is queued, we must ensure that the current activation doesn't overwrite the queue stated with a new one. This can happen for example if a dispatcher script or a firewall call terminate, or if the next activation stage is dispatched. Fixes-test: @preserve_master_and_ip_settings https://bugzilla.redhat.com/show_bug.cgi?id=2178269 https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1599
This commit is contained in:
parent
640c82710f
commit
89a8f51235
1 changed files with 3 additions and 1 deletions
|
|
@ -14715,7 +14715,9 @@ _set_unmanaged_flags(NMDevice *self,
|
|||
|
||||
if (transition_state) {
|
||||
new_state = was_managed ? NM_DEVICE_STATE_UNMANAGED : NM_DEVICE_STATE_UNAVAILABLE;
|
||||
if (new_state != NM_DEVICE_STATE_UNMANAGED) {
|
||||
if (new_state == NM_DEVICE_STATE_UNMANAGED) {
|
||||
_cancel_activation(self);
|
||||
} else {
|
||||
/* The assume check should happen before the device transitions to
|
||||
* UNAVAILABLE, because in UNAVAILABLE we already clean up the IP
|
||||
* configuration. Therefore, this function should never trigger a
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue