Community range to match on import filter.

Osmos City osmoscity at gmail.com
Thu Apr 26 17:06:58 CEST 2018


Cool Tim,
   
      right!, just works as expected that way.

Thanks.
Jorge.

> El 26 abr 2018, a las 15:44, Tim Weippert <weiti at weiti.org> escribió:
> 
> Hi Jorge, 
> 
> i had not exactly your config, but i get used of many checks on extended
> community like:
> 
> if ( bgp_ext_community ~ [ (rt, MYAS, 6200..6299) ] ) then {
> 	....;
> }
> 
> and they work as expected. So i would think on standard communities it
> should work like:
> 
> if ( bgp_community ~ [ (65000, 5000..5099) ] ) then {
> 	...;
> }
> 
> HTH, 
> tim
> 
> On Thu, Apr 26, 2018 at 03:01:34PM +0200, Osmos City wrote2
> 
>> Hi there,
>> 
>>    just wondering how to migrate to Bird configuration this entry from another RR:
>>    “regex 65000:50[0-9][0-9]” 
>>    applied to a BGP import route-map on community match.
>> 
>>    Tried on Bird:
>>     “if ([(65000,5000..5099)]) ~ bgp_community then “action"
>> 
>>     After that, no prefixes have been imported with those communities.
>> 
>> Any idea if it should work or I’ve missed something?
>> 
>> Thanks in advance.
>> Regards,
>> Jorge.
> 
> -- 
> Tim Weippert
> http://weiti.org - weiti at weiti.org
> GPG Fingerprint - E704 7303 6FF0 8393 ADB1  398E 67F2 94AE 5995 7DD8




More information about the Bird-users mailing list