filter issue

Peter Lieven pli at peering.eu
Thu Feb 17 17:31:01 CET 2011


hi matthew,

i think you have to define local variables.

try sth like

filter exceptions
int set asnums;
{
  asnums = [ 286 ];
  if ( bgp_path.last ~ asnums) then accept;
}

br,
peter

Am 17.02.2011 um 17:11 schrieb Matthew Whittaker-Williams:

> Hi 
> 
> I am having some issues with a filter,  any advice on whats wrong with this :
> 
> # BGP Exception prefixes
> filter exceptions {
>         asnums = [ 286 ];
>        if ( bgp_path.last ~ asnums) then accept;
> }
> 
> I get the following error
> 
> bird: /etc/bird.conf, line 68: You may set only variables.
> 
> Thanks
> 
> Matt




More information about the Bird-users mailing list