]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: show ospf database info using formatted json 12571/head
authorRei Shimizu <rshimizu@apache.org>
Wed, 28 Dec 2022 08:09:37 +0000 (08:09 +0000)
committerRei Shimizu <rshimizu@apache.org>
Tue, 3 Jan 2023 02:06:35 +0000 (02:06 +0000)
Signed-off-by: Rei Shimizu <rshimizu@apache.org>
ospfd/ospf_vty.c

index 43b7de552ad1c1addd4a2442fb19b8c62ca9eeb7..828a5cb1eefea98741126666517ce4be99c2d8a6 100644 (file)
@@ -7183,10 +7183,8 @@ DEFUN (show_ip_ospf_database_max,
                                                   use_vrf, json, uj);
        }
 
-       if (uj) {
-               vty_out(vty, "%s\n", json_object_to_json_string(json));
-               json_object_free(json);
-       }
+       if (uj)
+               vty_json(vty, json);
 
        return ret;
 }