RE: BGP filter

2018-04-27 Thread Arvin Gan
-Original Message- From: Jan Maria Matejka Sent: Friday, April 27, 2018 8:41 PM To: Arvin Gan ; bird-users@network.cz Subject: Re: BGP filter On 04/25/2018 03:26 PM, Jan Maria Matejka wrote: > [...] > > On 04/25/2018 12:38 PM, Arvin Gan wrote: >> Thanks, I will try. > &

Re: BGP filter

2018-04-27 Thread Jan Maria Matejka
On 04/25/2018 03:26 PM, Jan Maria Matejka wrote: > [...] > > On 04/25/2018 12:38 PM, Arvin Gan wrote: >> Thanks, I will try. > > We found out that it may coredump on reconfiguration as instruction > comparison happens > there and the format() instruction has no comparator. Please look into your

RE: BGP filter

2018-04-25 Thread Arvin Gan
To: Arvin Gan ; bird-users@network.cz Subject: Re: BGP filter [...] On 04/25/2018 12:38 PM, Arvin Gan wrote: > Thanks, I will try. We found out that it may coredump on reconfiguration as instruction comparison happens there and the format() instruction has no comparator. Please look into yo

Re: BGP filter

2018-04-25 Thread Jan Maria Matejka
[...] On 04/25/2018 12:38 PM, Arvin Gan wrote: > Thanks, I will try. We found out that it may coredump on reconfiguration as instruction comparison happens there and the format() instruction has no comparator. Please look into your log, there should be something like >>Bug: Unknown instruction<

RE: BGP filter

2018-04-25 Thread Arvin Gan
Thanks, I will try. -Original Message- From: Bird-users On Behalf Of Jan Maria Matejka Sent: Wednesday, April 25, 2018 6:31 PM To: bird-users@network.cz Subject: Re: BGP filter >> 2.   config-file: >> >>   filter filter_bgp1{ >> >>  

RE: BGP filter

2018-04-25 Thread Arvin Gan
Of Jan Maria Matejka Sent: Wednesday, April 25, 2018 6:19 PM To: bird-users@network.cz Subject: Re: BGP filter Hi! > 1.   bird>show route filter {if format(net) = "0.0.0.0/0" then accept;}   > //correct result > > /* show route filter {if net = "0.0.0.0/0"

Re: BGP filter

2018-04-25 Thread Jan Maria Matejka
>> 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*/ >> >> }

Re: BGP filter

2018-04-25 Thread Jan Maria Matejka
Hi! > 1.   bird>show route filter {if format(net) = "0.0.0.0/0" then accept;}   > //correct result > > /* show route filter {if net = "0.0.0.0/0" then accept;}  // incorrect result >  */ compare net = 0.0.0.0/0 – the "0.0.0.0/0" is a string literal, the 0.0.0.0/0 is a prefix literal. > 2.

BGP filter

2018-04-25 Thread Arvin Gan
Hi All, I am implementing a function that send default route to BGP peer, and I am facing an issue about BGP filter, when I use "show route filter" in birdc, the filter result is correct; when I add this filter to config-file and start bird, the bird will occur coredump issue. D