diff options
| author | Yash Ranjan <ranjany@vmware.com> | 2020-11-09 01:52:45 -0800 |
|---|---|---|
| committer | Yash Ranjan <ranjany@vmware.com> | 2021-03-02 02:14:57 -0800 |
| commit | 305b639bcab02b3a8a4f62a2ecb5c0e5451b0bea (patch) | |
| tree | 278fd903282cc02e3c860a31c0864c1f073bd9fd /ospf6d/ospf6_spf.h | |
| parent | c103ac43dea8087e33e62dec69cee2d79e362ed5 (diff) | |
ospf6d: Json support added for command "show ipv6 ospf6 spf tree [json]"
Modify code to add JSON format output in show command
"show ipv6 ospf6 spf tree" with proper formating
Signed-off-by: Yash Ranjan <ranjany@vmware.com>
Diffstat (limited to 'ospf6d/ospf6_spf.h')
| -rw-r--r-- | ospf6d/ospf6_spf.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ospf6d/ospf6_spf.h b/ospf6d/ospf6_spf.h index 253888d8ce..36e2b27912 100644 --- a/ospf6d/ospf6_spf.h +++ b/ospf6d/ospf6_spf.h @@ -23,6 +23,7 @@ #include "typesafe.h" #include "ospf6_top.h" +#include "lib/json.h" /* Debug option */ extern unsigned char conf_debug_ospf6_spf; @@ -147,7 +148,8 @@ extern void ospf6_spf_calculation(uint32_t router_id, extern void ospf6_spf_schedule(struct ospf6 *ospf, unsigned int reason); extern void ospf6_spf_display_subtree(struct vty *vty, const char *prefix, - int rest, struct ospf6_vertex *v); + int rest, struct ospf6_vertex *v, + json_object *json_obj, bool use_json); extern void ospf6_spf_config_write(struct vty *vty, struct ospf6 *ospf6); extern int config_write_ospf6_debug_spf(struct vty *vty); |
