From: John Matus (jmatus@pacbell.net)
Date: Tue Oct 12 2004 - 00:07:03 GMT-3
ok, so ^5$ is beginning and ending with AS 5 and [0-9]* is any instance of
another AS with the _ separating both AS's? am i reading that correctly?
Regards,
John D. Matus
MCSE, CCNP
Office: 818-782-2061
Cell: 818-430-8372
jmatus@pacbell.net
----- Original Message -----
From: "James" <james@towardex.com>
To: "John Matus" <jmatus@pacbell.net>
Cc: "lab" <ccielab@groupstudy.com>
Sent: Monday, October 11, 2004 7:49 PM
Subject: Re: regex question for bgp
> On Mon, Oct 11, 2004 at 07:34:15PM -0700, John Matus wrote:
>> how would you solve the following requirement?
>>
>> R1 is in AS 1 and are connected to a bb router in AS 5. you want to
>> implement
>> a filtering policy on R1 to only accept routes that come from either AS 5
>> or
>> an AS connected directly to AS 5. so AS 5 can be in the as path as well
>> as
>> one more AS. how would you create a regex to satisfy this requirement?
>> i'm
>> pretty stumped <not a regex pro>
>
> ^5_[0-9]*$
>
> HTH,
> -J
>
>
> --
> James Jun TowardEX
> Technologies, Inc.
> Technical Lead Network Design, Consulting, IT
> Outsourcing
> james@towardex.com Boston-based Colocation & Bandwidth
> Services
> cell: 1(978)-394-2867 web: http://www.towardex.com , noc:
> www.twdx.net
This archive was generated by hypermail 2.1.4 : Sat Nov 06 2004 - 17:11:46 GMT-3