diff options
| author | Eric Kinzie <ekinzie@labn.net> | 2022-09-02 16:33:52 +0200 |
|---|---|---|
| committer | Louis Scalbert <louis.scalbert@6wind.com> | 2023-04-18 11:33:15 +0200 |
| commit | 42ac4485386e47a2ae2baa24789c0a2ed2f0c393 (patch) | |
| tree | 966c358f8d42d0c134685dc604e94c26efdbc0d4 /isisd/isis_spf.h | |
| parent | e39af3727e00d0a1262d9d73b3672788d823e8d3 (diff) | |
isisd: add option to display isis routes as json
Append an optional parameter to "show isis route [prefix-sid]" that
formats the output as a JSON array.
Signed-off-by: Eric Kinzie <ekinzie@labn.net>
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Diffstat (limited to 'isisd/isis_spf.h')
| -rw-r--r-- | isisd/isis_spf.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/isisd/isis_spf.h b/isisd/isis_spf.h index 9af4d1bdcf..7e9754d9bf 100644 --- a/isisd/isis_spf.h +++ b/isisd/isis_spf.h @@ -12,6 +12,7 @@ #define _ZEBRA_ISIS_SPF_H #include "isisd/isis_lfa.h" +#include "lib/json.h" struct isis_spftree; @@ -62,7 +63,7 @@ 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_routes(struct vty *vty, struct isis_spftree *spftree, - bool prefix_sid, bool backup); + json_object **json, bool prefix_sid, bool backup); void isis_spf_init(void); void isis_spf_print(struct isis_spftree *spftree, struct vty *vty); void isis_spf_print_json(struct isis_spftree *spftree, |
