diff options
author | Daniel Walton <dwalton@cumulusnetworks.com> | 2016-09-22 20:16:18 +0200 |
---|---|---|
committer | Daniel Walton <dwalton@cumulusnetworks.com> | 2016-09-22 20:16:18 +0200 |
commit | afec25d91119fdc47e2086bb20158afdb8a23337 (patch) | |
tree | ef9b684f597877246aa024fb892256e1ffb11b62 /tools | |
parent | bgpd: argv update for all but bgp_vty.c (diff) | |
download | frr-afec25d91119fdc47e2086bb20158afdb8a23337.tar.xz frr-afec25d91119fdc47e2086bb20158afdb8a23337.zip |
bgpd: more bgp_vty.c parser conversion
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/argv_translator.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/argv_translator.py b/tools/argv_translator.py index bf892f872..f99316d90 100755 --- a/tools/argv_translator.py +++ b/tools/argv_translator.py @@ -29,6 +29,7 @@ def token_is_variable(line_number, token): if token in ('WORD', '.LINE', # where is this defined? + 'LINE', 'PATH', 'A.B.C.D', 'A.B.C.D/M', @@ -149,7 +150,7 @@ def update_argvs(filename): cmd_string = None argv_translator = {} - elif 'argv[' in new_line: + elif 'argv[' in new_line and '->arg' not in new_line: for index in reversed(argv_translator.keys()): old_argv = "argv[%d]" % index new_argv = "argv[%d]->arg" % argv_translator[index] |