]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: change some <1-10> to (1-10>
authorDaniel Walton <dwalton@cumulusnetworks.com>
Wed, 28 Sep 2016 05:07:45 +0000 (05:07 +0000)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Wed, 28 Sep 2016 05:07:45 +0000 (05:07 +0000)
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
bgpd/bgp_route.c
bgpd/bgp_routemap.c
bgpd/bgp_vty.c
ripngd/ripngd.c
tools/argv_translator.py

index 712d9fda7600ac3a82ecea42684c096f01a382e7..68a1ca7a3dc77cd0f5ff905693f93a148fbe3259 100644 (file)
@@ -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")
index 230bebe3a1d95ceaf1f251a4ac68f55b594b093b..dff42ec0dd75f81ffebbf9adffa0a0c300e2a396 100644 (file)
@@ -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"
index 9491e094704ee2ce6dec6f49e7536d13fdc68242..a7a3520dad0c59fa8c5007c4a590b98731a91408 100644 (file)
@@ -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
index dc0bfa3647f92ce2b2bf81895f2a626f59715725..c896922bc063db761c7205d3143a6c498e316a93 100644 (file)
@@ -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"
index 8ee4cd8cc719f7c55eb455c8a1cf1973a5a6f777..523954a6f068d130ec0098b459344f78d265b65f 100755 (executable)
@@ -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('['):