slave->aux = slave_;
slave->delay_expires = LLONG_MAX;
slave->up = bond_is_link_up(bond, netdev);
- slave->enabled = slave->up;
+ slave->enabled = false;
+ bond_enable_slave(slave, slave->up, NULL);
}
slave->netdev = netdev;
return;
}
+ bond_enable_slave(slave, false, NULL);
+
del_active = bond->active_slave == slave;
if (bond->hash) {
struct bond_entry *e;
slave->enabled = enable;
if (!slave->enabled) {
VLOG_WARN("interface %s: disabled", slave->name);
- tag_set_add(tags, slave->tag);
+ if (tags) {
+ tag_set_add(tags, slave->tag);
+ }
} else {
VLOG_WARN("interface %s: enabled", slave->name);
slave->tag = tag_create_random();