Hi ,
  Thanks for your response. 
  Do you know the reason " show route filter {if format(net) = "0.0.0.0/0" then 
accept;}" is running correctly in birdc command ,but cause the coredump in 
config-file?  

Thanks
Arvin

-----Original Message-----
From: Bird-users <bird-users-boun...@network.cz> On Behalf 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" 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.       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.
M.

Reply via email to