mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 02:10:17 +01:00
manager: retry activating devices when the parent becomes managed
Since commited640f857a("manager: ignore unmanaged devices when looking for parent by UUID"), unmanaged devices are ignored when looking for potential parent connection matches. Therefore, a software device can fail autoactivation because the parent is not managed yet and NM never tries to reactivate it. Ensure that we retry other devices when a parent device becomes managed. Fixes:ed640f857ahttps://bugzilla.redhat.com/show_bug.cgi?id=1553595
This commit is contained in:
parent
217a7ad55a
commit
6493bd443f
1 changed files with 4 additions and 0 deletions
|
|
@ -1193,6 +1193,10 @@ manager_device_state_changed (NMDevice *device,
|
|||
NMManager *self = NM_MANAGER (user_data);
|
||||
NMManagerPrivate *priv = NM_MANAGER_GET_PRIVATE (self);
|
||||
|
||||
if ( old_state == NM_DEVICE_STATE_UNMANAGED
|
||||
&& new_state > NM_DEVICE_STATE_UNMANAGED)
|
||||
retry_connections_for_parent_device (self, device);
|
||||
|
||||
switch (new_state) {
|
||||
case NM_DEVICE_STATE_UNMANAGED:
|
||||
case NM_DEVICE_STATE_UNAVAILABLE:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue