[alcatel-nsp] Filtering BGP routes using Extended communities
Kevin Billings
kevin.billings at spiritcom.com
Thu Oct 23 15:31:27 EDT 2014
Hi all,
I have a community set for a customer that is in the format target:ASN:x x being a range from 1-151. I need to setup a BGP export filter that will match all of the communities and only export these routes. If I use standard communities ASN:x then I can use this format and it works:
community "CUST-EXPORT" members "^ASN:(.*)$"
This does not work for extended communities.
Does anyone know how to make this work for extended communities? Reading the ALU docs I should be able to reg-ex for these types of communities, but have not been successful.
I have tried these formats but I get invalid format:
community "CUST-EXPORT" members target:"^ASN:(.*)$"
community "CUST-EXPORT" members target:"ASN:*"
community "CUST-EXPORT" members "target:ASN:*"
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/alcatel-nsp/attachments/20141023/3e868851/attachment.html>
More information about the alcatel-nsp
mailing list