[j-nsp] aspath-regex to find any prepended routes

Jeff Haas jhaas at juniper.net
Thu Jan 28 14:35:09 EST 2016


> On Jan 28, 2016, at 2:25 PM, Christopher Costa <ccosta at gaikai.com> wrote:
> 
> Is there an aspath-regex to find any prepended as-path?  For example,
> something like what's listed below, but the origin AS isn't known.
> 
> show route aspath-regex ".* 12345{2,}"

The functionality you're looking for is called a backref in the context of a regular expression. E.g. the \1 behavior in egrep.

The policy language doesn't currently support that.  There's an old PR somewhere in the system - over a decade old - asking for the functionality.

-- Jeff



More information about the juniper-nsp mailing list