Applying Policy Expressions
Policy expressions give the policy framework software a different way to evaluate routing policies. A policy expression uses Boolean logical operators with policies. The logical operators establish rules by which the policies are evaluated.
During evaluation of a routing policy in a policy expression, the policy action of accept, reject, or next policy is converted to the value of TRUE or FALSE. This value is then evaluated against the specified logical operator to produce output of either TRUE or FALSE. The output is then converted back to a flow control action of accept, reject, or next policy. The result of the policy expression is applied as it would be applied to a single policy; the route is accepted or rejected and the evaluation ends, or the next policy is evaluated.
Table 15 summarizes the policy actions and their corresponding TRUE and FALSE values and flow control action values. Table 16 describes the logical operators. For complete information about policy expression evaluation, see How a Policy Expression Is Evaluated.
You must enclose a policy expression in parentheses. You can place a policy expression anywhere in the
importorexportstatements and in thefrom policystatement.