Specifications

2-44
Cisco CRS-1 Series Carrier Routing System XML API Guide
OL-4596-02
Chapter 2 Cisco CRS-1 Series XML Router Configuration and Management
Additional Cisco CRS-1 Series Router Configuration and Management Options Using XML
<LockHeld>false</LockHeld>
</Session>
</GetConfigurationSessions>
</Response>
Replacing the Current Running Configuration
A client application replaces the current running configuration on the router with an off-the-box
configuration file by performing the following operations in sequence:
1. Lock the configuration.
2. Delete the entire configuration using a <Delete> operation along with the <Configuration/> tag.
3. Load the desired off-the-box configuration into the target configuration using one or more <Set>
operations (assuming that the entire desired configuration is available in XML format, perhaps from
a previous <Get> of the entire configuration). As an alternative, use an appropriate copy command
enclosed within <CLI> tags.
4. Commit the target configuration.
The following example illustrates these steps:
Sample XML Request to Lock the Current Running Configuration
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Lock/>
</Request>
Sample XML Response from the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Response MajorVersion="1" MinorVersion="0">
<Lock/>
</Response>
Sample XML Request to Delete the Current Running Configuration
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Delete>
<Configuration/>
</Delete>
</Delete>
Sample XML Response from the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Response MajorVersion="1" MinorVersion="0">
<Delete>
<Configuration/>
</Delete>
</Response>
Sample XML Request to Set the Current Running Configuration
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Set>
<Configuration>
.
.