From: Chirag Shah Date: Sat, 8 Apr 2023 03:14:25 +0000 (-0700) Subject: bgpd:evpn-mh esi not active suppress ead-es route X-Git-Tag: docker/8.5.1~15^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F13255%2Fhead;p=mirror%2Ffrr.git bgpd:evpn-mh esi not active suppress ead-es route update_type1_routes_for_evi() is called from L3VNI/L2VNI up event, if ESI is not UP then do not advertise EAD-ES Type-1 route. Just like from multiple places EAD-ES route origination checks for its oper status. Ticket:#3413454 Issue:3413454 Signed-off-by: Trey Aspelund Signed-off-by: Chirag Shah (cherry picked from commit c683b7baad01152e66b50d85119e7f0d59e017a3) --- diff --git a/bgpd/bgp_evpn_mh.c b/bgpd/bgp_evpn_mh.c index ffad49d83e..552365959d 100644 --- a/bgpd/bgp_evpn_mh.c +++ b/bgpd/bgp_evpn_mh.c @@ -1082,7 +1082,8 @@ void update_type1_routes_for_evi(struct bgp *bgp, struct bgpevpn *vpn) continue; /* Update EAD-ES */ - bgp_evpn_ead_es_route_update(bgp, es); + if (bgp_evpn_local_es_is_active(es)) + bgp_evpn_ead_es_route_update(bgp, es); /* Update EAD-EVI */ if (CHECK_FLAG(es->flags, BGP_EVPNES_ADV_EVI)) {