summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>2018-03-15 03:29:50 -0700
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-04-12 09:05:28 -0400
commit689b510143d3ee779c78ca4c04153e3fb6df13ae (patch)
treec3ede25d5e55304a362b0b63d2b30fcc5bb0ffdf
parent0b984829be4b06ddd565cda2d8c1fd99bce540c1 (diff)
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 <mitesh@cumulusnetworks.com>
-rw-r--r--bgpd/bgp_evpn_vty.c18
1 files changed, 9 insertions, 9 deletions
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);