The attached status of slaves should be updated when certain global
configuration settings change, or when a slave is destroyed.
lacp->name = xstrdup(s->name);
}
- memcpy(lacp->sys_id, s->id, ETH_ADDR_LEN);
- lacp->sys_priority = s->priority;
+ if (!eth_addr_equals(lacp->sys_id, s->id)
+ || lacp->sys_priority != s->priority) {
+ memcpy(lacp->sys_id, s->id, ETH_ADDR_LEN);
+ lacp->sys_priority = s->priority;
+ lacp->update = true;
+ }
+
lacp->active = s->active;
lacp->fast = s->fast;
}
if (slave) {
slave_destroy(slave);
+ lacp->update = true;
}
}