Saving The Target Configuration - 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 content and format of <Delete> and <Set> requests are described in additional detail in
"Cisco CRS-1 Series XML and Native Data Operations."
described in
The following example shows how to use a <Set> request to set the default metric and routing timers and
disable neighbor change logging for a particular BGP autonomous system. This request corresponds to
the following CLI commands:
router bgp 3
default-metric 10
timers bgp 60 180
bgp log neighbor changes
exit
Sample XML Client Request to Set Timers and Disable Neighbor Change Logging for a BGP Configuration
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Set>
</Set>
</Request>
Sample XML Response from the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Response MajorVersion="1" MinorVersion="0">
<Set>
</Set>
</Response>
To replace a portion of the configuration, the client application should use a <Delete> operation to
remove the unwanted configuration followed by a <Set> operation to add the new configuration. An
explicit "replace" option is not supported.
For more information on replacing the configuration, see
Configuration".

Saving the Target Configuration

The client application uses the <Save> operation along with the <File> tag to save the contents of the
target configuration to a binary file on the Cisco CRS-1 Series router.
OL-4596-01
Chapter 6, "Cisco CRS-1 Series XML and Encapsulated CLI Operations."
<Configuration>
<BGP MajorVersion="1" MinorVersion="0">
<AS>
<Naming>
<AS>3</AS>
</Naming>
<Global>
<DefaultMetric>10</DefaultMetric>
<GlobalTimers>
<Keepalive>60</Keepalive>
<Holdtime>180</Holdtime>
</GlobalTimers>
<DisableNbrLogging>true</DisableNbrLogging>
</Global>
</AS>
</BGP>
</Configuration>
<Configuration/>
Encoding CLI commands within XML tags is
"Replacing the Current Running
Cisco CRS-1 Series Carrier Routing System XML API Guide
Configuration Operations
Chapter 4,
2-33

Advertisement

Table of Contents
loading

This manual is also suitable for:

Crs-1 series

Table of Contents