Xml Request Using Wildcarding (Match Attribute) - 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

Available Set of Native Data Access Techniques
</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 Using Wildcarding (Match Attribute)

Use the Match attribute for "wildcarding" of object class naming information. Note that only
all-wildcarded node IDs are supported for the first customer shipping of the Cisco CRS-1 Series XML
API.
Match="*" can be used on any Naming attribute within a <Get> or <Delete> operation to effectively
specify a "wildcarded" value for that attribute. The operation applies to all instances of the requested
objects.
The Match attribute is supported only for table entries. Furthermore, "*" is the only value currently
Note
supported for Match. Other wildcarding or matching specifications may be supported in future releases.
The following example shows how to use the Match attribute to get the <RemoteAS> value for all
configured BGP neighbors:
Sample XML Client Request Using the Match Attribute Wildcarding
<?xml version="1.0" encoding="UTF-8"?>
Cisco CRS-1 Series Carrier Routing System XML API Guide
5-70
<IPV4Address>10.0.101.6</IPV4Address>
</IPAddress>
</Naming>
<!-- Gets the following two leaf objects for this neighbor -->
<RemoteAS/>
<EBGPMultihopMaxHopCount/>
</Neighbor>
<Neighbor>
<Naming>
<IPAddress>
<!-- Gets all configuration data for this neighbor -->
<IPV4Address>10.0.101.7</IPV4Address>
</IPAddress>
</Naming>
</Neighbor>
</NeighborTable>
</BGPEntity>
</AS>
</Configuration>
</Get>
<Configuration>
.
.
.
response data returned here for both
neighbors
.
.
.
</Configuration>
Chapter 5
Cisco CRS-1 Series XML and Native Data Access Techniques
OL-4596-01

Advertisement

Table of Contents
loading

This manual is also suitable for:

Crs-1 series

Table of Contents