]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixed reporting about exported routes
authorMaria Matejka <mq@ucw.cz>
Sun, 7 Apr 2024 09:43:52 +0000 (11:43 +0200)
committerMaria Matejka <mq@ucw.cz>
Mon, 13 May 2024 06:52:48 +0000 (08:52 +0200)
nest/rt-table.c

index 85f0194ff04685e889fe0af036253b5d47086d9f..14101d6c004565d7c1e9a6e5c75551f726b907a3 100644 (file)
@@ -727,15 +727,12 @@ do_rt_notify(struct channel *c, const net_addr *net, rte *new, const rte *old)
   if (new)
     bmap_set(&c->export_map, new->id);
 
-  if (p->debug & D_ROUTES)
-  {
-    if (new && old)
-      channel_rte_trace_out(D_ROUTES, c, new, "replaced");
-    else if (new)
-      channel_rte_trace_out(D_ROUTES, c, new, "added");
-    else if (old)
-      channel_rte_trace_out(D_ROUTES, c, old, "removed");
-  }
+  if (new && old)
+    channel_rte_trace_out(D_ROUTES, c, new, "replaced");
+  else if (new)
+    channel_rte_trace_out(D_ROUTES, c, new, "added");
+  else if (old)
+    channel_rte_trace_out(D_ROUTES, c, old, "removed");
 
   p->rt_notify(p, c, net, new, old);
 }