mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 11:08:03 +02:00
core: ensure slave devices advance to ACTIVATED state
If the interface has no IP configuration (bond slave, etc) then it still needs to get activated too. Previously the code would only move to ACTIVATED when the first IP method completed, but since slaves don't do IP config, they never got to ACTIVATED state.
This commit is contained in:
parent
9c0bfd0d03
commit
e630b638a8
1 changed files with 9 additions and 0 deletions
|
|
@ -2127,6 +2127,15 @@ nm_device_activate_stage3_ip_config_start (gpointer user_data)
|
|||
|
||||
out:
|
||||
nm_log_info (LOGD_DEVICE, "Activation (%s) Stage 3 of 5 (IP Configure Start) complete.", iface);
|
||||
|
||||
/* Handle interfaces (bond slaves, etc) that won't have any IP config; they
|
||||
* need to move to ACTIVATED.
|
||||
*/
|
||||
if (priv->ip4_state == IP_DONE && priv->ip6_state == IP_DONE) {
|
||||
/* FIXME: call layer2 stuff to set MTU? */
|
||||
nm_device_state_changed (self, NM_DEVICE_STATE_ACTIVATED, NM_DEVICE_STATE_REASON_NONE);
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue