Rolling Back Configuration Changes To A Specified Number Of Commits - 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

Chapter 2
Cisco CRS-1 Series XML Router Configuration and Management
The following example shows a request to roll back the configuration changes to a specified commit
identifier. This request corresponds to the CLI command rollback configuration to 1000000072
Sample XML Request to Roll Back the Configuration Changes to a Specified Commit Identifier
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Rollback Label="BGPRollback1" Comment="My BGP rollback">
</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 Label="BGPRollback1"
</Rollback>
</Response>
Note
Note that the commit identifier can also be obtained by using the <GetConfigurationHistory> operation
described in the section

Rolling Back Configuration Changes to a Specified Number of Commits

The client application uses the <Rollback> operation with the <Previous> tag to roll back the
configuration changes made during the most recent [x] commits, where [x] is a number ranging from 0
to the number of saved commits in the commit database. If the <Previous> value is specified as "0",
nothing is rolled back. The target configuration must be unlocked at the time the <Rollback> operation
is requested.
If the roll back operation is successful, the response will contain both the <Rollback> and <Previous>
tags. If the roll back operation fails, the response will also contain the ErrorCode and ErrorMsg attributes
indicating the cause of the rollback failure.
The following optional attributes can be specified with the <Rollback> operation by the client
application when rolling back a specified number of commits:
The following example shows a request to roll back the configuration changes made during the previous
3 three commits. This request corresponds to the CLI command rollback configuration last 3.
Sample XML Request to Roll Back Configuration Changes to a Specified Number of Commits
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Rollback>
OL-4596-01
Additional Cisco CRS-1 Series Router Configuration and Management Options Using XML
Comment—A user-specified comment to be associated with the roll back in the Cisco CRS-1 Series
router commit database.
<CommitID>1000000072</CommitID>
Comment="My BGP rollback">
<CommitID>1000000072</CommitID>
"Getting Configuration
Label—A unique user-specified label to be associated with the roll back in the Cisco CRS-1 Series
router commit database. If specified, the label must begin with an alphabetic character and cannot
match any existing label in the Cisco CRS-1 Series router commit database.
Comment—A user-specified comment to be associated with the roll back in the Cisco CRS-1 Series
router commit database.
History".
Cisco CRS-1 Series Carrier Routing System XML API Guide
.
2-41

Advertisement

Table of Contents
loading

This manual is also suitable for:

Crs-1 series

Table of Contents