mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 11:25:41 +00:00
bgpd: more bgp_vty.c parser conversion
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
This commit is contained in:
parent
4dcadbefd0
commit
afec25d911
977
bgpd/bgp_vty.c
977
bgpd/bgp_vty.c
File diff suppressed because it is too large
Load Diff
@ -29,6 +29,7 @@ def token_is_variable(line_number, token):
|
|||||||
|
|
||||||
if token in ('WORD',
|
if token in ('WORD',
|
||||||
'.LINE', # where is this defined?
|
'.LINE', # where is this defined?
|
||||||
|
'LINE',
|
||||||
'PATH',
|
'PATH',
|
||||||
'A.B.C.D',
|
'A.B.C.D',
|
||||||
'A.B.C.D/M',
|
'A.B.C.D/M',
|
||||||
@ -149,7 +150,7 @@ def update_argvs(filename):
|
|||||||
cmd_string = None
|
cmd_string = None
|
||||||
argv_translator = {}
|
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()):
|
for index in reversed(argv_translator.keys()):
|
||||||
old_argv = "argv[%d]" % index
|
old_argv = "argv[%d]" % index
|
||||||
new_argv = "argv[%d]->arg" % argv_translator[index]
|
new_argv = "argv[%d]->arg" % argv_translator[index]
|
||||||
|
Loading…
Reference in New Issue
Block a user