summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-03-29 19:01:06 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-04-10 18:19:03 +0200
commite31f4dbec66d2ca74fb11e3d5e6506e7a33b508e (patch)
tree04bf40f3d4dbcd0da9cb306524e40f121e2e7275 /python
parentMerge pull request #1883 from LabNConsulting/working/master/community-documen... (diff)
downloadfrr-e31f4dbec66d2ca74fb11e3d5e6506e7a33b508e.tar.xz
frr-e31f4dbec66d2ca74fb11e3d5e6506e7a33b508e.zip
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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/clidef.py b/python/clidef.py
index fe01a8916..2e5590964 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])