mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-11-03 06:28:33 +00:00
Merge pull request #3636 from opensourcerouting/defpy-text-tokens
python: make DEFPY provide the text token of fixed parameters
This commit is contained in:
commit
eedb898796
@ -41,7 +41,7 @@ class RenderHandler(object):
|
||||
class StringHandler(RenderHandler):
|
||||
argtype = 'const char *'
|
||||
decl = Template('const char *$varname = NULL;')
|
||||
code = Template('$varname = argv[_i]->arg;')
|
||||
code = Template('$varname = (argv[_i]->type == WORD_TKN) ? argv[_i]->text : argv[_i]->arg;')
|
||||
drop_str = True
|
||||
canfail = False
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user