5-74
Cisco CRS-1 Series Carrier Routing System XML API Guide
OL-4596-01
Chapter 5 Cisco CRS-1 Series XML and Native Data Access Techniques
Available Set of Native Data Access Techniques
</BGPEntity>
</AS>
</BGP>
</Configuration>
</Get>
</Response>
XML Request Using Operation Scope (Content Attribute)
The Content attribute is used on any table element in order to specify the scope of a <Get> operation.
Currently two Content attribute values are supported. (See Table 5-1.)
If the Content attribute is specified on a nontable element, it will be ignored. Note also that the Content
and Count attributes can be used together on the same table element.
In the follow example, the Content attribute is used to list all configured BGP neighbors:
Sample XML Client Request Using the All Content Attribute
<?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 Content=”Entries”/>
</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 Content=”Entries”>
<Neighbor>
Table 5-1 Content Attributes
Content Attribute Description
All Use to get all leaf items and their values. All is the default when the Content
attribute is not specified on a table element.
Entries Use to get the Naming information for each entry within a specified table
object class. Entries provides a one-level get capability.