summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2017-09-13 15:16:12 -0300
committerRenato Westphal <renato@opensourcerouting.org>2017-10-24 10:12:40 -0200
commitecffa493c0c2a3ac9fe96a5ac202f48da9b44d21 (patch)
tree65e850004c74ceeb3feb94b8a22a2b54cd0ee93c /python
parent72806e2d23228892993eacdf9415f29eadb52f55 (diff)
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 <renato@opensourcerouting.org>
Diffstat (limited to 'python')
-rw-r--r--python/clidef.py2
1 files changed, 0 insertions, 2 deletions
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)