zebra: use the INSTALLED flag consistently in route summary

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>
This commit is contained in:
Mark Stapp 2019-03-25 13:35:02 -04:00
parent 548ec776ed
commit 6f875a362a

View File

@ -1375,7 +1375,7 @@ static void vty_show_ip_route_summary(struct vty *vty,
else else
rib_cnt[re->type]++; 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]++; fib_cnt[ZEBRA_ROUTE_TOTAL]++;
if (is_ibgp) if (is_ibgp)