mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 11:30:30 +00:00
Merge pull request #1174 from opensourcerouting/show_route_defpy
Refactor the 'show ip route' commands using DEFPY
This commit is contained in:
commit
e2e7a81d58
@ -51,6 +51,7 @@ enum { IFLA_VRF_UNSPEC, IFLA_VRF_TABLE, __IFLA_VRF_MAX };
|
||||
*/
|
||||
#define VRF_CMD_HELP_STR "Specify the VRF\nThe VRF name\n"
|
||||
#define VRF_ALL_CMD_HELP_STR "Specify the VRF\nAll VRFs\n"
|
||||
#define VRF_FULL_CMD_HELP_STR "Specify the VRF\nThe VRF name\nAll VRFs\n"
|
||||
|
||||
/*
|
||||
* Pass some OS specific data up through
|
||||
|
@ -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)
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user