EasyManua.ls Logo

Cisco NCS 5500 Series

Cisco NCS 5500 Series
268 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Editing Routing Policy Configuration Elements
RPL is based on statements rather than on lines. That is, within the begin-end pair that brackets policy statements
from the CLI, a new line is merely a separator, the same as a space character.
The CLI provides the means to enter and delete route policy statements. RPL provides a means to edit the
contents of the policy between the begin-end brackets, using a text editor. The following text editors are
available on the software for editing RPL policies:
Nano (default)
Emacs
Vim
Editing Routing Policy Configuration Elements Using Emacs Editor
To edit the contents of a routing policy using the Emacs editor, use the following CLI command in XR EXEC
mode:
edit
route-policy
name
emacs
A copy of the route policy is copied to a temporary file and the editor is launched. After editing, save the
editor buffer by using the Ctrl-X and Ctrl-S keystrokes. To save and exit the editor, use the Ctrl-X and Ctrl-C
keystrokes. When you quit the editor, the buffer is committed. If there are no parse errors, the configuration
is committed:
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
Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR Release 6.3.x
184
Implementing Routing Policy
Editing Routing Policy Configuration Elements

Table of Contents

Other manuals for Cisco NCS 5500 Series

Related product manuals