
end-policy
!
== MicroEMACS 3.8b () == rpl_edit.141738 ==
Parsing.
105 bytes parsed in 1 sec (103)bytes/sec
% Syntax/Authorization errors in one or more commands.!! CONFIGURATION
FAILED DUE TO SYNTAX/AUTHORIZATION ERRORS
set metric-type type_1
if destination in (2001::/8) then
drop
endif
end-policy
!
Continue editing? [no]:
If you answer
yes
, the editor continues on the text buffer from where you left off. If you answer
no
, the running
configuration is not changed and the editing session is ended.
Editing Routing Policy Configuration Elements Using the Vim Editor
Editing elements of a routing policy with Vim (Vi IMproved) is similar to editing them with Emacs except
for some feature differences such as the keystrokes to save and quit. To write to a current file and exit, use
the
:wq
or
:x
or
ZZ
keystrokes. To quit and confirm, use the
:q
keystrokes. To quit and discard changes, use
the
:q!
keystrokes.
You can reference detailed online documentation for Vim at this URL:
Editing Routing Policy Configuration Elements Using CLI
The CLI allows you to enter and delete route policy statements. You can complete a policy configuration
block by entering applicable commands such as
end-policy
or
end-set
. Alternatively, the CLI interpreter
allows you to use the
exit
command to complete a policy configuration block. The
abort
command is used
to discard the current policy configuration and return to XR Config mode.
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, Cisco IOS XR RPL 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, which Cisco IOS XR RPL supports, allow usage of a route-policy within an "if"
statement of another route-policy.
Consider route-policy configurations
Parent
,
Child A
, and
Child B
:
Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
445
Implementing Routing Policy
Editing Routing Policy Configuration Elements Using the Vim Editor