Include statement in bird 1.3.3

Mathias Wolkert tias at netnod.se
Mon Oct 10 08:09:54 CEST 2011


Hi

On 10/7/11 13:54 , Ondrej Filip wrote:
> On 7.10.2011 13:04, Mathias Wolkert wrote:
>> Hi
> 
> Hi!
> 
>>
>> I am trying to create a distributed config in bird where I move all bgp
>> to a file of its own.
>>
>> What is the syntax I should use?
>> Doc says:
>>
>> include "filename"
>>
>> So I tried:
>> include "/etc/bird-bgp.conf";
>>
>> and /etc/bird-bgp.conf looking like this:
>>
>> protocol bgp {
>>     router id 1.1.1.1;
>>     local as 65555;
>>     neighbor 1.1.1.2 as 65535;
>>     import filter imp;
>>     export filter exp;   
>> }
>>
> 
> And does it work if everything is included in a single file? Can you

Works like a charm when I put the contents of /etc/bird-bgp.conf in
/etc/bird.conf

> send me some logs please?

It does not generate any logs, even with -d.
I tried bird -p also, but it just hangs.

Run with strace, these are the last four lines:

fstat(5, {st_mode=S_IFREG|0644, st_size=2296, ...}) = 0
lseek(5, 2296, SEEK_SET)                = 2296
open("/etc/bird-bgp.conf", O_RDONLY)    = 6
read(0,


> 
>                 Ondrej
> 
> 
>> With this config, bird refuses to start, hanging at "Restarting Internet
>> routing daemon: bird"
>>
>> bird 1.3.3
>> Debian 5 2.6.32-bpo.3-amd64
>>
>> Any input is much appreciated.
>>
>> /Tias
> 




More information about the Bird-users mailing list