EasyManua.ls Logo

Cisco CRS-1 - Carrier Routing System Router

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
Loading...
7-84
Cisco CRS-1 Series Carrier Routing System XML API Guide
OL-4596-01
Chapter 7 Cisco CRS-1 Series XML and Large Data Retrieval (Iterators)
Terminating an Iterator
<BGP MajorVersion=”1” MinorVersion=”0”>
<AS>
<Naming>
<AS>3</AS>
</Naming>
<Global>
.
.
.
Final block of data returned here
.
.
.
</Global>
</AS>
</BGP>
</Configuration>
</Get>
</Response>
Terminating an Iterator
A client application may terminate an iterator without retrieving all of the response data by including an
Abort attribute with a value of “true” on the <GetNext> operation. A client application that does not
complete or terminate its requests risks running out of iterators.
The following example shows a client request using the Abort attribute to terminate an iterator:
Sample XML Request
<?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 XML Response from the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Response MajorVersion="1" MinorVersion="0" IteratorID=”2”>
<Get>
<Configuration>
<BGP MajorVersion=”2” MinorVersion=”0”>
<AS>
<Naming>
<AS>3</AS>
</Naming>
<Global>
.
.
.

Table of Contents

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

Related product manuals