[j-nsp] as-path filtering

Ross Vandegrift ross at kallisti.us
Thu Jun 25 11:29:55 EDT 2009


On Thu, Jun 25, 2009 at 11:17:58AM +0545, Samit wrote:
> Works..!
> 
> Thanks for you help.
> 
> Samit
> 
> 
> Nalkhande Tarique Abbas wrote:
> > Try this..
> > 
> > 
> > set policy-options as-path a ".*1234"
> > set policy-options as-path b ".*5678"


I didn't notice this before, but you probably don't mean that.  The
regex above also matches AS paths like "1000 2000 71234 3000" and "1000
2000 12345678 3000" 

You want: 
set policy-options as-path a ".* 1234$"
set policy-options as-path b ".* 5678$"

Ross

-- 
Ross Vandegrift
ross at kallisti.us

"If the fight gets hot, the songs get hotter.  If the going gets tough,
the songs get tougher."
	--Woody Guthrie


More information about the juniper-nsp mailing list