Terminology for policy execution: "true-path", "false-path", and "continue-path".
Route-policy parent
If apply hierarchical_policy_condition then
TRUE-PATH : if hierarchical_policy_condition returns TRUE then this path will
be executed.
Else
FALSE-PATH : if hierarchical_policy_condition returns FALSE then this path will
be executed.
End-if
CONTINUE-PATH : Irrespective of the TRUE/FALSE this path will be executed.
End-policy
BehaviorPossible done statement execution
sequence
Hierarchical policy conditions
Marks the return value as "true"
and continues execution within the
same policy condition.
If there is no statement after
"pass", returns "true".
pass
Continue_list
pass
Marks the return value as "true"
and continues execution till the
done statement. Returns "true" to
the apply policy condition to take
"true-path".
pass or set action statement
Stmt_list
done
pass followed by done
Returns " false". Condition takes
"false-path".
Stmt_list without pass or set
operation
DONE
done
The prefix is dropped or rejected.Stmt_list
drop
Stmt_list
drop
Nested Wildcard Apply Policy
The hierarchical constructs of Routing Policy Language (RPL) allows one policy to refer to another policy.
The referred or called policy is known as a child policy. The policy from which another policy is referred is
called calling or parent policy. A calling or parent policy can nest multiple child policies for attachment to a
common set of BGP neighbors. The nested wildcard apply policy allows wildcard (*) based apply nesting.
The wildcard operation permits declaration of a generic apply statement that calls all policies that contain a
specific defined set of alphanumeric characters, defined on the router.
A wildcard is specified by placing an asterisk (*) at the end of the policy name in an apply statement. Passing
parameters to wildcard policy is not supported. The wildcard indicates that any value for that portion of the
apply policy matches.
To illustrate nested wildcard apply policy, consider this policy hierarchy:
route-policy Nested_Wilcard
apply service_policy_customer*
Cisco ASR 9000 Series Aggregation Services Router Routing Configuration Guide, Release 5.3.x
612
Implementing Routing Policy
Nested Wildcard Apply Policy