]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra-mpls: fix regression caused by wrong conflict resolution
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 9 Dec 2016 00:04:52 +0000 (22:04 -0200)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 14 Dec 2016 18:21:08 +0000 (13:21 -0500)
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
zebra/zebra_vty.c

index 397a4890114c185937c642555aae1a106984743d..e5f9b17e81b149fa6eb4a87d8f37e6c59caf2933 100644 (file)
@@ -775,6 +775,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);
@@ -1015,6 +1024,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))