0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-08 12:18:42 +00:00

Nest: Report preferred counters also when 'import keep filtered' is enabled

Thanks to Michal Nowak for reporting the issue.
This commit is contained in:
Ondrej Zajicek (work) 2019-02-05 15:59:26 +01:00
parent a9b97cbcb7
commit 52fdd1cb76

View File

@ -1693,8 +1693,8 @@ channel_show_stats(struct channel *c)
struct proto_stats *s = &c->stats; struct proto_stats *s = &c->stats;
if (c->in_keep_filtered) if (c->in_keep_filtered)
cli_msg(-1006, " Routes: %u imported, %u filtered, %u exported", cli_msg(-1006, " Routes: %u imported, %u filtered, %u exported, %u preferred",
s->imp_routes, s->filt_routes, s->exp_routes); s->imp_routes, s->filt_routes, s->exp_routes, s->pref_routes);
else else
cli_msg(-1006, " Routes: %u imported, %u exported, %u preferred", cli_msg(-1006, " Routes: %u imported, %u exported, %u preferred",
s->imp_routes, s->exp_routes, s->pref_routes); s->imp_routes, s->exp_routes, s->pref_routes);