From 397fec4741b40f61d06a467b4110aad7e996485c Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Thu, 1 Sep 2022 14:21:56 +0200 Subject: Default tables are not created unless actually used. This allows for setting default table values at the beginning of config file before "master4" and "master6" tables are initialized. --- nest/config.Y | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'nest/config.Y') diff --git a/nest/config.Y b/nest/config.Y index 91147a29..4bf0fefe 100644 --- a/nest/config.Y +++ b/nest/config.Y @@ -361,7 +361,11 @@ channel_end: proto_channel: channel_start channel_opt_list channel_end; -rtable: CF_SYM_KNOWN { cf_assert_symbol($1, SYM_TABLE); $$ = $1->table; } ; +rtable: CF_SYM_KNOWN { + cf_assert_symbol($1, SYM_TABLE); + if (!$1->table) rt_new_default_table($1); + $$ = $1->table; +} ; imexport: FILTER filter { $$ = $2; } @@ -683,6 +687,7 @@ r_args: } | r_args TABLE symbol_known { cf_assert_symbol($3, SYM_TABLE); + if (!$3->table) cf_error("Table %s not configured", $3->name); $$ = $1; rt_show_add_table($$, $3->table->table); $$->tables_defined_by = RSD_TDB_DIRECT; -- cgit v1.2.3 From 83ceb91b50ae75ee5509faa74e2f6d4bdcf78505 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Tue, 30 Aug 2022 19:40:58 +0200 Subject: Table debug is now a per-table setting and has categories. --- doc/bird.sgml | 15 +++++++++++++++ nest/config.Y | 3 ++- nest/rt-table.c | 32 ++++++++++++++++---------------- nest/rt.h | 1 + 4 files changed, 34 insertions(+), 17 deletions(-) (limited to 'nest/config.Y') diff --git a/doc/bird.sgml b/doc/bird.sgml index c29353fc..b12ac544 100644 --- a/doc/bird.sgml +++ b/doc/bird.sgml @@ -505,6 +505,11 @@ include "tablename.conf";; See in the channel section. Default: off. +