From d04c479dd9ff0d057c751a2f802bd3e5bb3ae8ad Mon Sep 17 00:00:00 2001 From: Daniel Walton Date: Wed, 28 Sep 2016 05:07:45 +0000 Subject: [PATCH] bgpd: change some <1-10> to (1-10> Signed-off-by: Daniel Walton --- bgpd/bgp_route.c | 2 +- bgpd/bgp_routemap.c | 2 +- bgpd/bgp_vty.c | 8 ++++---- ripngd/ripngd.c | 2 +- tools/argv_translator.py | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 712d9fda76..68a1ca7a3d 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -9817,7 +9817,7 @@ DEFUN (bgp_damp_set, DEFUN (bgp_damp_unset, bgp_damp_unset_cmd, - "no bgp dampening [<1-45> [<1-20000> <1-20000> <1-255>]]", + "no bgp dampening [(1-45) [(1-20000) (1-20000) (1-255)]]", NO_STR "BGP Specific commands\n" "Enable route-flap dampening\n") diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c index 230bebe3a1..dff42ec0dd 100644 --- a/bgpd/bgp_routemap.c +++ b/bgpd/bgp_routemap.c @@ -3711,7 +3711,7 @@ DEFUN (no_set_weight, DEFUN (set_aspath_prepend, set_aspath_prepend_cmd, - "set as-path prepend <(1-4294967295)...|last-as <1-10>", + "set as-path prepend <(1-4294967295)...|last-as (1-10)>", SET_STR "Transform BGP AS_PATH attribute\n" "Prepend to the as-path\n" diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index 9491e09470..a7a3520dad 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -5493,7 +5493,7 @@ DEFUN (neighbor_maximum_prefix_threshold_restart, DEFUN (no_neighbor_maximum_prefix, no_neighbor_maximum_prefix_cmd, - "no neighbor maximum-prefix [<1-4294967295> [<1-100>] [restart <1-65535>] [warning-only]]", + "no neighbor maximum-prefix [(1-4294967295) [(1-100)] [restart (1-65535)] [warning-only]]", NO_STR NEIGHBOR_STR NEIGHBOR_ADDR_STR2 @@ -9746,7 +9746,7 @@ DEFUN (bgp_redistribute_ipv4_ospf_metric_rmap, DEFUN (no_bgp_redistribute_ipv4_ospf, no_bgp_redistribute_ipv4_ospf_cmd, - "no redistribute (1-65535) [metric <0-4294967295>] [route-map WORD]", + "no redistribute (1-65535) [metric (0-4294967295)] [route-map WORD]", NO_STR "Redistribute information from another routing protocol\n" "Open Shortest Path First (OSPFv2)\n" @@ -9773,7 +9773,7 @@ DEFUN (no_bgp_redistribute_ipv4_ospf, DEFUN (no_bgp_redistribute_ipv4, no_bgp_redistribute_ipv4_cmd, - "no redistribute [metric <0-4294967295>] [route-map WORD]", + "no redistribute [metric (0-4294967295)] [route-map WORD]", NO_STR "Redistribute information from another routing protocol\n" QUAGGA_IP_REDIST_HELP_STR_BGPD @@ -9931,7 +9931,7 @@ DEFUN (bgp_redistribute_ipv6_metric_rmap, DEFUN (no_bgp_redistribute_ipv6, no_bgp_redistribute_ipv6_cmd, - "no redistribute [metric <0-4294967295>] [route-map WORD]", + "no redistribute [metric (0-4294967295)] [route-map WORD]", NO_STR "Redistribute information from another routing protocol\n" QUAGGA_IP6_REDIST_HELP_STR_BGPD diff --git a/ripngd/ripngd.c b/ripngd/ripngd.c index dc0bfa3647..c896922bc0 100644 --- a/ripngd/ripngd.c +++ b/ripngd/ripngd.c @@ -2556,7 +2556,7 @@ DEFUN (ripng_timers, DEFUN (no_ripng_timers, no_ripng_timers_cmd, - "no timers basic [(0-65535) (0-65535) (0-65535)", + "no timers basic [(0-65535) (0-65535) (0-65535)]", NO_STR "RIPng timers setup\n" "Basic timer\n" diff --git a/tools/argv_translator.py b/tools/argv_translator.py index 8ee4cd8cc7..523954a6f0 100755 --- a/tools/argv_translator.py +++ b/tools/argv_translator.py @@ -38,7 +38,7 @@ def token_is_variable(line_number, token): return True if token.startswith('('): - assert token.endswith(')'), "%d: token %s should end with )" % (line_number, token) + assert token.endswith(')') or token.endswith(')...'), "%d: token %s should end with )" % (line_number, token) return True if token.startswith('['): -- 2.39.5