struct zebra_mac *mac;
bool inform_bgp = false;
bool inform_dataplane = false;
+ bool mac_inactive = false;
bool seq_change = false;
bool es_change = false;
uint32_t tmp_seq;
*/
inform_bgp = true;
inform_dataplane = true;
+ mac_inactive = true;
/* create the MAC and associate it with the dest ES */
mac = zebra_evpn_mac_add(zevpn, macaddr);
if (es_change) {
inform_bgp = true;
inform_dataplane = true;
+ mac_inactive = true;
}
/* if peer-flag is being set notify dataplane that the
* the activity as we are yet to establish activity
* locally
*/
- zebra_evpn_sync_mac_dp_install(mac, false /* set_inactive */,
- false /* force_clear_static */,
- __func__);
+ zebra_evpn_sync_mac_dp_install(
+ mac, mac_inactive /* set_inactive */,
+ false /* force_clear_static */, __func__);
}
return mac;