mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-25 20:38:34 +00:00
Merge pull request #13312 from chiragshah6/fdev2
zebra: EVPN MH ES-peer Sync MAC installed as inactive
This commit is contained in:
commit
73f6fec1cf
@ -1685,6 +1685,7 @@ struct zebra_mac *zebra_evpn_proc_sync_mac_update(struct zebra_evpn *zevpn,
|
|||||||
struct zebra_mac *mac;
|
struct zebra_mac *mac;
|
||||||
bool inform_bgp = false;
|
bool inform_bgp = false;
|
||||||
bool inform_dataplane = false;
|
bool inform_dataplane = false;
|
||||||
|
bool mac_inactive = false;
|
||||||
bool seq_change = false;
|
bool seq_change = false;
|
||||||
bool es_change = false;
|
bool es_change = false;
|
||||||
uint32_t tmp_seq;
|
uint32_t tmp_seq;
|
||||||
@ -1701,6 +1702,7 @@ struct zebra_mac *zebra_evpn_proc_sync_mac_update(struct zebra_evpn *zevpn,
|
|||||||
*/
|
*/
|
||||||
inform_bgp = true;
|
inform_bgp = true;
|
||||||
inform_dataplane = true;
|
inform_dataplane = true;
|
||||||
|
mac_inactive = true;
|
||||||
|
|
||||||
/* create the MAC and associate it with the dest ES */
|
/* create the MAC and associate it with the dest ES */
|
||||||
mac = zebra_evpn_mac_add(zevpn, macaddr);
|
mac = zebra_evpn_mac_add(zevpn, macaddr);
|
||||||
@ -1812,6 +1814,7 @@ struct zebra_mac *zebra_evpn_proc_sync_mac_update(struct zebra_evpn *zevpn,
|
|||||||
if (es_change) {
|
if (es_change) {
|
||||||
inform_bgp = true;
|
inform_bgp = true;
|
||||||
inform_dataplane = true;
|
inform_dataplane = true;
|
||||||
|
mac_inactive = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if peer-flag is being set notify dataplane that the
|
/* if peer-flag is being set notify dataplane that the
|
||||||
@ -1867,9 +1870,9 @@ struct zebra_mac *zebra_evpn_proc_sync_mac_update(struct zebra_evpn *zevpn,
|
|||||||
* the activity as we are yet to establish activity
|
* the activity as we are yet to establish activity
|
||||||
* locally
|
* locally
|
||||||
*/
|
*/
|
||||||
zebra_evpn_sync_mac_dp_install(mac, false /* set_inactive */,
|
zebra_evpn_sync_mac_dp_install(
|
||||||
false /* force_clear_static */,
|
mac, mac_inactive /* set_inactive */,
|
||||||
__func__);
|
false /* force_clear_static */, __func__);
|
||||||
}
|
}
|
||||||
|
|
||||||
return mac;
|
return mac;
|
||||||
|
Loading…
Reference in New Issue
Block a user