4-61
Cisco CRS-1 Series Carrier Routing System XML API Guide
OL-4596-01
Chapter 4 Cisco CRS-1 Series XML and Native Data Operations
Native Data Operation Content
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>
<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>
</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>
<Configuration/>
</Delete>
</Response>