]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd:evpn-mh esi not active suppress ead-es route 13255/head
authorChirag Shah <chirag@nvidia.com>
Sat, 8 Apr 2023 03:14:25 +0000 (20:14 -0700)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 11 Apr 2023 11:34:59 +0000 (11:34 +0000)
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 <taspelund@nvidia.com>
Signed-off-by: Chirag Shah <chirag@nvidia.com>
(cherry picked from commit c683b7baad01152e66b50d85119e7f0d59e017a3)

bgpd/bgp_evpn_mh.c

index ffad49d83e14a8f467236d0e2d0f5a347a2af749..552365959dac78d48d44bc591beee6c4dfd254b6 100644 (file)
@@ -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)) {