summaryrefslogtreecommitdiffstats
path: root/vtysh/vtysh.c
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2015-11-03 19:59:57 +0100
committerDaniel Walton <dwalton@cumulusnetworks.com>2015-11-03 19:59:57 +0100
commit2385a8767a13c07c51e78dbc00239eade99e0fb6 (patch)
tree443b2b197dda88ae4b11b24c313e7d513dae8fe2 /vtysh/vtysh.c
parentEnable OSPF "log-adjacency-changes" by default (diff)
downloadfrr-2385a8767a13c07c51e78dbc00239eade99e0fb6.tar.xz
frr-2385a8767a13c07c51e78dbc00239eade99e0fb6.zip
BGP: vtysh should accept just "router bgp" if the AS is already defined
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Ticket: CM-5674
Diffstat (limited to '')
-rw-r--r--vtysh/vtysh.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index 58014c2e0..5786c68c9 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -1043,6 +1043,13 @@ DEFUNSH (VTYSH_BGPD,
ALIAS_SH (VTYSH_BGPD,
router_bgp,
+ router_bgp_asn_cmd,
+ "router bgp",
+ ROUTER_STR
+ BGP_STR)
+
+ALIAS_SH (VTYSH_BGPD,
+ router_bgp,
router_bgp_view_cmd,
"router bgp " CMD_AS_RANGE " view WORD",
ROUTER_STR
@@ -2817,6 +2824,7 @@ vtysh_init_vty (void)
install_element (CONFIG_NODE, &router_babel_cmd);
install_element (CONFIG_NODE, &router_isis_cmd);
install_element (CONFIG_NODE, &router_bgp_cmd);
+ install_element (CONFIG_NODE, &router_bgp_asn_cmd);
install_element (CONFIG_NODE, &router_bgp_view_cmd);
install_element (BGP_NODE, &address_family_vpnv4_cmd);
install_element (BGP_NODE, &address_family_vpnv4_unicast_cmd);