AFAIK, NOT (!) operator isn't currently supported in AS-PATH Regex.

Moreso based on your requirement you should only block routes
originating form AS100, I don't understand the need for regex to accept
routes transiting AS100 (unless you explicity block it elsewhere)?

The below should suffice your requirement,

set policy-options as-path No100orig ".* 100"
 


Thanks & Regards,
Tarique A. Nalkhande


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Judah Scott
Sent: Thursday, August 13, 2009 1:26 AM
To: Fahad Khan
Cc: [email protected]
Subject: Re: [j-nsp] AS-path

Without testing It seems like:

set as-path 100not1000orig ".* 100 .* (!1000)$"

should work.

Thanks,
J Scott



On Wed, Aug 12, 2009 at 11:24 AM, Fahad Khan <[email protected]>
wrote:

> Dear Folks,
>
> what should be the As-path reg expression for getting the routes
transiting
> AS 100 and not originating from  AS 100????
>  regards
>
> --
> Muhammad Fahad Khan
> IT Specialist
> Global Technology Services, IBM
> [email protected]
> +92-321-2370510
> +92-301-8247638
> http://www.linkedin.com/in/muhammadfahadkhan
> http://fahad-internetworker.blogspot.com
> _______________________________________________
> juniper-nsp mailing list [email protected]
> https://puck.nether.net/mailman/listinfo/juniper-nsp
>
_______________________________________________
juniper-nsp mailing list [email protected]
https://puck.nether.net/mailman/listinfo/juniper-nsp
_______________________________________________
juniper-nsp mailing list [email protected]
https://puck.nether.net/mailman/listinfo/juniper-nsp

Reply via email to