CHAPTER
6-79
Cisco CRS-1 Series Carrier Routing System XML API Guide
OL-4596-01
6
Cisco CRS-1 Series XML and Encapsulated CLI
Operations
The extensible markup language (XML) interface for the Cisco CRS-1 Series Carrier Routing System
(Cisco CRS-1 Series) provides support for XML encapsulated command-line interface (CLI) commands
and responses.
This chapter provides information on XML CLI command tags.
Note The XML API code is available for use on any Cisco platform that runs Cisco IOS XR software.
XML CLI Command Tags
A client application can request a CLI command by encoding the text for the command within a pair of
<CLI> start and </CLI> end tags, and <Configuration> tags. The router will then respond with the
uninterpreted CLI text result.
Note XML encapsulated CLI commands use the same target configuration as the corresponding XML
operations <Get>, <Set>, and <Delete>.
When used for CLI operations, the <Configuration> tag supports the optional Operation attribute, which
can take one of the values listed in Table 6-1.
Table 6-1 Operational Attribute Values
Operational Attribute Value Operational Attribute Value Description
Apply Specifies that the commands should be executed or applied
(default).
Help Gets help on the last command in the list of commands sent in the
request. There should not be any empty lines after the last command
(because the last command is considered to be the one on the last
line)
CommandCompletion Completes the last keyword of the last command. Apart from not
allowing empty lines at the end of the list of commands sent in the
request, when this option is used there should not be any white
spaces after the partial keyword to be completed.