16.03.2014 Views

Policy Framework Configuration Guide - Juniper Networks

Policy Framework Configuration Guide - Juniper Networks

Policy Framework Configuration Guide - Juniper Networks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Junos 10.4 <strong>Policy</strong> <strong>Framework</strong> <strong>Configuration</strong> <strong>Guide</strong><br />

policy; the route is accepted or rejected and the evaluation ends, or the next policy is<br />

evaluated.<br />

Table 13 on page 60 summarizes the policy actions and their corresponding TRUE and<br />

FALSE values and flow control action values. Table 14 on page 60 describes the logical<br />

operators. For complete information about policy expression evaluation, see “How a<br />

<strong>Policy</strong> Expression Is Evaluated” on page 62.<br />

You must enclose a policy expression in parentheses. You can place a policy expression<br />

anywhere in the import or export statements and in the from policy statement.<br />

Table 13: <strong>Policy</strong> Action Conversion Values<br />

<strong>Policy</strong> Action<br />

Conversion Value<br />

Flow Control Action Conversion Value<br />

Accept<br />

TRUE<br />

Accept<br />

Reject<br />

FALSE<br />

Reject<br />

Next policy<br />

TRUE<br />

Next policy<br />

Table 14: <strong>Policy</strong> Expression Logical Operators<br />

Logical Operator<br />

<strong>Policy</strong> Expression Logic<br />

How Logical Operator Affects <strong>Policy</strong> Expression<br />

Evaluation<br />

&& (Logical AND)<br />

Logical AND requires that all values must<br />

be TRUE to produce output of TRUE.<br />

Routing policy value of TRUE and TRUE<br />

produces output of TRUE. Value of TRUE<br />

and FALSE produces output of FALSE.<br />

Value of FALSE and FALSE produces<br />

output of FALSE.<br />

If the first routing policy returns the value of TRUE, the next<br />

policy is evaluated. If the first policy returns the value of<br />

FALSE, the evaluation of the expression ends and subsequent<br />

policies in the expression are not evaluated.<br />

|| (Logical OR)<br />

Logical OR requires that at least one<br />

value must be TRUE to produce output<br />

of TRUE.<br />

Routing policy value of TRUE and FALSE<br />

produces output of TRUE. Value of TRUE<br />

and TRUE produces output of TRUE.<br />

Value of FALSE and FALSE produces<br />

output of FALSE.<br />

If the first routing policy returns the value of TRUE, the<br />

evaluation of the expression ends and subsequent policies in<br />

the expression are not evaluated. If the first policy returns the<br />

value of FALSE, the next policy is evaluated.<br />

60<br />

Copyright © 2010, <strong>Juniper</strong> <strong>Networks</strong>, Inc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!