diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2021-10-08 02:06:01 +0200 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2021-10-08 15:03:01 +0200 |
commit | 3e63092b83c6710dd978b705537a2bb8c586ea8b (patch) | |
tree | 17304c3f72ab98edab9b843f52b36246ecf613b0 /ospfd/ospf_apiserver.h | |
parent | ospfd: display detailed information about opaque LSAs in JSON format (diff) | |
download | frr-3e63092b83c6710dd978b705537a2bb8c586ea8b.tar.xz frr-3e63092b83c6710dd978b705537a2bb8c586ea8b.zip |
ospfd: fix display of plain-text data on "show ... json" commands
Add a 'json' parameter to the 'show_opaque_info' callback definition,
and update all instances of that callback to not display plain-text
data when the user requested JSON data.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ospfd/ospf_apiserver.h')
-rw-r--r-- | ospfd/ospf_apiserver.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ospfd/ospf_apiserver.h b/ospfd/ospf_apiserver.h index 89a947497..544a32a28 100644 --- a/ospfd/ospf_apiserver.h +++ b/ospfd/ospf_apiserver.h @@ -182,7 +182,8 @@ extern void ospf_apiserver_nsm_change(struct ospf_neighbor *nbr, extern void ospf_apiserver_config_write_router(struct vty *vty); extern void ospf_apiserver_config_write_if(struct vty *vty, struct interface *ifp); -extern void ospf_apiserver_show_info(struct vty *vty, struct ospf_lsa *lsa); +extern void ospf_apiserver_show_info(struct vty *vty, struct json_object *json, + struct ospf_lsa *lsa); extern int ospf_ospf_apiserver_lsa_originator(void *arg); extern struct ospf_lsa *ospf_apiserver_lsa_refresher(struct ospf_lsa *lsa); extern void ospf_apiserver_flush_opaque_lsa(struct ospf_apiserver *apiserv, |