Hi Magraw
I believe with the routing policy example anything contained in the same stanza, so from your example...everything in the from route-filter, would be the "OR", in your example
TO-ISP
it is an "AND" because there are two variables that have to be confirmed in the from statement, and they include from tag 50 and community "ACCEPT".
So the rule of thumb, if you create a term and there are multiple variables in the same stanza, meaning an example of route-filter with a single or a few IP or Subnets, then this is an or, the moment you add an additional stanza variable into the same term, that makes it an "AND".
An example contrasting would be the following....
"OR" example - this example is saying this policy will accept anything from 1.0, 2.0, or 3.0.
policy-statement test1 {
from {
route-filter 192.168.1.0/24 exact;
route-filter 192.168.2.0/24 exact;
route-filter 192.168.3.0/24 exact;
}
then accept;
}
"AND" example - here i am saying, match ospf and match either 1.0, 2.0, or 3.0.
from {
protocol ospf; <--------AND match one of the below
route-filter 192.168.1.0/24 exact; <----OR
route-filter 192.168.2.0/24 exact; <-----OR
route-filter 192.168.3.0/24 exact; <-----OR
}
then accept
I hope this helps!
#routing-policy#JUNOS