Re: Use Variables / Defines in include statements

2017-01-17 Thread Ondrej Zajicek
On Tue, Jan 17, 2017 at 01:00:57PM +0100, Jan Matejka wrote: > On 01/17/2017 11:03 AM, Tim Weippert wrote: > > Hi, > > > > i currently try to do different includes, based on an variable/define > > within the config. > > > > for example: > > > > function test(int asn) { > > > > [ do something

Re: Use Variables / Defines in include statements

2017-01-17 Thread Tim Weippert
Hi Jan, On Tue, Jan 17, 2017 at 01:00:57PM +0100, Jan Matejka wrote: > On 01/17/2017 11:03 AM, Tim Weippert wrote: [ ... ] > I assume you call this function from a filter. It would mean to resolve > the filename for every route import/export. This is virtually impossible > in the current archi

Re: Use Variables / Defines in include statements

2017-01-17 Thread Jan Matejka
On 01/17/2017 11:03 AM, Tim Weippert wrote: > Hi, > > i currently try to do different includes, based on an variable/define > within the config. > > for example: > > function test(int asn) { > > [ do something general ] > > include "/etc/bird/" . asn . "-special.conf"; > > } > > As this

Use Variables / Defines in include statements

2017-01-17 Thread Tim Weippert
Hi, i currently try to do different includes, based on an variable/define within the config. for example: function test(int asn) { [ do something general ] include "/etc/bird/" . asn . "-special.conf"; } As this approach doesn't work, is there currently an possibility to do such include