From 7fa12b130fd48aac63fccedb99411fcdeb11ce51 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Thu, 17 Nov 2016 21:33:04 +0000 Subject: [PATCH] bgpd: Add missing [ip] qualifiers to a couple BGP commands Missed these when I was unifying the `show bgp` and `show ip bgp` command trees. Signed-off-by: Quentin Young --- bgpd/bgp_vty.c | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index 148d8f19a0..517684a571 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -6066,7 +6066,7 @@ DEFUN (show_bgp_vrfs, DEFUN (show_bgp_memory, show_bgp_memory_cmd, - "show bgp memory", + "show [ip] bgp memory", SHOW_STR BGP_STR "Global BGP memory statistics\n") @@ -8565,7 +8565,7 @@ DEFUN (show_ip_bgp_neighbors, same.*/ DEFUN (show_ip_bgp_paths, show_ip_bgp_paths_cmd, - "show ip bgp paths", + "show [ip] bgp [] paths", SHOW_STR IP_STR BGP_STR @@ -8576,23 +8576,6 @@ DEFUN (show_ip_bgp_paths, return CMD_SUCCESS; } -DEFUN (show_ip_bgp_ipv4_paths, - show_ip_bgp_ipv4_paths_cmd, - "show ip bgp ipv4 paths", - SHOW_STR - IP_STR - BGP_STR - "Address Family\n" - "Address Family modifier\n" - "Address Family modifier\n" - "Path information\n") -{ - vty_out (vty, "Address Refcnt Path\r\n"); - aspath_print_all_vty (vty); - - return CMD_SUCCESS; -} - #include "hash.h" static void @@ -10738,7 +10721,6 @@ bgp_vty_init (void) /* "show ip bgp paths" commands. */ install_element (VIEW_NODE, &show_ip_bgp_paths_cmd); - install_element (VIEW_NODE, &show_ip_bgp_ipv4_paths_cmd); /* "show ip bgp community" commands. */ install_element (VIEW_NODE, &show_ip_bgp_community_info_cmd); -- 2.39.5