mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 06:00:08 +01:00
core: log when last slave is removed
This commit is contained in:
parent
b6f8ecb330
commit
39bd9f893a
1 changed files with 4 additions and 2 deletions
|
|
@ -927,8 +927,10 @@ slave_state_changed (NMDevice *slave,
|
|||
|
||||
if (release) {
|
||||
nm_device_release_one_slave (self, slave, FALSE);
|
||||
if (priv->slaves == NULL) {
|
||||
/* FIXME: all slaves gone; do something? */
|
||||
/* Bridge/bond interfaces are left up until manually deactivated */
|
||||
if (priv->slaves == NULL && priv->state == NM_DEVICE_STATE_ACTIVATED) {
|
||||
nm_log_dbg (LOGD_DEVICE, "(%s): last slave removed; remaining activated",
|
||||
nm_device_get_iface (self));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue