core: log when last slave is removed

This commit is contained in:
Dan Williams 2013-01-18 10:54:24 -06:00
parent b6f8ecb330
commit 39bd9f893a

View file

@ -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));
}
}
}