<ERR> filters, line 1: Missing AS_PATH attribute

Jana Babovakova jana.babovakova at nic.cz
Thu May 22 13:57:27 CEST 2025


Hi.

For this situation we may have more solutions.

You can do the check only on routes that have bgp_path defined.

You can add:

     if defined (bgp_path)...

It also seems, that you are using this in an export filter. It might be 
more useful to use this in a BGP import filter. In that case every route 
will have bgp_path defined.

I hope this helps.
Happy routing,
Jana

Jana Babovakova (she/her) | BIRD Tech Support | CZ.NIC, z.s.p.o.

On 22. 05. 25 3:41, ushiroz at ate-mahoroba.jp wrote:
> Hi,
>
> In our BIRD 2.14 we’re running roa_check like this:
>
>    if (net.type = NET_IP4) then {
>      case roa_check(r4, net, bgp_path.last) {
>
> However, the BIRD logs show the following error:
>
> <ERR> filters, line 1: Missing AS_PATH attribute
>
> would it be advisable to add a check to determine whether the route is a BGP route before proceeding?
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20250522/739ffdf5/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5877 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20250522/739ffdf5/attachment.p7s>


More information about the Bird-users mailing list