Filtering on Export-Protocol

Michael Rack mail at michaelrack.de
Wed Apr 8 18:47:49 CEST 2020


Hi Guys,

if i am in the EXPORT-Routine, how can i access the "protocol-name" of that
instance that is currently using my function?

If I rely on "proto" I get the protocol-name where the route comes from.
That is not what I want.

*protocol bgp *'peer-neo' {
>       ipv4 { export filter *filter_common_ipv4_out*; };
> }
> *filter  * filter_common_ipv4_out() {
>       if  proto  = 'peer-neo' then .....;
> }


How can I match for 'peer-neo' ?

Thank you.
Michael.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20200408/f6ad2ff8/attachment.htm>


More information about the Bird-users mailing list