summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_opaque.h
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2021-10-08 02:06:01 +0200
committerRenato Westphal <renato@opensourcerouting.org>2021-10-08 15:03:01 +0200
commit3e63092b83c6710dd978b705537a2bb8c586ea8b (patch)
tree17304c3f72ab98edab9b843f52b36246ecf613b0 /ospfd/ospf_opaque.h
parentospfd: display detailed information about opaque LSAs in JSON format (diff)
downloadfrr-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_opaque.h')
-rw-r--r--ospfd/ospf_opaque.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ospfd/ospf_opaque.h b/ospfd/ospf_opaque.h
index 7d401c3dc..bded32215 100644
--- a/ospfd/ospf_opaque.h
+++ b/ospfd/ospf_opaque.h
@@ -136,7 +136,8 @@ extern int ospf_register_opaque_functab(
void (*config_write_router)(struct vty *vty),
void (*config_write_if)(struct vty *vty, struct interface *ifp),
void (*config_write_debug)(struct vty *vty),
- void (*show_opaque_info)(struct vty *vty, struct ospf_lsa *lsa),
+ void (*show_opaque_info)(struct vty *vty, struct json_object *json,
+ struct ospf_lsa *lsa),
int (*lsa_originator)(void *arg),
struct ospf_lsa *(*lsa_refresher)(struct ospf_lsa *lsa),
int (*new_lsa_hook)(struct ospf_lsa *lsa),