nmcli: don't hang activation of masters that progress beyond ip-config

Some master connetions are able to progress beyond activating/ip-config -- the
slaves might have appeared during the activation, or the connection doesn't
need slaves to obtain the configuration (it could be method=manual or shared).

(cherry picked from commit 2e958baceb)
This commit is contained in:
Lubomir Rintel 2015-06-23 12:44:31 +02:00
parent 9c83d18da6
commit 649f88de67

View file

@ -1728,7 +1728,7 @@ device_state_cb (NMDevice *device, GParamSpec *pspec, gpointer user_data)
nm_object_get_path (NM_OBJECT (active)));
quit ();
} else if ( ac_state == NM_ACTIVE_CONNECTION_STATE_ACTIVATING
&& state == NM_DEVICE_STATE_IP_CONFIG) {
&& state >= NM_DEVICE_STATE_IP_CONFIG) {
if (nmc->print_output == NMC_PRINT_PRETTY)
nmc_terminal_erase_line ();
g_print (_("Connection successfully activated (master waiting for slaves) (D-Bus active path: %s)\n"),