mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 01:31:55 +00:00
Allows to redefine master table.
This commit is contained in:
parent
c4b76d7b19
commit
36415e4b1d
@ -1386,6 +1386,10 @@ rt_next_hop_update(rtable *tab)
|
||||
struct rtable_config *
|
||||
rt_new_table(struct symbol *s)
|
||||
{
|
||||
/* Hack that allows to 'redefine' the master table */
|
||||
if ((s->class == SYM_TABLE) && (s->def == new_config->master_rtc))
|
||||
return s->def;
|
||||
|
||||
struct rtable_config *c = cfg_allocz(sizeof(struct rtable_config));
|
||||
|
||||
cf_define_symbol(s, SYM_TABLE, c);
|
||||
|
Loading…
Reference in New Issue
Block a user