From: Mark Stapp Date: Mon, 25 Mar 2019 17:35:02 +0000 (-0400) Subject: zebra: use the INSTALLED flag consistently in route summary X-Git-Tag: 7.1_pulled~133^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=6f875a362aee7f465e3cb25576324ea57a05f27d;p=matthieu%2Ffrr.git zebra: use the INSTALLED flag consistently in route summary The 'sho ip route summary' and 'sho ip route summary ' paths used different definitions of a 'fib' route. Use the route-entry 'INSTALLED' flag in both places. Signed-off-by: Mark Stapp --- diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index b0884f22cf..f89293814e 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -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)