From: Mitesh Kanjariya Date: Thu, 15 Mar 2018 10:29:50 +0000 (-0700) Subject: bgpd: change advertise-subnet to a hidden command X-Git-Tag: frr-5.0-dev~35^2~3 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=689b510143d3ee779c78ca4c04153e3fb6df13ae;p=matthieu%2Ffrr.git bgpd: change advertise-subnet to a hidden command We have changed the flow in which we advertise the VNI subnet. We will mark this command as hidden for all future purposes. Signed-off-by: Mitesh Kanjariya --- diff --git a/bgpd/bgp_evpn_vty.c b/bgpd/bgp_evpn_vty.c index 8fd7cb5d14..6cb5c9d8da 100644 --- a/bgpd/bgp_evpn_vty.c +++ b/bgpd/bgp_evpn_vty.c @@ -2692,10 +2692,10 @@ DEFUN (no_bgp_evpn_default_originate, return CMD_SUCCESS; } -DEFUN (bgp_evpn_advertise_vni_subnet, - bgp_evpn_advertise_vni_subnet_cmd, - "advertise-subnet", - "Advertise the subnet corresponding to VNI\n") +DEFUN_HIDDEN (bgp_evpn_advertise_vni_subnet, + bgp_evpn_advertise_vni_subnet_cmd, + "advertise-subnet", + "Advertise the subnet corresponding to VNI\n") { struct bgp *bgp_vrf = NULL; struct bgp *bgp = VTY_GET_CONTEXT(bgp); @@ -2715,11 +2715,11 @@ DEFUN (bgp_evpn_advertise_vni_subnet, return CMD_SUCCESS; } -DEFUN (no_bgp_evpn_advertise_vni_subnet, - no_bgp_evpn_advertise_vni_subnet_cmd, - "no advertise-subnet", - NO_STR - "Advertise All local VNIs\n") +DEFUN_HIDDEN (no_bgp_evpn_advertise_vni_subnet, + no_bgp_evpn_advertise_vni_subnet_cmd, + "no advertise-subnet", + NO_STR + "Advertise All local VNIs\n") { struct bgp *bgp = VTY_GET_CONTEXT(bgp); VTY_DECLVAR_CONTEXT_SUB(bgpevpn, vpn);