]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: use the INSTALLED flag consistently in route summary
authorMark Stapp <mjs@voltanet.io>
Mon, 25 Mar 2019 17:35:02 +0000 (13:35 -0400)
committerMark Stapp <mjs@voltanet.io>
Mon, 25 Mar 2019 17:35:02 +0000 (13:35 -0400)
The 'sho ip route summary' and 'sho ip route summary <prefix>'
paths used different definitions of a 'fib' route. Use
the route-entry 'INSTALLED' flag in both places.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
zebra/zebra_vty.c

index b0884f22cfee050d6931814460ae3f4f823e88bf..f89293814e3f1594c6ee382baca16e43cea15287 100644 (file)
@@ -1375,7 +1375,7 @@ static void vty_show_ip_route_summary(struct vty *vty,
                        else
                                rib_cnt[re->type]++;
 
-                       if (CHECK_FLAG(re->flags, ZEBRA_FLAG_SELECTED)) {
+                       if (CHECK_FLAG(re->status, ROUTE_ENTRY_INSTALLED)) {
                                fib_cnt[ZEBRA_ROUTE_TOTAL]++;
 
                                if (is_ibgp)