diff options
author | vivek <vivek@cumulusnetworks.com> | 2016-04-20 01:08:10 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-23 15:31:02 +0200 |
commit | c0f4be83a11c22ff7e9920fc44ebc015d5b1f776 (patch) | |
tree | d350ca54d663f07ea59610fd0d1c5fd239194c4d /zebra/zebra_vty.c | |
parent | MPLS: Configure static routes with labels in Quagga (diff) | |
download | frr-c0f4be83a11c22ff7e9920fc44ebc015d5b1f776.tar.xz frr-c0f4be83a11c22ff7e9920fc44ebc015d5b1f776.zip |
MPLS: Install labeled static routes
This patch installs labeled static routes in the FIB. The routes are installed
using the RTA_ENCAP (and RTA_ENCAP_TYPE) nested attributes.
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Ticket: CM-6040
Reviewed By: CCR-3091
Testing Done: Tested in SE-1, brief manual testing now
Diffstat (limited to '')
-rw-r--r-- | zebra/zebra_vty.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index fa2a27088..1dfa40145 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -2318,6 +2318,15 @@ vty_show_ip_route_detail (struct vty *vty, struct route_node *rn, int mcast) default: break; } + + /* Label information */ + if (nexthop->nh_label && nexthop->nh_label->num_labels) + { + vty_out (vty, " label %s", + mpls_label2str (nexthop->nh_label->num_labels, + nexthop->nh_label->label, buf, BUFSIZ)); + } + vty_out (vty, "%s", VTY_NEWLINE); } vty_out (vty, "%s", VTY_NEWLINE); @@ -2558,6 +2567,14 @@ vty_show_ip_route (struct vty *vty, struct route_node *rn, struct rib *rib, break; } + /* Label information */ + if (nexthop->nh_label && nexthop->nh_label->num_labels) + { + vty_out (vty, " label %s", + mpls_label2str (nexthop->nh_label->num_labels, + nexthop->nh_label->label, buf, BUFSIZ)); + } + if (CHECK_FLAG (rib->flags, ZEBRA_FLAG_BLACKHOLE)) vty_out (vty, ", bh"); if (CHECK_FLAG (rib->flags, ZEBRA_FLAG_REJECT)) |