]> git.proxmox.com Git - mirror_frr.git/commit - ospfd/ospf_ri.c
ospfd: fix display of plain-text data on "show ... json" commands
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 8 Oct 2021 00:06:01 +0000 (21:06 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Fri, 8 Oct 2021 13:03:01 +0000 (10:03 -0300)
commit3e63092b83c6710dd978b705537a2bb8c586ea8b
tree17304c3f72ab98edab9b843f52b36246ecf613b0
parenta792fa7b150831c1d2f70ddae580e6fc38a51ab0
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>
ospfd/ospf_apiserver.c
ospfd/ospf_apiserver.h
ospfd/ospf_ext.c
ospfd/ospf_gr_helper.c
ospfd/ospf_opaque.c
ospfd/ospf_opaque.h
ospfd/ospf_ri.c
ospfd/ospf_te.c