]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: change advertise-subnet to a hidden command
authorMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>
Thu, 15 Mar 2018 10:29:50 +0000 (03:29 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 12 Apr 2018 13:05:28 +0000 (09:05 -0400)
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>
bgpd/bgp_evpn_vty.c

index 8fd7cb5d14c1b25dc29b38f75d18579e08058b2d..6cb5c9d8da6eab2ad9816f1cf6a3272d205a0601 100644 (file)
@@ -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);