<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"Trebuchet MS";
panose-1:2 11 6 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
p.Textodebalo, li.Textodebalo, div.Textodebalo
{mso-style-name:"Texto de bal\00E3o";
mso-style-link:"Texto de bal\00E3o Char";
margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.TextodebaloChar
{mso-style-name:"Texto de bal\00E3o Char";
mso-style-priority:99;
mso-style-link:"Texto de bal\00E3o";
font-family:"Tahoma","sans-serif";}
span.EmailStyle23
{mso-style-type:personal-reply;
font-family:"Trebuchet MS","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#1F497D">Indeed, regexp for extended communities use the ampersand (&) character to separate the global administrator and local administrator fields.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#1F497D">e.g.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:#1F497D">community “CUST-EXPORT” members target:ASN&.” # matches the ASN and locally administered field<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#1F497D">This is noted on pg 853, table 19 of the
<a href="https://infoproducts.alcatel-lucent.com/aces/cgi-bin/dbaccessfilename.cgi/9300741102_V1_7750%20SR%20OS%20Routing%20Protocols%20Guide%2012.0.R4.pdf">
SR OS Routing Protocols Guide 12.0.R4</a> which documents the routing policy implementation.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#1F497D">AJ<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> alcatel-nsp [mailto:alcatel-nsp-bounces@puck.nether.net]
<b>On Behalf Of </b>Pena, Hugo Roger Bernaola (Hugo Roger Bernaola)<br>
<b>Sent:</b> Thursday, October 23, 2014 12:56 PM<br>
<b>To:</b> Kevin Billings; alcatel-nsp@puck.nether.net<br>
<b>Subject:</b> [alcatel-nsp] RES: Filtering BGP routes using Extended communities<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Kevin,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">This example:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">*A:T>config>router>policy-options# community "PE1_CE" members "target:65002|65003&."<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">*A:T>config>router>policy-options#<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Cheers,<o:p></o:p></span></p>
<div>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#1F497D"><img border="0" width="276" height="26" id="Picture_x0020_1" src="cid:image001.jpg@01CFEEC7.0BCE5D50"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><b><span lang="PT-BR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#1F497D">Hugo Roger Bernaola Pena<o:p></o:p></span></b></p>
<p class="MsoNormal" style="text-autospace:none"><b><span lang="PT-BR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#6639B7">ALCATEL-LUCENT<o:p></o:p></span></b></p>
<p class="MsoNormal" style="text-autospace:none"><b><span lang="PT-BR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#6639B7">CALA RBC – IPCC Consulting Engineer<o:p></o:p></span></b></p>
<p class="MsoNormal" style="text-autospace:none"><b><span lang="PT-BR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#6639B7">AV. MARGINAL DIREITA ANCHIETA 400<o:p></o:p></span></b></p>
<p class="MsoNormal" style="text-autospace:none"><b><span lang="PT-BR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#6639B7">Tel. : 55 11 2947-8956<o:p></o:p></span></b></p>
<p class="MsoNormal" style="text-autospace:none"><b><span lang="PT-BR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#6639B7">Cel. : 55 11 98181-0358<o:p></o:p></span></b></p>
<p class="MsoNormal" style="text-autospace:none"><b><span lang="PT-BR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#6639B7"><a href="mailto:hugo_roger_bernaola.pena@alcatel-lucent.com">hugo_roger_bernaola.pena@alcatel-lucent.com</a><o:p></o:p></span></b></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span lang="PT-BR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">De:</span></b><span lang="PT-BR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> alcatel-nsp [<a href="mailto:alcatel-nsp-bounces@puck.nether.net">mailto:alcatel-nsp-bounces@puck.nether.net</a>]
<b>Em nome de </b>Kevin Billings<br>
<b>Enviada em:</b> quinta-feira, 23 de outubro de 2014 17:31<br>
<b>Para:</b> <a href="mailto:alcatel-nsp@puck.nether.net">alcatel-nsp@puck.nether.net</a><br>
<b>Assunto:</b> [alcatel-nsp] Filtering BGP routes using Extended communities<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">community "CUST-EXPORT" members "^ASN:(.*)$"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This does not work for extended communities.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have tried these formats but I get invalid format:<o:p></o:p></p>
<p class="MsoNormal">community "CUST-EXPORT" members target:"^ASN:(.*)$"<o:p></o:p></p>
<p class="MsoNormal">community "CUST-EXPORT" members target:"ASN:*"<o:p></o:p></p>
<p class="MsoNormal">community "CUST-EXPORT" members “target:ASN:*"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>