Training, Certification, and Career Topics
Highlighted
Training, Certification, and Career Topics

logical AND, OR for multiple match in Policy, which is it?

‎06-29-2011 06:19 PM

I am reading Junos Study Guide (fasttrak). Says on page 28 "When evaluating the from statement, the Junos OS performs the evaluation as a logical OR between arguments to a single match criterion and a logical AND between different match criteria. In other words, for the from statement to be considered true, the item being evaluated must match at least one of the arguments to each given match criterion."

This link Configuring Match Conditions in Routing Policy Terms "In the from statement, you define the criteria that an incoming route must match. You can specify one or more match conditions. If you specify more than one, they all must match the route for a match to occur. "

Appears inconsistent wording to me, or what am I missing?

I would think logical AND for dissimilar criteria, whereas OR for similar.

2 REPLIES 2
Highlighted
Training, Certification, and Career Topics
Solution
Accepted by topic author readmore
‎08-26-2015 01:27 AM

Re: logical AND, OR for multiple match in Policy, which is it?

‎06-29-2011 10:07 PM

Hi read,

 

The wording does get a bit awkward up there.  You are interpreting it correctly though, your last sentence is right.  So ...

 

from source-address 1.1.1.1/32 *OR* 2.2.2.2/32

 

from source-address 1.1.1.1/32 *AND* destination-address 2.2.2.2/32

 

 

Regards,

Kieran Milne

Tech Lead, JNCP

 

 

Training, Certification, and Career Topics

Re: logical AND, OR for multiple match in Policy, which is it?

‎06-30-2011 01:26 AM

Thanks

Feedback