]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tests: fix mpls_label2str() in make check
authorStephen Worley <sworley@nvidia.com>
Mon, 21 Nov 2022 23:43:26 +0000 (18:43 -0500)
committerStephen Worley <sworley@nvidia.com>
Mon, 13 Feb 2023 23:12:05 +0000 (18:12 -0500)
Fix ospfd unit tests in make check that had not been
updated to the new lib function.

Signed-off-by: Stephen Worley <sworley@nvidia.com>
tests/ospfd/common.c
tests/ospfd/test_ospf_spf.c

index eb30c4016e2aba633bdcda91d8a17a244cdb1499..ef5e3ed1775c042e4e3690882b71cde337d36ee3 100644 (file)
@@ -74,7 +74,8 @@ void print_route_table(struct vty *vty, struct route_table *rt)
                                label_stack = path->srni.backup_label_stack;
                                mpls_label2str(label_stack->num_labels,
                                               label_stack->label, buf,
-                                              MPLS_LABEL_STRLEN, true);
+                                              MPLS_LABEL_STRLEN,
+                                              ZEBRA_LSP_NONE, true);
                                vty_out(vty, " and backup path %s", buf);
                        }
                        vty_out(vty, "\n");
index 73f2e29834e8f2f452eeb6c79e00ec5059f1bebc..b8a2aef69e122d80bcaea87b41f176fca5a54f34 100644 (file)
@@ -107,7 +107,7 @@ static void test_run_spf(struct vty *vty, struct ospf *ospf,
                                                        ->num_labels,
                                                q_space->label_stack->label,
                                                label_buf, MPLS_LABEL_STRLEN,
-                                               true);
+                                               ZEBRA_LSP_NONE, true);
                                        vty_out(vty, "\nLabel stack: %s\n",
                                                label_buf);
                                } else {