Implementing Routing Policy on Cisco IOS XR Software
Information About Implementing Routing Policy

RC-236

Cisco IOS XR Routing Configuration Guide
RP/0/RP0/CPU0:router# edit route-policy policy_A
----------------------------------------
== MicroEMACS 3.8b () == rpl_edit.139281 ==
if destination in (2001::/8) then
drop
endif
end-policy
!
== MicroEMACS 3.8b () == rpl_edit.139281 ==
Parsing.
83 bytes parsed in 1 sec (82)bytes/sec
Committing.
1 items committed in 1 sec (0)items/sec
Updating.
Updated Commit database in 1 sec
RP/0/RP0/CPU0:router#

If there are parse errors, you are asked whether editing should continue:

RP/0/RP0/CPU0:router#edit route-policy policy_B
== MicroEMACS 3.8b () == rpl_edit.141738
route-policy policy_B
set metric-type type_1
if destination in (2001::/8) then
drop
endif
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 l eft off. If you answer no, the

running configuration is not changed and the editing session is e nded.

Editing Routing Policy Configuration Elements Using the 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 global configuration mode.