<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic regular expression in Routing and SD-WAN</title>
    <link>https://community.cisco.com/t5/routing-and-sd-wan/regular-expression/m-p/1569975#M152940</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Hello everybody,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a simple question. I want to block all communities from a customer and permit only what I need.&lt;/P&gt;&lt;P&gt;How to achive the result?&amp;nbsp; Please help me, I have spent a lot of time on this task. Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;router bgp 5555&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;neighbor 2.2.2.2 route-map CUST-in in&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;route-map CUST-in permit 10&lt;/P&gt;&lt;P&gt; set comm-list FILTER delete&lt;/P&gt;&lt;P&gt; set community 5555:1111&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;ip community-list expanded CUST-ACCEPT deny 5555:6[1-4][0-9][0-9][0-3]&lt;BR /&gt;ip community-list expanded CUST-ACCEPT deny 5555:4[1-4][0-9][0-9][0-3]&lt;BR /&gt;ip community-list expanded CUST-ACCEPT deny &lt;STRONG&gt;5555:666&lt;/STRONG&gt;&lt;BR /&gt;ip community-list expanded CUST-ACCEPT deny &lt;STRONG&gt;5555:777&lt;/STRONG&gt;&lt;BR /&gt;ip community-list expanded CUST-ACCEPT permit .*:.*&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;result: I am still receiving &lt;STRONG&gt;5555:666[0-9][0-9]&lt;/STRONG&gt; or &lt;STRONG&gt;5555:777[0-9][0-9]&lt;/STRONG&gt; instead of strict &lt;STRONG&gt;5555:666&lt;/STRONG&gt; and &lt;STRONG&gt;5555:777&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sh ip bgp 200.200.200.0&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Community: 5555:1111 5555:666 &lt;STRONG&gt;5555:6&lt;/STRONG&gt;&lt;STRONG&gt;661&lt;/STRONG&gt; 5555:777 &lt;STRONG&gt;5555:7773&lt;/STRONG&gt; 5555:43882&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2019 18:20:33 GMT</pubDate>
    <dc:creator>kozorezdi</dc:creator>
    <dc:date>2019-03-04T18:20:33Z</dc:date>
    <item>
      <title>regular expression</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/regular-expression/m-p/1569975#M152940</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hello everybody,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a simple question. I want to block all communities from a customer and permit only what I need.&lt;/P&gt;&lt;P&gt;How to achive the result?&amp;nbsp; Please help me, I have spent a lot of time on this task. Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;router bgp 5555&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;neighbor 2.2.2.2 route-map CUST-in in&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;route-map CUST-in permit 10&lt;/P&gt;&lt;P&gt; set comm-list FILTER delete&lt;/P&gt;&lt;P&gt; set community 5555:1111&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;ip community-list expanded CUST-ACCEPT deny 5555:6[1-4][0-9][0-9][0-3]&lt;BR /&gt;ip community-list expanded CUST-ACCEPT deny 5555:4[1-4][0-9][0-9][0-3]&lt;BR /&gt;ip community-list expanded CUST-ACCEPT deny &lt;STRONG&gt;5555:666&lt;/STRONG&gt;&lt;BR /&gt;ip community-list expanded CUST-ACCEPT deny &lt;STRONG&gt;5555:777&lt;/STRONG&gt;&lt;BR /&gt;ip community-list expanded CUST-ACCEPT permit .*:.*&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;result: I am still receiving &lt;STRONG&gt;5555:666[0-9][0-9]&lt;/STRONG&gt; or &lt;STRONG&gt;5555:777[0-9][0-9]&lt;/STRONG&gt; instead of strict &lt;STRONG&gt;5555:666&lt;/STRONG&gt; and &lt;STRONG&gt;5555:777&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sh ip bgp 200.200.200.0&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Community: 5555:1111 5555:666 &lt;STRONG&gt;5555:6&lt;/STRONG&gt;&lt;STRONG&gt;661&lt;/STRONG&gt; 5555:777 &lt;STRONG&gt;5555:7773&lt;/STRONG&gt; 5555:43882&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 18:20:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/regular-expression/m-p/1569975#M152940</guid>
      <dc:creator>kozorezdi</dc:creator>
      <dc:date>2019-03-04T18:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: regular expression</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/regular-expression/m-p/1569976#M152941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kozorezdi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should match on the community-list instead of using the community-list to decide if it is good to delete the communities in received advertisement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so your route-map should look like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;route-map CUST-in permit 10&lt;/P&gt;&lt;P&gt;match community CUST-ACCEPT&lt;/P&gt;&lt;P&gt;set community 5555:1111&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need a match statement to fillter &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope to help&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Nov 2010 15:08:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/regular-expression/m-p/1569976#M152941</guid>
      <dc:creator>Giuseppe Larosa</dc:creator>
      <dc:date>2010-11-02T15:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: regular expression</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/regular-expression/m-p/1569977#M152942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well i am using this like...say my peer have as number 9730 then i am using below config&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 12pt; color: #000000; font-family: Times New Roman;"&gt;route-map BGP-OTIP-SIN-IN permit 95&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; mso-spacerun: yes; font-family: Times New Roman; "&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Times New Roman; "&gt;&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;set comm-list 154 delete&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Times New Roman; "&gt;&lt;SPAN style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;set community 1234:7000 additive&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 12pt; color: #000000; font-family: Times New Roman;"&gt;Community (expanded) access list 154&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Times New Roman; "&gt;&lt;SPAN style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;permit _9730:.+_&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 12pt; color: #000000; font-family: Times New Roman;"&gt;means any community tagges with 9730:any occurance will be deleted and then I add what I want&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 12pt; color: #000000; font-family: Times New Roman;"&gt;Hope this is helpful&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 12pt; color: #000000; font-family: Times New Roman;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-size: 12pt; color: #000000; font-family: Times New Roman;"&gt;Mahesh&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Nov 2010 16:51:39 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/regular-expression/m-p/1569977#M152942</guid>
      <dc:creator>Mahesh Gohil</dc:creator>
      <dc:date>2010-11-02T16:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: regular expression</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/regular-expression/m-p/1569978#M152943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&amp;nbsp; Giuseppe.&amp;nbsp; It is not what I need.&amp;nbsp; I have wrote not the whole command, it should be: set community 5555:1111 additive.&lt;/P&gt;&lt;P&gt;Another words, I need to receive some communities from my customer and remove all other (and add my communities as well).&lt;/P&gt;&lt;P&gt;ip community-list expanded CUST-ACCEPT deny 5555:6[1-4][0-9][0-9][0-3]&lt;BR /&gt;ip community-list expanded CUST-ACCEPT deny 5555:4[1-4][0-9][0-9][0-3]&lt;BR /&gt;ip community-list expanded CUST-ACCEPT deny &lt;STRONG&gt;5555:666&lt;/STRONG&gt;&lt;BR /&gt;ip community-list expanded CUST-ACCEPT deny &lt;STRONG&gt;5555:777&lt;/STRONG&gt;&lt;BR /&gt;ip community-list expanded CUST-ACCEPT permit .*:.*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will permit something like: 5555:62340 or 5555:41002, I will deny 5555:22340 or 5555:91002 - it is working.&lt;/P&gt;&lt;P&gt;I will permit 5555:666, but I will permit 5555:6669 - and I don't like it.&amp;nbsp; I need exactly 5555:666&lt;/P&gt;&lt;P&gt;Hope now, my question asked correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Dmitry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Nov 2010 17:23:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/regular-expression/m-p/1569978#M152943</guid>
      <dc:creator>kozorezdi</dc:creator>
      <dc:date>2010-11-02T17:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: regular expression</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/regular-expression/m-p/1569979#M152944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; color: #000000; font-family: Times New Roman;"&gt;Thank you Mahesh. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; color: #000000; font-family: Times New Roman;"&gt;In you case, if you need just remove the communities from the customer, you can just use set community &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Times New Roman;"&gt;1234:7000 (without additive).&amp;nbsp; Have I missed someting? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Times New Roman;"&gt; I need more strict rule.&amp;nbsp; Customer will sent communities for my network&amp;nbsp; (my AS5555) and I don't need any other communities.&amp;nbsp; I need to receive&amp;nbsp; only:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ip community-list expanded CUST-ACCEPT deny 5555:6[1-4][0-9][0-9][0-3]&lt;BR /&gt; ip community-list expanded CUST-ACCEPT deny 5555:4[1-4][0-9][0-9][0-3]&lt;BR /&gt; ip community-list expanded CUST-ACCEPT deny &lt;STRONG&gt;5555:666&lt;/STRONG&gt;&lt;BR /&gt; ip community-list expanded CUST-ACCEPT deny &lt;STRONG&gt;5555:777&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I will deny everything else by:&lt;/P&gt;&lt;P&gt;ip community-list expanded CUST-ACCEPT permit .*:.*&lt;/P&gt;&lt;P&gt;but the customer can send and I will receive 5555:6665 or 5555:77742 and I need to fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Have a&amp;nbsp; nice day,&lt;/P&gt;&lt;P&gt;Dmitry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Nov 2010 17:35:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/regular-expression/m-p/1569979#M152944</guid>
      <dc:creator>kozorezdi</dc:creator>
      <dc:date>2010-11-02T17:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: regular expression</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/regular-expression/m-p/1569980#M152945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dmitry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see you would like to avoid to match on BGP communities with an additional digit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; ip community-list expanded CUST-ACCEPT deny &lt;STRONG&gt;5555:666&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest to modify the statement in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ip community-list expanded CUST-ACCEPT deny &lt;STRONG&gt;5555:666_&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the additional '_' should allow to specify that no additional digit should result in a match&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope to help&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Nov 2010 13:43:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/regular-expression/m-p/1569980#M152945</guid>
      <dc:creator>Giuseppe Larosa</dc:creator>
      <dc:date>2010-11-04T13:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: regular expression</title>
      <link>https://community.cisco.com/t5/routing-and-sd-wan/regular-expression/m-p/1569981#M152946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good everning Giuseppe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&amp;nbsp; I don't know why I haven't checked it before &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.cisco.com/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt; , but it is exactly what I need. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Dmitry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 16:07:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/routing-and-sd-wan/regular-expression/m-p/1569981#M152946</guid>
      <dc:creator>kozorezdi</dc:creator>
      <dc:date>2010-11-05T16:07:12Z</dc:date>
    </item>
  </channel>
</rss>

