9-95
Cisco CRS-1 Series Carrier Routing System XML API Guide
OL-4596-01
Chapter 9 Cisco CRS-1 Series XML Schema Versioning
Retrieving Version Information
</Response>
Retrieving Version Information
The version of the XML schemas running on the Cisco CRS-1 Series router can be retrieved using the
<GetVersionInfo> tag followed by the appropriate tags identifying the names of the desired components.
In the following example, the <GetVersionInfo> tag is used to retrieve the major and minor version
numbers for the BGP component configuration schema:
Sample XML Request to Retrieve Major and Minor Version Numbers
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<GetVersionInfo>
<Configuration>
<BGP/>
</Configuration>
</GetVersionInfo>
</Request>
Sample XML Response from the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Response MajorVersion="1" MinorVersion="0">
<GetVersionInfo>
<Configuration>
<BGP MajorVersion=”1” MinorVersion=”0”/>
</Configuration>
</GetVersionInfo>
</Response>
The following example shows how to retrieve the version information for all configuration schemas
currently available on the router:
Sample XML Request to Retrieve Version Information for All Configuration Schemas
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<GetVersionInfo>
<Configuration/>
</GetVersionInfo>
</Request>
Sample XML Response from the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Response MajorVersion="1" MinorVersion="0">
<GetVersionInfo>
<Configuration>
.
.
.
<MPLS_LSD MajorVersion="1" MinorVersion="0"/>
<MPLS_TE MajorVersion="1" MinorVersion="0"/>
<OUNI MajorVersion="1" MinorVersion="0"/>
<OLM MajorVersion="1" MinorVersion="0"/>
<BGP MajorVersion=”1” MinorVersion=”0”/>
<CDP MajorVersion=”1” MinorVersion=”1”/>
<RSVP MajorVersion=”1” MinorVersion=”0”/>
.