RE: regex question for bgp

From: Peter Ding (pding@cisco.com)
Date: Tue Oct 12 2004 - 00:09:34 GMT-3


How about this one?

^5(_[0-9]+)?$

PD

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
James
Sent: Monday, October 11, 2004 7:49 PM
To: John Matus
Cc: lab
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