From 43853c9c0474ce12d5b7d8a0bca6fe6d8098db1f Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Thu, 8 Apr 2021 19:22:38 -0400 Subject: [PATCH] bgpd: disable NHGs with D-VNI Disable the use of NHGs with D-VNI for now. We don't support them. Signed-off-by: Stephen Worley --- bgpd/bgp_evpn_mh.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bgpd/bgp_evpn_mh.c b/bgpd/bgp_evpn_mh.c index 7ad0816631..bd32b4772b 100644 --- a/bgpd/bgp_evpn_mh.c +++ b/bgpd/bgp_evpn_mh.c @@ -3184,6 +3184,10 @@ bool bgp_evpn_path_es_use_nhg(struct bgp *bgp_vrf, struct bgp_path_info *pi, if (!memcmp(esi, zero_esi, sizeof(*esi))) return false; + /* we don't support NHG for d-vni yet */ + if (bgp_evpn_mpath_has_dvni(bgp_vrf, pi)) + return false; + bgp_evpn_es_vrf_use_nhg(bgp_vrf, esi, &use_l3nhg, &is_l3nhg_active, &es_vrf);