A copy of the route policy is copied to a temporary file and the editor is launched. After editing, enter Ctrl-X
to save the file and exit the editor. The available editor commands are displayed on screen.
Detailed information on using the Nano editor is available at this URL: http://www.nano-editor.org/.
Not all Nano editor features are supported on the software.
Editing Routing Policy Language set elements Using XML
RPL supports editing set elements using XML. Entries can be appended, prepended, or deleted to an existing
set without replacing it through XML.
Hierarchical Policy Conditions
The Hierarchical Policy Conditions feature enables the ability to specify a route policy within the "if" statement
of another route policy. This ability enables route-policies to be applied for configurations that are based on
hierarchical policies.
With the Hierarchical Policy Conditions feature, the software supports Apply Condition policies that can be
used with various types of Boolean operators along with various other matching statements.
Apply Condition Policies
Apply Condition policies allow usage of a route-policy within an "if" statement of another route-policy.
Consider route-policy configurations Parent, Child A, and Child B:
route-policy Child A
if destination in (10.10.0.0/16) then
set local-pref 111
endif
end-policy
!
route-policy Child B
if as-path originates-from '222' then
set community (333:222) additive
endif
end-policy
!
route-policy Parent
if apply Child A and apply Child B then
set community (333:333) additive
else
set community (333:444) additive
endif
end-policy
!
In the above scenarios, whenever the policy Parent is executed, the decision of the "if" condition in that is
selected based on the result of policies Child A and Child B. The policy Parent is equivalent to policy merged
as given below:
route-policy merged
Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.3.x
186
Implementing Routing Policy
Editing Routing Policy Language set elements Using XML