summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-02-08 19:51:37 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-02-08 20:38:16 -0500
commitfc5cca9fa41eee79dac29b6d973c2dfb097ad5a2 (patch)
tree93595c9a8f377ffeb0ecb80b873a22760bbffaba
parent42567e0011491fe799eef6d236ecf1937c59c18f (diff)
zebra: Use appropriate output function for label printing
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
-rw-r--r--zebra/zebra_mpls.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/zebra/zebra_mpls.c b/zebra/zebra_mpls.c
index 3ceebf417e..ec80081a46 100644
--- a/zebra/zebra_mpls.c
+++ b/zebra/zebra_mpls.c
@@ -2819,8 +2819,13 @@ void zebra_mpls_print_lsp_table(struct vty *vty, struct zebra_vrf *zvrf,
}
if (nexthop->type != NEXTHOP_TYPE_IFINDEX)
- vty_out(vty, " %8d\n",
- nexthop->nh_label->label[0]);
+ vty_out(vty, " %8s\n",
+ mpls_label2str(
+ nexthop->nh_label
+ ->num_labels,
+ &nexthop->nh_label
+ ->label[0],
+ buf, BUFSIZ, 1));
else
vty_out(vty, "\n");
}