Specifications

4-53
Cisco CRS-1 Series Carrier Routing System XML API Guide
OL-4596-02
Chapter 4 Cisco CRS-1 Series XML and Native Data Operations
Native Data Operation Content
Note You should use only the supported XML schema objects; therefore, do not attempt to write a request for
other objects.
The Cisco CRS-1 Series XML schema information is mapped to the XML instance.
Main Hierarchy Structure
The main structure of the hierarchy consists of the native data model organized as a tree of nodes, where
related data items appear in the same branch of the tree. At each level of the tree, a node is a container
of further, more specific sets of related data, or a leaf that holds an actual value.
For example, the first element in the configuration data model is <Configuration>, which contains all
possible configuration items. The children of this element are more specific groups of configuration,
such as <BGP> for Border Gateway Protocol (BGP) configuration, and <ISIS> for Intermediate
System-to-Intermediate System (ISIS) configuration. Beneath the <BGP> element the data is further
compartmentalized with the <Global> element for global BGP configuration and <BGPEntity> element
for per-entity BGP configuration. This compartmentalization continues down to the elements that hold
the values, the values being the character data of the element.
The following example shows the main hierarchy structure:
<Configuration>
<BGP>
.
.
.
<Global>
.
.
.
<DefaultMetric>10</DefaultMetric>
.
.
.
</Global>
<BGPEntity>
.
.
.
</BGPEntity>
.
.
.
</BGP>
<ISIS>
.
.
.
</ISIS>
</Configuration>
Data can be retrieved at any level in the hierarchyone particular data item can be examined, or all of
the data items in a branch of the tree can be returned in one request (see Chapter 5, Cisco CRS-1 Series
XML and Native Data Access Techniques, for details on how to do perform hierarchical data retrieval).
Similarly, configuration data can be deleted at any granularityone item can be deleted, or a whole
branch of related configuration can be deleted. So, for example, all BGP configuration can be deleted in
one request, or just the value of the default metric.