mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-01 12:40:37 +01:00
device: change port deactivation reason upon user-request controller deactivation
When connection down is explicitly called on the controller, the port connection should also be deactivated with the reason user-requested, otherwise any following connection update on the controller profile will unblock the port connection and unnessarily make the port to autoconnet again. Fixes:645a1bb0ef('core: unblock autoconnect when master profile changes') https://gitlab.freedesktop.org/NetworkManager/NetworkManager-ci/-/merge_requests/1568 (cherry picked from commit21a6d7a0b6)
This commit is contained in:
parent
489129e3f2
commit
052627dd7c
1 changed files with 1 additions and 1 deletions
|
|
@ -8339,7 +8339,7 @@ nm_device_slave_notify_release(NMDevice *self,
|
|||
master_status = "failed";
|
||||
break;
|
||||
case NM_DEVICE_STATE_REASON_USER_REQUESTED:
|
||||
reason = NM_DEVICE_STATE_REASON_DEPENDENCY_FAILED;
|
||||
reason = NM_DEVICE_STATE_REASON_USER_REQUESTED;
|
||||
master_status = "deactivated by user request";
|
||||
break;
|
||||
case NM_DEVICE_STATE_REASON_CONNECTION_REMOVED:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue