EasyManuals Logo
Home>Cisco>Network Router>CRS-1 - Carrier Routing System Router

Cisco CRS-1 - Carrier Routing System Router Api Guide

Cisco CRS-1 - Carrier Routing System Router
127 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
Page #32 background imageLoading...
Page #32 background image
2-32
Cisco CRS-1 Series Carrier Routing System XML API Guide
OL-4596-01
Chapter 2 Cisco CRS-1 Series XML Router Configuration and Management
Configuration Operations
Loading the Target Configuration
The client application uses the <Load> operation along with the <File> tag to populate the target
configuration with the contents of a binary configuration file previously saved on the router using the
<Save> operation.
Use the <File> tag to name the file from which the configuration is to be loaded. When you use the
<File> tag to name the file from which the configuration is to be loaded, specify the complete path of
the file to be loaded.
If the load operation is successful, the response will contain both the <Load> and <File> tags. If the load
operation fails, the response will also contain the ErrorCode and ErrorMsg attributes indicating the cause
of the load failure.
The following example shows a request to load the target configuration from the contents of the file
my_bgp.cfg.
Sample XML Client Request to Load the Target Configuration from a Named File
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Load>
<File>disk0:/my_bgp.cfg</File>
</Load>
</Request>
Sample XML Response from the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Response MajorVersion="1" MinorVersion="0">
<Load>
<File>disk0:/my_bgp.cfg</File>
</Load>
</Response>
See also the “Setting the Target Configuration Explicitly” section on page 32.
Setting the Target Configuration Explicitly
The client application modifies the target configuration as needed using the <Delete> and <Set>
operations. Note that there are not separate “Create” and “Modify” operations, because a <Set>
operation for an item will result in the creation of the item if it does not already exist in the configuration,
and a modification of the item if it does already exist.
The client application can optionally use CLI commands encoded within XML tags to modify the target
configuration.
If the operation to modify the target configuration is successful, the response will contain just the
<Delete/> or <Set/> tag. If the operation fails, the response will include the element or object hierarchy
passed in the request along with one or more ErrorCode and ErrorMsg attributes indicating the cause of
the failure.
A syntax check will be performed whenever the client application writes to the target configuration. A
successful write to the target configuration, however, does not guarantee that the configuration change
will succeed when a subsequent commit of the target configuration is attempted. For example, errors
resulting from failed verifications may be returned from the commit. The error information returned
from the XML API is described in more detail in the section “Error Reporting”.

Table of Contents

Other manuals for Cisco CRS-1 - Carrier Routing System Router

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cisco CRS-1 - Carrier Routing System Router and is the answer not in the manual?

Cisco CRS-1 - Carrier Routing System Router Specifications

General IconGeneral
BrandCisco
ModelCRS-1 - Carrier Routing System Router
CategoryNetwork Router
LanguageEnglish

Related product manuals