From 2f8f4f1001e319ea92c313a3ec2184e9a49c0fa1 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 7 Jun 2018 17:10:38 -0400 Subject: [PATCH] bgpd: Actually display labeled unicast routes received 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 --- bgpd/bgp_vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index c275fdb7be..d4ebd54e46 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -7979,7 +7979,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]); -- 2.39.5