mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
The show-route CLI command now uses the route export API
In the multithreaded environment, it is not supposed that anybody traverses the routing table as the CLI show-route was doing. Now the routing table traversal is gone and CLI won't hold the table locked while computing filters.
This commit is contained in:
@@ -703,14 +703,17 @@ mrt_dump_cont(struct cli *c)
|
||||
|
||||
cli_printf(c, 0, "");
|
||||
mrt_table_dump_free(c->rover);
|
||||
c->cont = c->cleanup = c->rover = NULL;
|
||||
c->cont = NULL;
|
||||
c->cleanup = NULL;
|
||||
c->rover = NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
static int
|
||||
mrt_dump_cleanup(struct cli *c)
|
||||
{
|
||||
mrt_table_dump_free(c->rover);
|
||||
c->rover = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user