Route filtering by route distinguisher

Jon Langemak jon at interubernet.com
Thu Aug 29 22:55:10 CEST 2024


Thanks!  I had looked at the repo and saw those references but I’m still unsure how to reference them as part of a filter.  I’ve tried just comparing it to “rd” or “vpnrd” but have been unsuccessful. In the test examples they are referring to it as an attribute of a route that they are instantiating. 


> On Aug 29, 2024, at 1:58 PM, netravnen+birdlist at gmail.com wrote:
> 
> https://gitlab.nic.cz/labs/bird/-/blob/master/filter/test.conf#L2228
> 
> https://gitlab.nic.cz/labs/bird/-/blob/master/filter/test.conf#L1703
> 
> https://gitlab.nic.cz/labs/bird/-/blob/master/filter/test.conf#L1673
> 
>> On Thu, 29 Aug 2024 at 20:55, <netravnen+birdlist at gmail.com> wrote:
>> 
>>> On Thu, 29 Aug 2024 at 01:14, Jon Langemak <jon at interubernet.com> wrote:
>>> Hi folks - I swear I’ve done this before but I can’t recall the syntax to filter routes based on the RD. I’m able to do it by RT quite easily by comparing it to the bgp_ext_community but can’t figure out the comparison value for RDs.
>> 
>> https://bird.network.cz/?get_doc&v=20&f=bird-5.html
>> 
>> It is called vpnrd `.rd` in the doc's...
>> 
>> https://gitlab.nic.cz/search?group_id=2&project_id=6&repository_ref=master&scope=blobs&search=%22rd%22
>> 
>> And there are entries in the code for `.rd`...
>> 
>> https://gitlab.nic.cz/labs/bird/-/blob/master/filter/test.conf
>> 
>> Is probably your best bet for a reference example. Looking at the test
>> files in the BIRD authoritative repository.



More information about the Bird-users mailing list