From: Donald Sharp Date: Fri, 13 May 2016 18:13:00 +0000 (-0400) Subject: zebra: Fix show ip route for ibgp only routes X-Git-Tag: frr-2.0-rc1~914 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=3ff86133141f647fc220c3ef703267e487e65778;p=mirror%2Ffrr.git 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 Reviewed-by: Daniel Walton --- diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index 97cfc16f48..0707b7282b 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -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) {