]> 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>
Sat, 18 May 2024 13:47:12 +0000 (15:47 +0200)
nest/rt-table.c

index baa1f04a95848f03517b9a405b73b52bc46dfc39..1f86340628b3d1438fd6336341ae588ffe40e932 100644 (file)
@@ -734,15 +734,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);
 }