Quantcast
Channel: All Routing posts
Viewing all articles
Browse latest Browse all 8688

Re: How to match one of community and trigger action ?

$
0
0

You policy looks ok to me..

 

However, i have not tried 3 communities using regular expressions in BGP community.

 

https://www.juniper.net/documentation/en_US/junos/topics/usage-guidelines/policy-configuring-as-path-regular-expressions-to-use-as-routing-policy-match-conditions.html

 

Refer above, it does say not specifically that you can match 3 expressions in a go..

 

You can try following to simplify..

 

 set policy-options  community TW members " 9527:*"

 

or 

set policy-options  community TW1 members " 9527:1"

set policy-options  community TW2 members " 9527:2"

set policy-options  community TW3 members " 9527:3"

and match this 3 communities in your policy like..

 

set policy-options policy-statement GOTW term 1 from community [TW1 TW2 TW3]

 

 


Viewing all articles
Browse latest Browse all 8688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>