9-93
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
Sample Client Request Showing Placement of Version Information
<?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>
<Global/>
</AS>
</BGP>
</Configuration>
</Get>
</Request>
Sample 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>
<Global>
.
.
.
data returned here
.
.
.
</Global>
<AS>
</BGP>
</Configuration>
<Get>
</Response>
Version Lag
The following example shows a request and response with a version mismatch. In this case, the client
minor version is behind that of the router, so the request is attempted. Note that the version number
returned in the response is the version number running on the router.
Sample XML Client Request with a Version Mismatch
<?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>
<Global/>