EasyManuals Logo
Home>Cisco>Network Router>CRS-1 - Carrier Routing System Router

Cisco CRS-1 - Carrier Routing System Router Api Guide

Cisco CRS-1 - Carrier Routing System Router
127 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #91 background imageLoading...
Page #91 background image
CHAPTER
9-91
Cisco CRS-1 Series Carrier Routing System XML API Guide
OL-4596-01
9
Cisco CRS-1 Series XML Schema Versioning
Before the Cisco CRS-1 Series Carrier Routing System (Cisco CRS-1 Series) can carry out a client
application request, it must verify version compatibility between the client request and router component
versions.
A major and minor version number will be carried on the <Request> and <Response> elements to
indicate the overall Cisco CRS-1 Series XML application programming interface (API) version in use
by the client application and router. In addition, each component XML schema exposed through the
Cisco CRS-1 Series XML API will have a major and minor version number associated with it.
Note The XML API code is available for use on any Cisco platform that runs Cisco IOS XR software.
This chapter describes the format of the version information exchanged between the client application
and the Cisco CRS-1 Series router, and how the Cisco CRS-1 Series router uses this information at run
time to check version compatibility. The following sections are provided:
“Major and Minor Version Numbers”
“Run-Time Use of Version Information”
“Retrieving Version Information”
Major and Minor Version Numbers
The top-level or root object (that is, element) in each component XML schema carries the major and
minor version numbers for that schema. A minor version change is defined as an addition to the XML
schema. All other changes, including deletions and semantic changes, are considered major version
changes.
The version numbers are documented in the header comment contained in the XML schema file. They
are also available as <xsd:appinfo> annotations included as part of the complex type definition for the
top-level schema element. This will enable you to programmatically extract the version numbers from
the XML schema file to include in XML request instances sent to the router. The version numbers are
carried in the XML instances using the MajorVersion and MinorVersion attributes.
The following example shows the relevant portion of the complex type definition for an element that
carries version information:
<xsd:complexType name="ipv4_bgp_cfg_BGP_type">
<xsd:annotation>
<xsd:documentation>Global BGP config</xsd:documentation>
<xsd:appinfo>

Table of Contents

Other manuals for Cisco CRS-1 - Carrier Routing System Router

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cisco CRS-1 - Carrier Routing System Router and is the answer not in the manual?

Cisco CRS-1 - Carrier Routing System Router Specifications

General IconGeneral
BrandCisco
ModelCRS-1 - Carrier Routing System Router
CategoryNetwork Router
LanguageEnglish

Related product manuals