bird filter fails after upgrade from 1.3.1 -> 1.3.2

Ondrej Zajicek santiago at crfreenet.org
Mon Aug 8 12:45:50 CEST 2011


On Mon, Aug 08, 2011 at 08:13:28AM +0200, Matthew Whittaker-Williams wrote:
> Hi,
> 
> I am having some issues with a filter of mine since my last upgrade to
> 1.3.2.
> Aug  6 00:00:04 bird: filters, line 72: AS path expected
> Aug  6 00:00:04 bird: filters, line 72: AS path expected
> 
> filter national
> int set asnums;
>     {
>         # Exceptions
>         asnums = [ 286, 47377, 8514, 5430, 6848, 3300];
>         # Failes on this line below: 
>         if ( bgp_path.last ~ asnums) then {
>              accept;
>         }
>         else {
>             reject;
>         }
>     }
> 
> Changing it to :
>         if bgp_path.last ~ [ 286, 47377, 8514, 5430, 6848, 3300 ] then {
>                 accept;
>         }
> 
> Then its all fine, has the way on setting int changed?

The error 'AS path expected' is probably a result of applying the filter
on a non-BGP route (which does not have bgp_path attribute and
bgp_path.last expression fails). It is not related to int sets. So i
would guess that it is some kind of coincidence with the upgrade and
that syntax change.

-- 
Elen sila lumenn' omentielvo

Ondrej 'SanTiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20110808/9304383d/attachment-0001.asc>


More information about the Bird-users mailing list