Specifications

4-60
Cisco CRS-1 Series Carrier Routing System XML API Guide
OL-4596-02
Chapter 4 Cisco CRS-1 Series XML and Native Data Operations
Native Data Operation Content
Get Request of Nonexistent Data: Example
The following example shows a native data request to get the configuration values for a particular BGP
neighbor similar to the previous example. However, in this example the client application is requesting
the configuration for a nonexistent neighbor. Instead of returning an error, the Cisco CRS-1 Series router
returns the requested object class hierarchy, but without any data.
Note Whenever a client application attempts to get nonexistent data, the Cisco CRS-1 Series router usually
cannot treat this as an error and returns the empty object class hierarchy in the response.
Sample XML Client Request to <Get> Configuration Data for a Nonexistent BGP Neighbor
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Get>
<Configuration>
<BGP MajorVersion=”1” MinorVersion=”0”>
<AS>
<Naming>
<AS>3</AS>
</Naming>
<BGPEntity>
<NeighborTable>
<Neighbor>
<Naming>
<IPAddress>
<IPV4Address>10.0.101.99</IPV4Address>
</IPAddress>
</Naming>
</Neighbor>
</NeighborTable>
</BGPEntity>
</AS>
</BGP>
</Configuration>
</Get>
</Request>
Sample XML Response from the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Response MajorVersion="1" MinorVersion="0">
<Get>
<Configuration>
<BGP MajorVersion=”1” MinorVersion=”0”>
<AS>
<Naming>
<AS>3</AS>
</Naming>
<BGPEntity>
<NeighborTable>
<Neighbor>
<Naming>
<IPAddress
<IPV4Address>10.0.101.99</IPV4Address>
</IPAddress
</Naming>
.
.
.
no data returned