From 8de197ce04e80b67054dfeae7ee4892d0173fd0f Mon Sep 17 00:00:00 2001 From: Daniel Walton Date: Sat, 1 Oct 2016 05:45:58 +0000 Subject: [PATCH] bgpd: fix << in command strings Signed-off-by: Daniel Walton --- bgpd/bgp_route.c | 18 +++++++++++++----- bgpd/bgp_vty.c | 12 +++++++++--- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index bb1849e4b4..832a437790 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -7732,14 +7732,17 @@ bgp_show_route (struct vty *vty, const char *view_name, const char *ip_str, /* BGP route print out function. */ DEFUN (show_ip_bgp_ipv4, show_ip_bgp_ipv4_cmd, - "show [ip] bgp [ WORD] [< [unicast]|ipv4 multicast>] [|regexp .LINE|route-map WORD|prefix-list WORD|filter-list WORD|community [exact-match]|community-list <(1-500)|WORD> [exact-match]|A.B.C.D/M longer-prefixes|X:X::X:X/M longer-prefixes>] [json]", + "show [ip] bgp [ WORD] [] [|regexp .LINE|route-map WORD|prefix-list WORD|filter-list WORD|community [exact-match]|community-list <(1-500)|WORD> [exact-match]|A.B.C.D/M longer-prefixes|X:X::X:X/M longer-prefixes>] [json]", SHOW_STR IP_STR BGP_STR BGP_INSTANCE_HELP_STR "Address family\n" + "Address Family modifier\n" "Address family\n" + "Address Family modifier\n" "Address family\n" + "Address Family modifier\n" "Address family\n" "Address Family modifier\n" "Address family\n" @@ -7857,13 +7860,15 @@ DEFUN (show_ip_bgp_ipv4, DEFUN (show_ip_bgp_route, show_ip_bgp_route_cmd, - "show [ip] bgp [ WORD] [< [unicast]|ipv4 multicast|vpnv4 unicast [rd ASN:nn_or_IP-address:nn]>] [] [json]", + "show [ip] bgp [ WORD] [] [] [json]", SHOW_STR IP_STR BGP_STR BGP_INSTANCE_HELP_STR "Address family\n" + "Address Family modifier\n" "Address family\n" + "Address Family modifier\n" "Address family\n" "Address Family modifier\n" "Address family\n" @@ -7923,7 +7928,7 @@ DEFUN (show_ip_bgp_route, DEFUN (show_ip_bgp_instance_all, show_ip_bgp_instance_all_cmd, - "show [ip] bgp all [< [unicast]|ipv4 multicast|vpnv4 unicast>] [json]", + "show [ip] bgp all [] [json]", SHOW_STR IP_STR BGP_STR @@ -9243,14 +9248,17 @@ peer_adj_routes (struct vty *vty, struct peer *peer, afi_t afi, safi_t safi, DEFUN (show_ip_bgp_instance_neighbor_advertised_route, show_ip_bgp_instance_neighbor_advertised_route_cmd, - "show [ip] bgp [] WORD [< [unicast]|ipv4 multicast>] neighbors [] [json]", + "show [ip] bgp [] WORD [] neighbors [] [json]", SHOW_STR IP_STR BGP_STR BGP_INSTANCE_HELP_STR "Address family\n" + "Address Family modifier\n" "Address family\n" + "Address Family modifier\n" "Address family\n" + "Address Family modifier\n" "Address family\n" "Address Family modifier\n" "Address family\n" @@ -9416,7 +9424,7 @@ bgp_show_neighbor_route (struct vty *vty, struct peer *peer, afi_t afi, DEFUN (show_ip_bgp_neighbor_routes, show_ip_bgp_neighbor_routes_cmd, - "show [ip] bgp [ WORD] [< [unicast]|ipv4 multicast>] neighbors [json]", + "show [ip] bgp [ WORD] [] neighbors [json]", SHOW_STR IP_STR BGP_STR diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index e188de6e76..4f04a97347 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -5963,7 +5963,7 @@ bgp_get_argv_afi_safi (int argc, struct cmd_token **argv, /* one clear bgp command to rule them all */ DEFUN (clear_ip_bgp_all, clear_ip_bgp_all_cmd, - "clear [ip] bgp [ WORD] <*|A.B.C.D|X:X::X:X|WORD|(1-4294967295)|external|peer-group WORD> [< [unicast]|ipv4 multicast>] []|in [prefix-filter]|out>]", + "clear [ip] bgp [ WORD] <*|A.B.C.D|X:X::X:X|WORD|(1-4294967295)|external|peer-group WORD> [] []|in [prefix-filter]|out>]", CLEAR_STR IP_STR BGP_STR @@ -5977,8 +5977,11 @@ DEFUN (clear_ip_bgp_all, "Clear all members of peer-group\n" "BGP peer-group name\n" "Address family\n" + "Address Family modifier\n" "Address family\n" + "Address Family modifier\n" "Address family\n" + "Address Family modifier\n" "Address family\n" "Address Family modifier\n" "Address family\n" @@ -6830,14 +6833,17 @@ bgp_show_summary_vty (struct vty *vty, const char *name, /* `show ip bgp summary' commands. */ DEFUN (show_ip_bgp_summary, show_ip_bgp_summary_cmd, - "show [ip] bgp [ WORD] [< [unicast]|ipv4 multicast>] summary [json]", + "show [ip] bgp [ WORD] [] summary [json]", SHOW_STR IP_STR BGP_STR BGP_INSTANCE_HELP_STR "Address family\n" + "Address Family modifier\n" "Address family\n" + "Address Family modifier\n" "Address family\n" + "Address Family modifier\n" "Address family\n" "Address Family modifier\n" "Address family\n" @@ -8874,7 +8880,7 @@ bgp_show_update_groups(struct vty *vty, const char *name, DEFUN (show_ip_bgp_updgrps, show_ip_bgp_updgrps_cmd, - "show [ip] bgp [ WORD] [< [unicast]|ipv4 multicast>] update-groups [SUBGROUP-ID]", + "show [ip] bgp [ WORD] [] update-groups [SUBGROUP-ID]", SHOW_STR IP_STR BGP_STR -- 2.39.5