Specifications
9-97
Cisco CRS-1 Series Carrier Routing System XML API Guide
OL-4596-02
Chapter 9 Cisco CRS-1 Series XML Schema Versioning
Run-Time Use of Version Information
Placement of Version Information
The following example shows the placement of the MajorVersion and MinorVersion attributes within a
client request to retrieve the global BGP configuration data for a specified autonomous system:
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 The version number, which is returned in the response, is the version number running on the router.