BehaviorPossible done statement execution
sequence
Route-policies with simple
hierarchical policies
This is an invalid scenario at
execution point of time. Policy
terminates execution at the drop
statement itself, without going
through the statement list or the
done statement; the prefix will be
rejected or dropped.
drop
Statement list
done
drop followed by done
Behavior of pass/drop/done RPL Statements for Hierarchical Policy Conditions
This section describes the behavior of pass/drop/done RPL statements, with a possible sequence for executing
the done statement for Hierarchical Policy Conditions.
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
Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.3.x
188
Implementing Routing Policy
Behavior of pass/drop/done RPL Statements for Hierarchical Policy Conditions