diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-03-29 13:01:06 -0400 | 
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-04-10 12:19:03 -0400 | 
| commit | e31f4dbec66d2ca74fb11e3d5e6506e7a33b508e (patch) | |
| tree | 04bf40f3d4dbcd0da9cb306524e40f121e2e7275 /python | |
| parent | e1a8a773a2ae15095d49af647f7baabbddd655a2 (diff) | |
lib, python: DEFPY_ATTR, DEFPY_HIDDEN
Add support for element attributes in DEFPY macros.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'python')
| -rw-r--r-- | python/clidef.py | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/python/clidef.py b/python/clidef.py index fe01a89162..2e55909647 100644 --- a/python/clidef.py +++ b/python/clidef.py @@ -186,7 +186,7 @@ def process_file(fn, ofd, dumpfd, all_defun):      filedata = clippy.parse(fn)      for entry in filedata['data']: -        if entry['type'] == 'DEFPY' or (all_defun and entry['type'].startswith('DEFUN')): +        if entry['type'].startswith('DEFPY') or (all_defun and entry['type'].startswith('DEFUN')):              cmddef = entry['args'][2]              cmddef = ''.join([i[1:-1] for i in cmddef])  | 
