Skip to content

Commit

Permalink
tests: fix mpls_label2str() in make check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
sworleys authored and donaldsharp committed Mar 20, 2023
1 parent b15d96c commit 8dd5bca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/ospfd/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion tests/ospfd/test_ospf_spf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8dd5bca

Please sign in to comment.