device: start managing external devices on reapply

In the next commit we will modify ipX_config_merge_and_apply to never
touch external devices. When a "reapply" call is issued on an external
device we are no longer simply tracking its state but we are actively
managing it and so its sys-iface-state must be promoted to managed.

https://bugzilla.redhat.com/show_bug.cgi?id=1512316
(cherry picked from commit 9e41ed4461)
This commit is contained in:
Beniamino Galvani 2017-11-16 09:20:52 +01:00
parent 3a8a9941df
commit c516dca0d5

View file

@ -9444,6 +9444,9 @@ reapply_cb (NMDevice *self,
return;
}
if (nm_device_sys_iface_state_is_external (self))
nm_device_sys_iface_state_set (self, NM_DEVICE_SYS_IFACE_STATE_MANAGED);
if (!check_and_reapply_connection (self,
connection ? : (NMConnection *) nm_device_get_settings_connection (self),
version_id,