From 3ff86133141f647fc220c3ef703267e487e65778 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 13 May 2016 14:13:00 -0400 Subject: [PATCH] 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 --- zebra/zebra_vty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.39.5