diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-11-25 16:50:37 +0100 |
---|---|---|
committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-11-25 16:50:37 +0100 |
commit | 5a6c232bf83f10a490890b3db8f01f44eee8aa9a (patch) | |
tree | 9f939974e1828d4d3be851a87c655caf90e229e7 /ospf6d/ospf6_gr_helper.c | |
parent | ospfd: Convert vty_out to vty_json for JSON (diff) | |
download | frr-5a6c232bf83f10a490890b3db8f01f44eee8aa9a.tar.xz frr-5a6c232bf83f10a490890b3db8f01f44eee8aa9a.zip |
ospf6d: Convert vty_out to vty_json for JSON
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'ospf6d/ospf6_gr_helper.c')
-rw-r--r-- | ospf6d/ospf6_gr_helper.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ospf6d/ospf6_gr_helper.c b/ospf6d/ospf6_gr_helper.c index 4dc2d8af8..9f6661913 100644 --- a/ospf6d/ospf6_gr_helper.c +++ b/ospf6d/ospf6_gr_helper.c @@ -1189,10 +1189,7 @@ DEFPY(show_ipv6_ospf6_gr_helper, show_ospf6_gr_helper_details(vty, ospf6, json, uj, detail); if (uj) { - vty_out(vty, "%s\n", - json_object_to_json_string_ext( - json, JSON_C_TO_STRING_PRETTY)); - json_object_free(json); + vty_json(vty, json); } return CMD_SUCCESS; |