summaryrefslogtreecommitdiff
path: root/isisd/isis_spf.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2024-06-06 17:08:56 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2024-06-21 15:40:23 +0200
commit3a2554e4a23a69c6030253f78644f4f03b3bdcab (patch)
tree3e72c9df6a2a57094b0c81c61915db59d12c5701 /isisd/isis_spf.h
parentdf723ccfb70e4c416bb74fc52cfc8b9dd1384314 (diff)
isisd: add json support to display spf paths in 'show isis route'
The 'show isis route json' command never displays the list of paths. Add the json support for this sub-part. > # show isis route json > [..] > "ipv6-paths":[ > { > "Vertex":"rt1", > "Type":"", > "Metric":0, > "Next-Hop":"", > "Interface":"", > "Parent":"" > }, > { > "Vertex":"2001:db8:1000::1\/128", > "Type":"IP6 internal", > "Metric":0, > "Next-Hop":"", > "Interface":"", > "Parent":"rt1(4)" > }, Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'isisd/isis_spf.h')
-rw-r--r--isisd/isis_spf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/isisd/isis_spf.h b/isisd/isis_spf.h
index 7e9754d9bf..ee2d29abe3 100644
--- a/isisd/isis_spf.h
+++ b/isisd/isis_spf.h
@@ -61,7 +61,8 @@ struct isis_lsp *isis_root_system_lsp(struct lspdb_head *lspdb,
__FILE__, __LINE__)
int _isis_spf_schedule(struct isis_area *area, int level,
const char *func, const char *file, int line);
-void isis_print_spftree(struct vty *vty, struct isis_spftree *spftree);
+void isis_print_spftree(struct vty *vty, struct isis_spftree *spftree,
+ struct json_object **json);
void isis_print_routes(struct vty *vty, struct isis_spftree *spftree,
json_object **json, bool prefix_sid, bool backup);
void isis_spf_init(void);