]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Nest: Report preferred counters also when 'import keep filtered' is enabled
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Sun, 17 Feb 2019 18:23:19 +0000 (19:23 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Sun, 17 Feb 2019 22:02:05 +0000 (23:02 +0100)
Thanks to Michal Nowak for reporting the issue.

nest/proto.c

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