Getting Rollback Changes - Cisco CRS-1 - Carrier Routing System Router Api Manual

Carrier routing system xml api guide
Hide thumbs Also See for CRS-1 - Carrier Routing System Router:
Table of Contents

Advertisement

Additional Cisco CRS-1 Series Router Configuration and Management Options Using XML
</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>
</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>
</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>
</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">
Cisco CRS-1 Series Carrier Routing System XML API Guide
2-42
<Previous>3</Previous>
<Previous>3</Previous>
.
<Configuration Source="RollbackChanges" ToCommitID="1000000072"/>
<Configuration Source="RollbackChanges" ToCommitID="1000000072">
.
.
.
rollback changes returned here
.
.
.
</Configuration>
.
Chapter 2
Cisco CRS-1 Series XML Router Configuration and Management
OL-4596-01

Advertisement

Table of Contents
loading

This manual is also suitable for:

Crs-1 series

Table of Contents