diff options
author | Sri Mohana Singamsetty <srimohans@gmail.com> | 2021-09-16 23:52:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-16 23:52:45 +0200 |
commit | 7f906926c77f59d07f45967908f62482a6d2c571 (patch) | |
tree | b452d3c3c68197a00d3ba812b943e04ee77026e3 /bgpd | |
parent | Merge pull request #9619 from AnuradhaKaruppiah/lttng-updates (diff) | |
parent | bgpd: Extend EVPN next hop tracking to type-1 and type-4 routes (diff) | |
download | frr-7f906926c77f59d07f45967908f62482a6d2c571.tar.xz frr-7f906926c77f59d07f45967908f62482a6d2c571.zip |
Merge pull request #9235 from AnuradhaKaruppiah/nht_mh
bgpd: Extend EVPN next hop tracking to type-1 and type-4 routes
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/bgp_evpn.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bgpd/bgp_evpn.c b/bgpd/bgp_evpn.c index cbd29c146..6248ad927 100644 --- a/bgpd/bgp_evpn.c +++ b/bgpd/bgp_evpn.c @@ -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 * even removed completely when all routes are handled. */ - if (pfx && pfx->family == AF_EVPN && - (evp->prefix.route_type == BGP_EVPN_MAC_IP_ROUTE || - evp->prefix.route_type == BGP_EVPN_IMET_ROUTE || - evp->prefix.route_type == BGP_EVPN_IP_PREFIX_ROUTE)) + if (pfx && pfx->family == AF_EVPN + && (evp->prefix.route_type == BGP_EVPN_MAC_IP_ROUTE + || evp->prefix.route_type == BGP_EVPN_AD_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 false; |