From ecffa493c0c2a3ac9fe96a5ac202f48da9b44d21 Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Wed, 13 Sep 2017 15:16:12 -0300 Subject: zebra: unify the ipv4/ipv6 'show ip route' commands - part 1/2 Note: I had to remove one assert in clidef.py in order to fix a build error when using a preprocessor string (FRR_IP_REDIST_STR_ZEBRA) inside a DEFPY command. This should be revisited later. Signed-off-by: Renato Westphal --- python/clidef.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'python/clidef.py') diff --git a/python/clidef.py b/python/clidef.py index 6a69986323..fe01a89162 100644 --- a/python/clidef.py +++ b/python/clidef.py @@ -188,8 +188,6 @@ def process_file(fn, ofd, dumpfd, all_defun): for entry in filedata['data']: if entry['type'] == 'DEFPY' or (all_defun and entry['type'].startswith('DEFUN')): cmddef = entry['args'][2] - for i in cmddef: - assert i.startswith('"') and i.endswith('"') cmddef = ''.join([i[1:-1] for i in cmddef]) graph = clippy.Graph(cmddef) -- cgit v1.2.3