]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: Actually display labeled unicast routes received
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 7 Jun 2018 21:10:38 +0000 (17:10 -0400)
committerpaco <paco@voltanet.io>
Tue, 19 Jun 2018 14:34:22 +0000 (16:34 +0200)
The labeled unicast and unicast tables have been combined
into the unicast table.  Additionally we have a restriction
where if you configure labeled unicast you cannot configure
unicast.  This created a bug with 'show bgp ipv4 labeled-unicast summ'
command where we were displaying NoNeg, because v4 has been intentionally
turned off.

Modify the code so that when we are looking up if we have negotiated
a capapbility we use the correct one, while still using the appropriate
table for prefix count.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_vty.c

index d44e3e96006e085cf227772f226cb9bb64d60721..5a17fc493cdd6cf6207e6e1b98e2dd814d543021 100644 (file)
@@ -7935,7 +7935,7 @@ static int bgp_show_summary(struct vty *vty, struct bgp *bgp, int afi, int safi,
                                            BGP_UPTIME_LEN, 0, NULL));
 
                        if (peer->status == Established)
-                               if (peer->afc_recv[afi][pfx_rcd_safi])
+                               if (peer->afc_recv[afi][safi])
                                        vty_out(vty, " %12ld",
                                                peer->pcount[afi]
                                                            [pfx_rcd_safi]);