summaryrefslogtreecommitdiffstats
path: root/tests/isisd
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 /tests/isisd
parentisisd: show isis route uses ttable for paths (diff)
downloadfrr-3a2554e4a23a69c6030253f78644f4f03b3bdcab.tar.xz
frr-3a2554e4a23a69c6030253f78644f4f03b3bdcab.zip
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 'tests/isisd')
-rw-r--r--tests/isisd/test_isis_spf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/isisd/test_isis_spf.c b/tests/isisd/test_isis_spf.c
index 4ea28cda2..6fe6993fd 100644
--- a/tests/isisd/test_isis_spf.c
+++ b/tests/isisd/test_isis_spf.c
@@ -55,7 +55,7 @@ static void test_run_spf(struct vty *vty, const struct isis_topology *topology,
isis_run_spf(spftree);
/* Print the SPT and the corresponding routing table. */
- isis_print_spftree(vty, spftree);
+ isis_print_spftree(vty, spftree, NULL);
isis_print_routes(vty, spftree, NULL, false, false);
/* Cleanup SPF tree. */
@@ -85,7 +85,7 @@ static void test_run_lfa(struct vty *vty, const struct isis_topology *topology,
isis_lfa_compute(area, NULL, spftree_self, protected_resource);
/* Print the SPT and the corresponding main/backup routing tables. */
- isis_print_spftree(vty, spftree_self);
+ isis_print_spftree(vty, spftree_self, NULL);
vty_out(vty, "Main:\n");
isis_print_routes(vty, spftree_self, NULL, false, false);
vty_out(vty, "Backup:\n");
@@ -148,7 +148,7 @@ static void test_run_rlfa(struct vty *vty, const struct isis_topology *topology,
vty_out(vty, "\n");
/* Print the post-convergence SPT. */
- isis_print_spftree(vty, spftree_pc);
+ isis_print_spftree(vty, spftree_pc, NULL);
/*
* Activate the computed RLFAs (if any) using artificial LDP labels for
@@ -164,7 +164,7 @@ static void test_run_rlfa(struct vty *vty, const struct isis_topology *topology,
}
/* Print the SPT and the corresponding main/backup routing tables. */
- isis_print_spftree(vty, spftree_self);
+ isis_print_spftree(vty, spftree_self, NULL);
vty_out(vty, "Main:\n");
isis_print_routes(vty, spftree_self, NULL, false, false);
vty_out(vty, "Backup:\n");
@@ -228,7 +228,7 @@ static void test_run_ti_lfa(struct vty *vty,
/*
* Print the post-convergence SPT and the corresponding routing table.
*/
- isis_print_spftree(vty, spftree_pc);
+ isis_print_spftree(vty, spftree_pc, NULL);
isis_print_routes(vty, spftree_self, NULL, false, true);
/* Cleanup everything. */