Calling named filters from another filter

Maria Matejka maria.matejka at nic.cz
Mon Nov 23 16:00:33 CET 2020


Hello!

For now, I suggest you to use functions instead of filters. There are 
some future plans to allow calling named filters with reject/accept 
catching, yet it is not on the table now.

Maria

On 11/23/20 8:51 AM, Michael Rack wrote:
> Hi,
> 
> i did not find anything for this on the internet, so sorry if that topic 
> was discussed already before.
> 
> I have a named filter and I like to call this filter from another filter.
> 
>     filter peers_v4_in() { ...... };
>     filter special_peer_v4_in() { ......; peers_v4_in(); };
>     protocol bgp myspecialpeer {
>          ipv4 { import special_peer_v4_in(); };
>     };
> 
> 
> Is this even possible?
> 
> Thank you.
> Michael.


More information about the Bird-users mailing list