Currently slaves only wait for the master device to be present. This is insufficient, we want to wait for the master connection to be activated.
Signed-off-by: Thomas Graf <[email protected]> --- src/nm-policy.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/nm-policy.c b/src/nm-policy.c index 3e19492..1443fb2 100644 --- a/src/nm-policy.c +++ b/src/nm-policy.c @@ -736,6 +736,7 @@ check_master_dependency (NMManager *manager, NMDevice *device, NMConnection *con NMSettingConnection *s_con; NMDevice *master_device; const char *master; + NMActRequest *req; s_con = nm_connection_get_setting_connection (connection); g_assert (s_con); @@ -752,6 +753,11 @@ check_master_dependency (NMManager *manager, NMDevice *device, NMConnection *con if (!master_device) return FALSE; + /* Make all slaves wait for the master connection to activate. */ + req = nm_device_get_act_request (master_device); + if (!req || !nm_act_request_get_connection (req)) + return FALSE; + nm_device_set_master (device, master_device); return TRUE; -- 1.7.7.3 _______________________________________________ networkmanager-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/networkmanager-list
