summaryrefslogtreecommitdiff
path: root/tests/ospfd
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2022-01-15 06:13:43 -0500
committerChristian Hopps <chopps@labn.net>2022-06-02 16:37:16 -0400
commitb538baf352429ef238c7d6c8e23bb643d8e051cd (patch)
tree6e2acf05cc1b478a50e58c1ef4fcfc6cee3755cf /tests/ospfd
parenta6c39c3d1a2b1edf74c84c0a1b7b5a590f528626 (diff)
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 3562b5f2f8..73f2e29834 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");