summaryrefslogtreecommitdiffstats
path: root/vtysh
diff options
context:
space:
mode:
authorLou Berger <lberger@labn.net>2017-05-23 21:01:09 +0200
committerLou Berger <lberger@labn.net>2017-05-23 21:01:09 +0200
commitb61410ebd5b58175caf5a5fea12d585308790a99 (patch)
treed9b66043a8250d78f00704195380180925b9d8bb /vtysh
parentlib: remove BGP_ENCAP(V6)_NODE (diff)
downloadfrr-b61410ebd5b58175caf5a5fea12d585308790a99.tar.xz
frr-b61410ebd5b58175caf5a5fea12d585308790a99.zip
vtysh: remove BGP_ENCAP(V6)_NODE
Signed-off-by: Lou Berger <lberger@labn.net>
Diffstat (limited to 'vtysh')
-rw-r--r--vtysh/vtysh.c56
1 files changed, 0 insertions, 56 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index 337925c6e..24ac9675e 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -306,7 +306,6 @@ vtysh_execute_func (const char *line, int pager)
if (ret == CMD_SUCCESS || ret == CMD_SUCCESS_DAEMON || ret == CMD_WARNING)
{
if ((saved_node == BGP_VPNV4_NODE || saved_node == BGP_VPNV6_NODE
- || saved_node == BGP_ENCAP_NODE || saved_node == BGP_ENCAPV6_NODE
|| saved_node == BGP_IPV4_NODE
|| saved_node == BGP_IPV6_NODE || saved_node == BGP_IPV4M_NODE
|| saved_node == BGP_IPV6M_NODE || saved_node == BGP_EVPN_NODE)
@@ -927,18 +926,6 @@ static struct cmd_node bgp_vpnv6_node =
"%s(config-router-af)# "
};
-static struct cmd_node bgp_encap_node =
-{
- BGP_ENCAP_NODE,
- "%s(config-router-af)# "
-};
-
-static struct cmd_node bgp_encapv6_node =
-{
- BGP_ENCAPV6_NODE,
- "%s(config-router-af)# "
-};
-
static struct cmd_node bgp_ipv4_node =
{
BGP_IPV4_NODE,
@@ -1138,31 +1125,6 @@ DEFUNSH (VTYSH_BGPD,
}
DEFUNSH (VTYSH_BGPD,
- address_family_encapv4,
- address_family_encapv4_cmd,
- "address-family [ipv4] <encap|encapv4>",
- "Enter Address Family command mode\n"
- "Address Family\n"
- "Address Family\n"
- "Address Family\n")
-{
- vty->node = BGP_ENCAP_NODE;
- return CMD_SUCCESS;
-}
-
-DEFUNSH (VTYSH_BGPD,
- address_family_encapv6,
- address_family_encapv6_cmd,
- "address-family [ipv6] encapv6",
- "Enter Address Family command mode\n"
- "Address Family\n"
- "Address Family\n")
-{
- vty->node = BGP_ENCAPV6_NODE;
- return CMD_SUCCESS;
-}
-
-DEFUNSH (VTYSH_BGPD,
address_family_ipv4,
address_family_ipv4_cmd,
"address-family ipv4 [unicast]",
@@ -1548,8 +1510,6 @@ vtysh_exit (struct vty *vty)
break;
case BGP_VPNV4_NODE:
case BGP_VPNV6_NODE:
- case BGP_ENCAP_NODE:
- case BGP_ENCAPV6_NODE:
case BGP_IPV4_NODE:
case BGP_IPV4M_NODE:
case BGP_IPV6_NODE:
@@ -1614,8 +1574,6 @@ DEFUNSH (VTYSH_BGPD,
|| vty->node == BGP_IPV4M_NODE
|| vty->node == BGP_VPNV4_NODE
|| vty->node == BGP_VPNV6_NODE
- || vty->node == BGP_ENCAP_NODE
- || vty->node == BGP_ENCAPV6_NODE
|| vty->node == BGP_IPV6_NODE
|| vty->node == BGP_IPV6M_NODE)
vty->node = BGP_NODE;
@@ -3140,8 +3098,6 @@ vtysh_init_vty (void)
install_node (&zebra_node, NULL);
install_node (&bgp_vpnv4_node, NULL);
install_node (&bgp_vpnv6_node, NULL);
- install_node (&bgp_encap_node, NULL);
- install_node (&bgp_encapv6_node, NULL);
install_node (&bgp_ipv4_node, NULL);
install_node (&bgp_ipv4m_node, NULL);
install_node (&bgp_ipv6_node, NULL);
@@ -3178,8 +3134,6 @@ vtysh_init_vty (void)
vtysh_install_default (ZEBRA_NODE);
vtysh_install_default (BGP_VPNV4_NODE);
vtysh_install_default (BGP_VPNV6_NODE);
- vtysh_install_default (BGP_ENCAP_NODE);
- vtysh_install_default (BGP_ENCAPV6_NODE);
vtysh_install_default (BGP_IPV4_NODE);
vtysh_install_default (BGP_IPV4M_NODE);
vtysh_install_default (BGP_IPV6_NODE);
@@ -3245,10 +3199,6 @@ vtysh_init_vty (void)
install_element (BGP_VPNV4_NODE, &vtysh_quit_bgpd_cmd);
install_element (BGP_VPNV6_NODE, &vtysh_exit_bgpd_cmd);
install_element (BGP_VPNV6_NODE, &vtysh_quit_bgpd_cmd);
- install_element (BGP_ENCAP_NODE, &vtysh_exit_bgpd_cmd);
- install_element (BGP_ENCAP_NODE, &vtysh_quit_bgpd_cmd);
- install_element (BGP_ENCAPV6_NODE, &vtysh_exit_bgpd_cmd);
- install_element (BGP_ENCAPV6_NODE, &vtysh_quit_bgpd_cmd);
install_element (BGP_IPV4_NODE, &vtysh_exit_bgpd_cmd);
install_element (BGP_IPV4_NODE, &vtysh_quit_bgpd_cmd);
install_element (BGP_IPV4M_NODE, &vtysh_exit_bgpd_cmd);
@@ -3298,8 +3248,6 @@ vtysh_init_vty (void)
install_element (BGP_IPV4M_NODE, &vtysh_end_all_cmd);
install_element (BGP_VPNV4_NODE, &vtysh_end_all_cmd);
install_element (BGP_VPNV6_NODE, &vtysh_end_all_cmd);
- install_element (BGP_ENCAP_NODE, &vtysh_end_all_cmd);
- install_element (BGP_ENCAPV6_NODE, &vtysh_end_all_cmd);
install_element (BGP_IPV6_NODE, &vtysh_end_all_cmd);
install_element (BGP_IPV6M_NODE, &vtysh_end_all_cmd);
install_element (BGP_VRF_POLICY_NODE, &vtysh_end_all_cmd);
@@ -3349,8 +3297,6 @@ vtysh_init_vty (void)
install_element (CONFIG_NODE, &router_bgp_cmd);
install_element (BGP_NODE, &address_family_vpnv4_cmd);
install_element (BGP_NODE, &address_family_vpnv6_cmd);
- install_element (BGP_NODE, &address_family_encapv4_cmd);
- install_element (BGP_NODE, &address_family_encapv6_cmd);
#if defined(ENABLE_BGP_VNC)
install_element (BGP_NODE, &vnc_vrf_policy_cmd);
install_element (BGP_NODE, &vnc_defaults_cmd);
@@ -3366,8 +3312,6 @@ vtysh_init_vty (void)
install_element (BGP_NODE, &address_family_evpn_cmd);
install_element (BGP_VPNV4_NODE, &exit_address_family_cmd);
install_element (BGP_VPNV6_NODE, &exit_address_family_cmd);
- install_element (BGP_ENCAP_NODE, &exit_address_family_cmd);
- install_element (BGP_ENCAPV6_NODE, &exit_address_family_cmd);
install_element (BGP_IPV4_NODE, &exit_address_family_cmd);
install_element (BGP_IPV4M_NODE, &exit_address_family_cmd);
install_element (BGP_IPV6_NODE, &exit_address_family_cmd);