]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: show bgp ipv4 label-unicast does not provide any output
authorDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 6 Jul 2017 23:47:15 +0000 (23:47 +0000)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 8 Aug 2017 14:28:54 +0000 (10:28 -0400)
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Ticket: CM-16957

bgpd/bgp_route.c

index ac820fb34fb835aa9d7fccfb12e372d7987e0e80..44e5af578dd9acbea3bc17eefaa9dc4c2cac8491 100644 (file)
@@ -10240,6 +10240,10 @@ static int bgp_show_neighbor_route(struct vty *vty, struct peer *peer,
                                   afi_t afi, safi_t safi,
                                   enum bgp_show_type type, u_char use_json)
 {
+       /* labeled-unicast routes live in the unicast table */
+       if (safi == SAFI_LABELED_UNICAST)
+               safi = SAFI_UNICAST;
+
        if (!peer || !peer->afc[afi][safi]) {
                if (use_json) {
                        json_object *json_no = NULL;