0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2025-03-21 22:07:03 +00:00

Fixed reporting about exported routes

This commit is contained in:
Maria Matejka 2024-04-07 11:43:52 +02:00
parent ef16f07633
commit e38cd2b215

View File

@ -734,15 +734,12 @@ do_rt_notify(struct channel *c, const net_addr *net, rte *new, const rte *old)
if (new) if (new)
bmap_set(&c->export_map, new->id); bmap_set(&c->export_map, new->id);
if (p->debug & D_ROUTES) if (new && old)
{ channel_rte_trace_out(D_ROUTES, c, new, "replaced");
if (new && old) else if (new)
channel_rte_trace_out(D_ROUTES, c, new, "replaced"); channel_rte_trace_out(D_ROUTES, c, new, "added");
else if (new) else if (old)
channel_rte_trace_out(D_ROUTES, c, new, "added"); channel_rte_trace_out(D_ROUTES, c, old, "removed");
else if (old)
channel_rte_trace_out(D_ROUTES, c, old, "removed");
}
p->rt_notify(p, c, net, new, old); p->rt_notify(p, c, net, new, old);
} }