2-42
Cisco CRS-1 Series Carrier Routing System XML API Guide
OL-4596-01
Chapter 2 Cisco CRS-1 Series XML Router Configuration and Management
Additional Cisco CRS-1 Series Router Configuration and Management Options Using XML
<Previous>3</Previous>
</Rollback>
</Request>
Sample XML Response from the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Response MajorVersion="1" MinorVersion="0">
<Rollback>
<Previous>3</Previous>
</Rollback>
</Response>
Getting Rollback Changes
The client application can read a set of rollback changes using the <Get> operation along with the
<Configuration> request type tag when it includes both the Source attribute option RollbackChanges and
one of the additional attributes ToCommitID or PreviousCommits.
The set of roll back changes are the changes that will be applied when the <Rollback> operation is
performed using the same parameters. It is recommended that the client application read or verify the set
of roll back changes before performing the roll back.
The following example shows the use of the ToCommitID attribute to get the rollback changes for rolling
back to a specific commit. This request corresponds to the CLI command show rollback-changes to
1000000072
.
Sample XML Client Request to Get Rollback Changes Using the ToCommitID Attribute
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Get>
<Configuration Source=”RollbackChanges” ToCommitID=”1000000072”/>
</Get>
</Request>
Sample XML Response from the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Response MajorVersion="1" MinorVersion="0">
<Get>
<Configuration Source=”RollbackChanges” ToCommitID=”1000000072”>
.
.
.
rollback changes returned here
.
.
.
</Configuration>
</Get>
</Response>
The following example shows the use of the PreviousCommits attribute to get the roll back changes for
rolling back a specified number of commits. This request corresponds to the CLI command show
rollback-changes last 4
.
Sample XML Client Request to Get Roll Back Changes Using the PreviousCommits Attribute
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">