Xml Request For All Data Within A Container - 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 5
Cisco CRS-1 Series XML and Native Data Access Techniques
<Get>
</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>
</Get>
</Response>

XML Request for All Data Within a Container

All data within a containers is retrieved by specifying the configuration or operational object class
hierarchy down to the containers of interest, including any naming information as appropriate.
The following example shows how to retrieve the configuration for the BGP neighbor with address
10.0.101.6:
Sample XML Client Request to Get All Address Family
Container
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Get>
</Get>
</Request>
OL-4596-01
<Configuration>
<BGP MajorVersion="1" MinorVersion="0"/>
</Configuration>
<Configuration>
<BGP MajorVersion="1" MinorVersion="0">
.
.
.
response data goes here
.
.
.
</BGP>
</Configuration>
<Configuration>
<BGP MajorVersion="1" MinorVersion="0">
<AS>
<Naming>
<AS>3</AS>
</Naming>
<BGPEntity>
<NeighborTable>
<Neighbor>
<Naming>
<IPAddress>
<IPV4Address>10.0.101.6</IPV4Address>
</IPAddress>
</Naming>
</Neighbor>
</NeighborTable>
</BGPEntity>
</AS>
</BGP>
</Configuration>
Available Set of Native Data Access Techniques
- Independent Configuration Data Within a BGP Neighbor
Cisco CRS-1 Series Carrier Routing System XML API Guide
5-65

Advertisement

Table of Contents
loading

This manual is also suitable for:

Crs-1 series

Table of Contents