Allows to redefine master table.
This commit is contained in:
parent
c4b76d7b19
commit
36415e4b1d
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue