Browsing The Changed 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

Browsing the Changed Configuration

When a client application issues a <Get> request with a Source type of ChangedConfig, the response
will contain the OperationType attribute to indicate whether the returned changes to the target
configuration were a result of <Set> or <Delete> operations.
Use <Get> to browse uncommitted target configuration changes.
The following example shows <Set> and <Delete> operations that modify the BGP configuration
followed by a <Get> request to browse the uncommitted BGP configuration changes. These requests
correspond to the following CLI commands:
router bgp 3
default-metric 10
no neighbor 10.0.101.8
exit
show config
Sample XML to Modify the BGP Configuration
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Set>
</Set>
<Delete>
</Delete>
</Request>
Sample XML Response from the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
OL-4596-01
<Configuration>
<BGP MajorVersion="1" MinorVersion="0">
<AS>
<Naming>
<AS>3</AS>
</Naming>
<Global>
<DefaultMetric>10</DefaultMetric>
</Global>
</AS>
</BGP>
</Configuration>
<Configuration>
<BGP>
<AS>
<Naming>
<AS>3</AS>
</Naming>
<BGPEntity>
<NeighborTable>
<Neighbor>
<Naming>
<IPAddress>
<IPV4Address>10.0.101.8</IPV4Address>
</IPAddress>
</Naming>
</Neighbor>
</NeighborTable>
</BGPEntity>
</AS>
</BGP>
</Configuration>
Cisco CRS-1 Series Carrier Routing System XML API Guide
Configuration Operations
2-29

Advertisement

Table of Contents
loading

This manual is also suitable for:

Crs-1 series

Table of Contents