mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-03 18:37:48 +01:00
Fixes error message in 'show route' cmd.
Message 'Network not in table' was not reported if a network node without any routes was found in a routing table.
This commit is contained in:
parent
dd5ef279bc
commit
0da562a7cb
@ -2409,11 +2409,12 @@ rt_show(struct rt_show_data *d)
|
||||
n = net_route(d->table, d->prefix, d->pxlen);
|
||||
else
|
||||
n = net_find(d->table, d->prefix, d->pxlen);
|
||||
|
||||
if (n)
|
||||
{
|
||||
rt_show_net(this_cli, n, d);
|
||||
cli_msg(0, "");
|
||||
}
|
||||
rt_show_net(this_cli, n, d);
|
||||
|
||||
if (d->rt_counter)
|
||||
cli_msg(0, "");
|
||||
else
|
||||
cli_msg(8001, "Network not in table");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user