Re: regular express question

From: Joe Chang (changjoe@earthlink.net)
Date: Thu Apr 10 2003 - 16:06:17 GMT-3


Slight problem with that expression. It will match a path of say "3500
98400" or "2400 983500" also.

Try this:

ip as-path access-list 10 permit _2400_
ip as-path access-list 20 permit _3500_

route-map map1 permit 10
 match as-path 10
 match as-path 20
 set ...

----- Original Message -----
From: "Ram Shummoogum" <rshummoo@ca.ibm.com>
To: <ahmed_hassan@rayatelecom.net>
Cc: <ccielab@groupstudy.com>
Sent: Thursday, April 10, 2003 1:22 PM
Subject: Re: regular express question

> Try this.
>
> ip as-path access-list 1 permit _3550_(.*)2400_|_2400_(.*)3500_
> !
> route-map AND permit 10
> match as-path 1
> set metric 5000
>
>
>
>
>
> "Ahmed Hassan" <ahmed_hassan@rayatelecom.net>@groupstudy.com on 04/10/2003
> 10:35:26 AM
>
> Please respond to "Ahmed Hassan" <ahmed_hassan@rayatelecom.net>
>
> Sent by: nobody@groupstudy.com
>
>
> To: <ccielab@groupstudy.com>
> cc:
> Subject: regular express question
>
>
> Hi GROUP ,
> Can any one tell me how to make a regular expression that have an logical
> "AND" condition , for example
> I wan a regular expression that will filter BGP table to get expressions
> contain both AS2400 and AS3500 the order is not important
> best regards
>
> *************************************
> Ahmed Hassan El-shinnawy
> Network Planning and configuration Engineer
> Raya Telecom
> ahmed_hassan@rayatelecom.net
> *************************************



This archive was generated by hypermail 2.1.4 : Thu May 01 2003 - 13:35:50 GMT-3