diff options
author | Yash Ranjan <ranjany@vmware.com> | 2020-10-28 11:51:39 +0100 |
---|---|---|
committer | Yash Ranjan <ranjany@vmware.com> | 2021-01-27 05:06:02 +0100 |
commit | eacd0828d4a95684fbf691e28730b229c5a8b799 (patch) | |
tree | d432a4eae6ed9f5e79240c3700f394d23c4c0269 /ospf6d/ospf6d.c | |
parent | Merge pull request #7935 from donaldsharp/ospf6_use_after_free (diff) | |
download | frr-eacd0828d4a95684fbf691e28730b229c5a8b799.tar.xz frr-eacd0828d4a95684fbf691e28730b229c5a8b799.zip |
ospf6d: Json support added for command "show ipv6 ospf6 route [json]"
Modify code to add JSON format output in show command
"show ipv6 ospf6 route [<intra-area|inter-area|external-1|
external-2|X:X::X:X|X:X::X:X/M|detail|summary>]"
with proper formating
Signed-off-by: Yash Ranjan <ranjany@vmware.com>
Diffstat (limited to 'ospf6d/ospf6d.c')
-rw-r--r-- | ospf6d/ospf6d.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ospf6d/ospf6d.c b/ospf6d/ospf6d.c index 02eb4baf8..8d9c85fd0 100644 --- a/ospf6d/ospf6d.c +++ b/ospf6d/ospf6d.c @@ -1006,7 +1006,7 @@ DEFUN (show_ipv6_ospf6_border_routers, if (strmatch(argv[idx_ipv4]->text, "detail")) { for (ro = ospf6_route_head(ospf6->brouter_table); ro; ro = ospf6_route_next(ro)) - ospf6_route_show_detail(vty, ro); + ospf6_route_show_detail(vty, ro, NULL, false); } else { inet_pton(AF_INET, argv[idx_ipv4]->arg, &adv_router); @@ -1019,7 +1019,7 @@ DEFUN (show_ipv6_ospf6_border_routers, return CMD_SUCCESS; } - ospf6_route_show_detail(vty, ro); + ospf6_route_show_detail(vty, ro, NULL, false); return CMD_SUCCESS; } } else { |