bgpd: Extend EVPN next hop tracking to type-1 and type-4 routes

NH tracking is already in use for type-1, type-3 and type-5 routes.
This change extends that tracking to EAD and ESR to eliminate the 9s
delay (BGP holdtimer) with ES/L2-NHG update seen when all the uplinks
are shutdown on a remote EVPN PE.

Ticket: #2682896

Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
This commit is contained in:
Anuradha Karuppiah 2021-06-08 14:14:58 -07:00
parent 2ca7780ab5
commit fa46a5cd45

View File

@ -6048,10 +6048,12 @@ bool bgp_evpn_is_prefix_nht_supported(const struct prefix *pfx)
* type-5 routes. It may be tweaked later on for other routes, or * type-5 routes. It may be tweaked later on for other routes, or
* even removed completely when all routes are handled. * even removed completely when all routes are handled.
*/ */
if (pfx && pfx->family == AF_EVPN && if (pfx && pfx->family == AF_EVPN
(evp->prefix.route_type == BGP_EVPN_MAC_IP_ROUTE || && (evp->prefix.route_type == BGP_EVPN_MAC_IP_ROUTE
evp->prefix.route_type == BGP_EVPN_IMET_ROUTE || || evp->prefix.route_type == BGP_EVPN_AD_ROUTE
evp->prefix.route_type == BGP_EVPN_IP_PREFIX_ROUTE)) || evp->prefix.route_type == BGP_EVPN_ES_ROUTE
|| evp->prefix.route_type == BGP_EVPN_IMET_ROUTE
|| evp->prefix.route_type == BGP_EVPN_IP_PREFIX_ROUTE))
return true; return true;
return false; return false;