[c-nsp] Expression to match 1, 2, or 3 AS paths

Darryl Dunkin ddunkin at netos.net
Fri Jun 13 22:47:51 EDT 2008


You would have to specify the AS, as using wildcard digits won't
identify repetition.

If you had 500 500 500 400, or 500 500 400 400, where 500 was connected
to you: ^500(_500)*(_400)*$

-----Original Message-----
From: cisco-nsp-bounces at puck.nether.net
[mailto:cisco-nsp-bounces at puck.nether.net] On Behalf Of Diogo Montagner
Sent: Friday, June 13, 2008 18:54
To: deepak at ai.net
Cc: cisco-nsp at puck.nether.net
Subject: Re: [c-nsp] Expression to match 1, 2, or 3 AS paths

Great!

And how I could match prepends, ie, how I could identify AS paths
which has prepends ?

Regards,
./diogo -montagner


On Fri, Jun 13, 2008 at 7:21 PM, Deepak Jain <deepak at ai.net> wrote:
>
> And since you can't have non-numeric AS numbers... you can always use
"."
>
> like ^.+$
>
> DJ
>
> Daniel Faubel wrote:
>>
>> I like to use this:
>>
>> ^[0-9]+$
>> ^[0-9]+_[0-9]+$
>> ^[0-9]+_[0-9]+_[0-9]+$
>>
>> -Daniel
>>
>> -----Original Message-----
>> From: cisco-nsp-bounces at puck.nether.net
>> [mailto:cisco-nsp-bounces at puck.nether.net] On Behalf Of james edwards
>> Sent: Friday, June 13, 2008 1:41 PM
>> To: cisco-nsp at puck.nether.net
>> Subject: [c-nsp] Expression to match 1, 2, or 3 AS paths
>>
>> What have i done wrong here, I used to use this to match 1,2 and 3 AS
>> path,
>> for filtering down a full table:
>>
>> ^[0-9]*$
>> ^[0-9]*_[0-9]*$
>> ^[0-9]*_[0-9]*_[0-9]*$
>>
>>
> _______________________________________________
> cisco-nsp mailing list  cisco-nsp at 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 at puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/


More information about the cisco-nsp mailing list