summaryrefslogtreecommitdiffstats
path: root/vtysh/vtysh.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2016-11-09 08:24:51 +0100
committerQuentin Young <qlyoung@cumulusnetworks.com>2016-11-09 08:24:51 +0100
commit4c4ff4c13693ff2beb18931577423edcdc4a0403 (patch)
tree0e65db273e6b31ce592f417ba83bb011b758c2a6 /vtysh/vtysh.c
parentbgpd: actually set maxpaths (diff)
downloadfrr-4c4ff4c13693ff2beb18931577423edcdc4a0403.tar.xz
frr-4c4ff4c13693ff2beb18931577423edcdc4a0403.zip
bgpd, vtysh: Fix failing bgp cli
* bgp bestpath as-path multipath-relax * address-family encap * address-family encapv4 Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to '')
-rw-r--r--vtysh/vtysh.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index e4c3ce76f..36ec565ec 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -1116,21 +1116,11 @@ DEFUNSH (VTYSH_BGPD,
}
DEFUNSH (VTYSH_BGPD,
- address_family_encap,
- address_family_encap_cmd,
- "address-family encap",
- "Enter Address Family command mode\n"
- "Address Family\n")
-{
- vty->node = BGP_ENCAP_NODE;
- return CMD_SUCCESS;
-}
-
-DEFUNSH (VTYSH_BGPD,
address_family_encapv4,
address_family_encapv4_cmd,
- "address-family encapv4",
+ "address-family <encap|encapv4>",
"Enter Address Family command mode\n"
+ "Address Family\n"
"Address Family\n")
{
vty->node = BGP_ENCAP_NODE;
@@ -3220,7 +3210,7 @@ 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_encap_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_defaults_cmd);