zebra: Fix show ip route for ibgp only routes

When 'show ip route summ' is entered
and there are only ibgp routes they
are not being displayed.  This commit
fixes this issue.

Ticket: CM-10931
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2016-05-13 14:13:00 -04:00
parent 54b7214fb9
commit 3ff8613314

View File

@ -2649,7 +2649,8 @@ vty_show_ip_route_summary (struct vty *vty, struct route_table *table)
for (i = 0; i < ZEBRA_ROUTE_MAX; i++)
{
if (rib_cnt[i] > 0)
if ((rib_cnt[i] > 0) ||
(i == ZEBRA_ROUTE_BGP && rib_cnt[ZEBRA_ROUTE_IBGP] > 0))
{
if (i == ZEBRA_ROUTE_BGP)
{