diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2021-11-17 12:05:12 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2021-11-17 16:01:30 +0100 |
| commit | ad9df66ce244c9e062319970e980cc70f9543f29 (patch) | |
| tree | d6f951a2adba9376ee0b98a0efa24cab709727db /lib/plist.c | |
| parent | 2c4dfddb01cd7dfb28f410dca866738486981ca6 (diff) | |
lib: use vty_json()
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/plist.c')
| -rw-r--r-- | lib/plist.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/plist.c b/lib/plist.c index a53b087a46..0b3de88d9f 100644 --- a/lib/plist.c +++ b/lib/plist.c @@ -1127,14 +1127,7 @@ static int vty_show_prefix_list(struct vty *vty, afi_t afi, const char *name, master, dtype, seqnum); } - if (uj) { - vty_out(vty, "%s\n", - json_object_to_json_string_ext( - json, JSON_C_TO_STRING_PRETTY)); - json_object_free(json); - } - - return CMD_SUCCESS; + return vty_json(vty, json); } static int vty_show_prefix_list_prefix(struct vty *vty, afi_t afi, |
