mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-09 20:58:44 +00:00
Fixed reporting about exported routes
This commit is contained in:
parent
ef16f07633
commit
e38cd2b215
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user