9-94
Cisco CRS-1 Series Carrier Routing System XML API Guide
OL-4596-01
Chapter 9 Cisco CRS-1 Series XML Schema Versioning
Run-Time Use of Version Information
</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" IteratorID=”1”>
<Get>
<Configuration>
<BGP MajorVersion=”1” MinorVersion=”1”>
<AS>
<Naming>
<AS>3</AS>
</Naming>
<Global>
.
.
.
data returned here
.
.
.
</Global>
<AS>
</BGP>
</Configuration>
<Get>
</Response>
Version Creep
The following example shows a request and response with a version mismatch. In this case, the client
minor version is ahead of that of the router minor version, resulting in an error response.
Sample XML Request with a Minor Version Mismatch Ahead of the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Get>
<Configuration>
<BGP MajorVersion=”1” MinorVersion=”1”/>
</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" IteratorID=”12345678”>
<Get xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ErrorCode=”0x4368ac00"
ErrorMsg="'XMLMDA' detected the 'warning'
condition 'The XML version specified in the XML request is not compatible with
the version running on the router'">
<Configuration>
<BGP MajorVersion=”1” MinorVersion=”0” ErrorCode="0x42f8e800"
ErrorMsg="' detected the 'warning' condition
' A version check on a class has failed'"/>
</Configuration>
<Get>