That should be

^(100_)+([0-9]+)(_\2)*$

But the above should* work as well...

On Tue, Oct 18, 2016 at 3:31 AM, Dragan Jovicic <dragan...@gmail.com> wrote:

> It's been a while but, the following might do it
>
> ^(100_)+([0-9_]+)(_\2)*$
>
> It matches any customer of 100 also accounting for case where both 100 and
> customer are prepending.
>
>
> On Tue, Oct 18, 2016 at 2:28 AM, Randy via cisco-nsp <
> cisco-nsp@puck.nether.net> wrote:
>
>> _______________________________________________
>> cisco-nsp mailing list  cisco-nsp@puck.nether.net
>> https://puck.nether.net/mailman/listinfo/cisco-nsp
>> archive at http://puck.nether.net/pipermail/cisco-nsp/
>>
>>
>> ---------- Forwarded message ----------
>> From: Randy <randy_94...@yahoo.com>
>> To: Nick Cutting <ncutt...@edgetg.com>, Brandon Ewing <
>> nicot...@warningg.com>, "cisco-nsp (cisco-nsp@puck.nether.net)" <
>> cisco-nsp@puck.nether.net>
>> Cc:
>> Date: Tue, 18 Oct 2016 00:24:23 +0000 (UTC)
>> Subject: Re: [c-nsp] BGP Regex to allow ISP customers
>>
>> ----- Original Message -----
>> From: Nick Cutting <ncutt...@edgetg.com>
>> To: Brandon Ewing <nicot...@warningg.com>; "cisco-nsp (
>> cisco-nsp@puck.nether.net)" <cisco-nsp@puck.nether.net>
>> Sent: Monday, October 17, 2016 4:32 PM
>> Subject: Re: [c-nsp] BGP Regex to allow ISP customers
>>
>> Thank you for your answer.
>>
>> The problem is I do not know the ASN's of the ISP's customers.
>> Robert - I am afraid that this particular ISP does not have a community
>> for this, nor can they send me just their customer routes.
>>
>> From: Brandon Ewing [mailto:nicot...@warningg.com]
>> Sent: Monday, October 17, 2016 5:45 PM
>> To: cisco-nsp (cisco-nsp@puck.nether.net) <cisco-nsp@puck.nether.net>
>> Cc: Nick Cutting <ncutt...@edgetg.com>
>> Subject: Re: [c-nsp] BGP Regex to allow ISP customers
>>
>>
>> The original message is attached because it is signed.
>>
>>
>> Hi,
>> Perhaps something like this:
>>
>> ip as-path access-list 100 permit ^100_[0-9]*$
>> ip as-path access-list 100 permit ^100_([0-9]+)_\1_\1$
>>
>> first line would match as100 only and as100 and it's customers while the
>> second would allow three prepends from customers of as100. I am sure there
>> is a better way to do this though...
>>
>>
>> ./Randy
>> ________________________________
>>
>> _______________________________________________
>> cisco-nsp mailing list  cisco-nsp@puck.nether.net
>> https://puck.nether.net/mailman/listinfo/cisco-nsp
>> archive at http://puck.nether.net/pipermail/cisco-nsp/
>>
>>
>
_______________________________________________
cisco-nsp mailing list  cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/

Reply via email to