bgpd: more bgp_vty.c parser conversion

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
This commit is contained in:
Daniel Walton 2016-09-22 18:16:18 +00:00
parent 4dcadbefd0
commit afec25d911
2 changed files with 487 additions and 493 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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]