Chapter 9
Cisco CRS-1 Series XML Schema Versioning
Sample Client Request Showing Placement of Version Information
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Get>
</Get>
</Request>
Sample Response From the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Response MajorVersion="1" MinorVersion="0">
<Get>
<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>
OL-4596-01
<Configuration>
<BGP MajorVersion="1" MinorVersion="0">
<AS>
<Naming>
<AS>3</AS>
</Naming>
<Global/>
</AS>
</BGP>
</Configuration>
<Configuration>
<BGP MajorVersion="1" MinorVersion="0">
<AS>
<Naming>
<AS>3</AS>
</Naming>
<Global>
.
.
.
data returned here
.
.
.
</Global>
<AS>
</BGP>
</Configuration>
<Configuration>
<BGP MajorVersion="1" MinorVersion="0">
<AS>
<Naming>
<AS>3</AS>
</Naming>
<Global/>
Cisco CRS-1 Series Carrier Routing System XML API Guide
Run-Time Use of Version Information
9-93