Delete Request: Example - 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 4
Cisco CRS-1 Series XML and Native Data Operations

Delete Request: Example

The following example shows a native data request to delete the address-independent configuration for
a particular BGP neighbor. Note that if a request is made to delete an item that does not exist in the
current configuration, an error is not returned to the client application. So in the following example, the
returned result will be the same as in the previous example: the empty <Delete/> tag, whether or not the
specified BGP neighbor exists.
This request is equivalent to the following CLI commands:
router bgp 3
no neighbor 10.0.101.9
exit
Sample XML Client Request to <Delete> the Address-Independent Configuration Data for a BGP Neighbor
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Delete>
</Delete>
</Request>
Sample XML Response from the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Response MajorVersion="1" MinorVersion="0">
<Delete>
</Delete>
</Response>
OL-4596-01
<Configuration>
<BGP MajorVersion="1" MinorVersion="0">
<AS>
<Naming>
<AS>3</AS>
</Naming>
<BGPEntity>
<NeighborTable>
<Neighbor>
<Naming>
<IPAddress>
<IPV4Address>10.0.101.9</IPV4Address>
</IPAddress>
</Naming>
</Neighbor>
</NeighborTable>
</BGPEntity>
</AS>
</BGP>
</Configuration>
<Configuration/>
Cisco CRS-1 Series Carrier Routing System XML API Guide
Native Data Operation Content
4-61

Advertisement

Table of Contents
loading

This manual is also suitable for:

Crs-1 series

Table of Contents