BGP filter

Jan Maria Matejka jan.matejka at nic.cz
Wed Apr 25 12:19:25 CEST 2018


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.


More information about the Bird-users mailing list