diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-11-25 17:50:37 +0200 |
|---|---|---|
| committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-11-25 17:50:37 +0200 |
| commit | 5a6c232bf83f10a490890b3db8f01f44eee8aa9a (patch) | |
| tree | 9f939974e1828d4d3be851a87c655caf90e229e7 /ospf6d/ospf6_gr_helper.c | |
| parent | 92ef0078787337fbb7be53f9d39ece6ee06c5148 (diff) | |
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 4dc2d8af83..9f6661913f 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; |
