summaryrefslogtreecommitdiff
path: root/bgpd/bgp_evpn_mh.c
diff options
context:
space:
mode:
authoranlan_cs <vic.lan@pica8.com>2022-04-13 05:11:18 -0400
committeranlan_cs <vic.lan@pica8.com>2022-04-13 05:17:08 -0400
commitc2b7d418f7f3d34e4fe31794c1d8bd09d0bedf53 (patch)
treea44432b323305613f0ea4d1cbd5a41d89baa817e /bgpd/bgp_evpn_mh.c
parent695c24c3b0fed1e3dc5d0ccd6bc91cc98301ee89 (diff)
bgpd: remove unnecessary l3nhg knob for evpn-mh
Remove unnecessary `install_l3nhg` knob because it has already been controlled by the command: "[no$no] use-es-l3nhg". Signed-off-by: anlan_cs <vic.lan@pica8.com>
Diffstat (limited to 'bgpd/bgp_evpn_mh.c')
-rw-r--r--bgpd/bgp_evpn_mh.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bgpd/bgp_evpn_mh.c b/bgpd/bgp_evpn_mh.c
index f6516d220c..f0350e8524 100644
--- a/bgpd/bgp_evpn_mh.c
+++ b/bgpd/bgp_evpn_mh.c
@@ -2875,7 +2875,7 @@ static void bgp_evpn_l3nhg_zebra_add_v4_or_v6(struct bgp_evpn_es_vrf *es_vrf,
static bool bgp_evpn_l3nhg_zebra_ok(struct bgp_evpn_es_vrf *es_vrf)
{
- if (!bgp_mh_info->host_routes_use_l3nhg && !bgp_mh_info->install_l3nhg)
+ if (!bgp_mh_info->host_routes_use_l3nhg)
return false;
/* Check socket. */
@@ -4948,7 +4948,6 @@ void bgp_evpn_mh_init(void)
/* config knobs - XXX add cli to control it */
bgp_mh_info->ead_evi_adv_for_down_links = true;
bgp_mh_info->consistency_checking = true;
- bgp_mh_info->install_l3nhg = false;
bgp_mh_info->host_routes_use_l3nhg = BGP_EVPN_MH_USE_ES_L3NHG_DEF;
bgp_mh_info->suppress_l3_ecomm_on_inactive_es = true;
bgp_mh_info->bgp_evpn_nh_setup = true;