BGP filter

Arvin Gan AGan at advaoptical.com
Wed Apr 25 12:38:18 CEST 2018


Thanks, I will try.

-----Original Message-----
From: Bird-users <bird-users-bounces at network.cz> On Behalf Of Jan Maria Matejka
Sent: Wednesday, April 25, 2018 6:31 PM
To: bird-users at network.cz
Subject: Re: BGP filter

>> 2.       config-file:
>>
>>               filter filter_bgp1{
>>
>>                   if format(net) = "0.0.0.0/0" then accept;  // "format(net) = ." , bird coredump ???
>>
>>                   /* if net = "0.0.0.0/0" then accept;  // " net= ." 
>> ,  not bird coredump*/
>>
>>             }
> 
> Will check this. Thanks for report.

Checked, couldn't reproduce. My test config follows below:

--------- 8< ---- BEGIN OF CONFIG --------------------- define x = (format(0.0.0.0/0) = "0.0.0.0/0"); filter y { if format(net) = "0.0.0.0/0" then accept; };

protocol device {}
protocol kernel { learn; ipv4; }
protocol kernel { learn; ipv6; }

ipv4 table ttt;

protocol pipe { table ttt; peer table master4; import filter y; export filter y; }
--------- 8< ---- END OF CONFIG -----------------------

This does not trigger a coredump when running on v2.0.2.

Please try this config on your machine or send in some minimal config that causes a coredump.

Thanks!
Maria



More information about the Bird-users mailing list