
Behavior of pass/drop/done RPL Statements for Simple Hierarchical Policies
This table describes the behavior of
pass
/
drop
/
done
RPL statements, with a possible sequence for executing
the
done
statement for Simple Hierarchical Policies.
Behavior
Possible done statement execution
sequence
Route-policies with simple
hierarchical policies
Marks the prefix as "acceptable"
and continues with execution of
continue_list statements.
pass
Continue_list
pass
Rejects the route immediately on
hitting the
drop
statement and stops
policy execution.
Stmts_list
drop
drop
Accepts the route immediately on
hitting the
done
statement and stops
policy execution.
Stmts_list
done
done
Exits immediately at the
done
statement with "accept route".
pass
Statement_list
done
pass
followed by
done
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
Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
447
Implementing Routing Policy
Behavior of pass/drop/done RPL Statements for Simple Hierarchical Policies