]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Fix show ip route for ibgp only routes
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 13 May 2016 18:13:00 +0000 (14:13 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 13 May 2016 19:29:37 +0000 (15:29 -0400)
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>
zebra/zebra_vty.c

index 97cfc16f4837787f9f8dbbab2c74d6d3c66b8853..0707b7282b56fd08c78a3745b18e74d3575ba682 100644 (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)
             {