regex - JunOS Regular Expressions for AS Path -


i want write regex in juniper mx960 router bgp including 3 paths first element constant, second , third wildcard. found can put numbers manually this:

9121+ (one|two|three|...) (one|two|three|...)

this doesn't work me 'cause don't know whole numbers in second , third level. can anything. want them "any".

9121+ any+ any+ « need this.

the exact answer may depend on version of junos using.

however, syntax should work:

show route aspath-regex 9121 (.*){2} 

this means, match as9121 first element, , number 2 times.

here there lot of examples:

http://www.juniper.net/techpubs/en_us/junos15.1/topics/usage-guidelines/policy-configuring-as-path-regular-expressions-to-use-as-routing-policy-match-conditions.html


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -