summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_route.c2
-rw-r--r--bgpd/bgp_routemap.c2
-rw-r--r--bgpd/bgp_vty.c8
-rw-r--r--ripngd/ripngd.c2
-rwxr-xr-xtools/argv_translator.py2
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 <A.B.C.D|X:X::X:X|WORD> maximum-prefix [<1-4294967295> [<1-100>] [restart <1-65535>] [warning-only]]",
+ "no neighbor <A.B.C.D|X:X::X:X|WORD> 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 <ospf|table> (1-65535) [metric <0-4294967295>] [route-map WORD]",
+ "no redistribute <ospf|table> (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 <kernel|connected|static|rip|ospf|isis|pim|table> [metric <0-4294967295>] [route-map WORD]",
+ "no redistribute <kernel|connected|static|rip|ospf|isis|pim|table> [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 <kernel|connected|static|ripng|ospf6|isis|table> [metric <0-4294967295>] [route-map WORD]",
+ "no redistribute <kernel|connected|static|ripng|ospf6|isis|table> [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('['):