From: Brian Dennis (brian@xxxxxx)
Date: Sat Aug 24 2002 - 14:03:30 GMT-3
Chang,
The requirements said "all" routes originating in AS 10. What if routes
from AS 10 were summarized and made part of an as-set?
http://www.cisco.com/warp/public/459/aggregation.html#3
Now the fun is coming up with a regexp that handles the possibility of
an as-set ;-) You should be able to telnet to
"route-views.oregon-ix.net" and practice on AS paths that include
as-sets. There is a lot of then in the real world.
Brian Dennis, CCIE #2210 (R&S/ISP Dial)
-----Original Message-----
From: ying c [mailto:bf5tgh1@yahoo.com]
Sent: Saturday, August 24, 2002 8:56 AM
To: Brian Dennis; 'Brian McGahan'; msnyder@revolutioncomputer.com;
'Bauer, Rick'
Cc: ccielab@groupstudy.com
Subject: RE: regexp fun (multiple solutions)
Brian,
I even could not come up a single case. Take the first
solution and break them down:
^1000_(.*_)?100_(.*_)?10$
? = 0 0 => ^1000_100_10$
? = 0 1 => ^1000_100_(.*_)10$
? = 1 0 => ^1000_(.*_)100_10$
? = 1 1 => ^1000_(.*_)100_(.*_)10$
I know we can replace (.*_) with (.*) and still get
the same result, but I think they pretty much cover
all the ground, so what exactly is missing?
Thanks,
Chang
--- Brian Dennis <brian@5g.net> wrote:
> Brian,
> You said "all routes originated in AS 10, passed
> through AS 100, and
> learned from AS 1000", right? There are cases where
> your regular
> expressions won't meet the criteria ;-)
>
> Brian Dennis, CCIE #2210 (R&S/ISP Dial)
>
> -----Original Message-----
> From: nobody@groupstudy.com
> [mailto:nobody@groupstudy.com] On Behalf Of
> Brian McGahan
> Sent: Thursday, August 22, 2002 9:06 PM
> To: msnyder@revolutioncomputer.com; 'Bauer, Rick'
> Cc: ccielab@groupstudy.com
> Subject: RE: regexp fun (multiple solutions)
>
> Try these:
>
> ^1000_(.*_)?100_(.*_)?10$
>
> ^1000_(|.*_)100_(|.*_)10$
>
> ^1000_([0-9]+_)*100_([0-9]+_)*10$
>
> Brian McGahan, CCIE #8593
> Director of Design and Implementation
> brian@cyscoexpert.com
>
> CyscoExpert Corporation
> Internetwork Consulting & Training
> http://www.cyscoexpert.com
> Voice: 847.674.3392
> Fax: 847.674.2625
>
This archive was generated by hypermail 2.1.4 : Sat Sep 07 2002 - 19:48:36 GMT-3