summaryrefslogtreecommitdiffstats
path: root/tests/ospfd
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2022-01-15 12:13:43 +0100
committerChristian Hopps <chopps@labn.net>2022-06-02 22:37:16 +0200
commitb538baf352429ef238c7d6c8e23bb643d8e051cd (patch)
tree6e2acf05cc1b478a50e58c1ef4fcfc6cee3755cf /tests/ospfd
parentospfd: cli: add client api debug option (diff)
downloadfrr-b538baf352429ef238c7d6c8e23bb643d8e051cd.tar.xz
frr-b538baf352429ef238c7d6c8e23bb643d8e051cd.zip
ospfd: add all_rtrs route table when opaque enabled
The reachable router table is used by OSPF opaque clients in order to determine if the router advertising the opaque LSA data is reachable (i.e., 2-way conectivity check). Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'tests/ospfd')
-rw-r--r--tests/ospfd/test_ospf_spf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/ospfd/test_ospf_spf.c b/tests/ospfd/test_ospf_spf.c
index 3562b5f2f..73f2e2983 100644
--- a/tests/ospfd/test_ospf_spf.c
+++ b/tests/ospfd/test_ospf_spf.c
@@ -52,6 +52,7 @@ static void test_run_spf(struct vty *vty, struct ospf *ospf,
enum protection_type protection_type, bool verbose)
{
struct route_table *new_table, *new_rtrs;
+ struct route_table *all_rtrs = NULL;
struct ospf_area *area;
struct p_space *p_space;
struct q_space *q_space;
@@ -63,10 +64,11 @@ static void test_run_spf(struct vty *vty, struct ospf *ospf,
new_table = route_table_init();
new_rtrs = route_table_init();
+ all_rtrs = route_table_init();
/* dryrun true, root_node false */
- ospf_spf_calculate(area, area->router_lsa_self, new_table, new_rtrs,
- true, false);
+ ospf_spf_calculate(area, area->router_lsa_self, new_table, all_rtrs,
+ new_rtrs, true, false);
if (verbose) {
vty_out(vty, "SPF Tree without TI-LFA backup paths:\n\n");