Calling named filters from another filter
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.
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.
participants (2)
-
Maria Matejka -
Michael Rack