From: Stephen Worley Date: Mon, 21 Nov 2022 23:43:26 +0000 (-0500) Subject: tests: fix mpls_label2str() in make check X-Git-Tag: base_9.0~402^2~19 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=6712f624dae6497e812832230dd94aa69cd60b38;p=matthieu%2Ffrr.git tests: fix mpls_label2str() in make check Fix ospfd unit tests in make check that had not been updated to the new lib function. Signed-off-by: Stephen Worley --- diff --git a/tests/ospfd/common.c b/tests/ospfd/common.c index eb30c4016e..ef5e3ed177 100644 --- a/tests/ospfd/common.c +++ b/tests/ospfd/common.c @@ -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"); diff --git a/tests/ospfd/test_ospf_spf.c b/tests/ospfd/test_ospf_spf.c index 73f2e29834..b8a2aef69e 100644 --- a/tests/ospfd/test_ospf_spf.c +++ b/tests/ospfd/test_ospf_spf.c @@ -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 {