Cisco CRS-1 - Carrier Routing System Router Dokumentacja Strona 66

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 132
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 65
5-66
Cisco CRS-1 Series Carrier Routing System XML API Guide
OL-4596-02
Chapter 5 Cisco CRS-1 Series XML and Native Data Access Techniques
Available Set of Native Data Access Techniques
Sample XML 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>
<BGPEntity>
<NeighborTable>
<Neighbor>
<Naming>
<IPAddress>
<IPV4Address>10.0.101.6</IPV4Address>
</IPAddress>
</Naming>
<RemoteAS>6</RemoteAS>
<EBGPMultihopMaxHopCount>255</EBGPMultihopMaxHopCount>
<NeighborAFTable>
<NeighborAF>
<Naming>
<AF>IPv4Unicast</AF>
</Naming>
<Activate>true</Activate>
<PrefixListFilterIn>orf</PrefixListFilterIn>
<AdvertiseORF>Both</AdvertiseORF>
</NeighborAF>
<NeighborAF>
<Naming>
<AF>IPv4Multicast</AF>
</Naming>
<Activate>true</Activate>
<PrefixListFilterIn>orf</PrefixListFilterIn>
</NeighborAF>
</NeighborAFTable>
</Neighbor>
</NeighborTable>
</BGPEntity>
</AS>
</BGP>
</Configuration>
</Get>
</Response>
XML Request for Specific Data Items
The value of a specific data item (leaf object) can be retrieved by specifying the configuration or
operational object class hierarchy down to the item of interest, including any naming information as
appropriate.
The following example shows how to retrieve the values of the two data items <RemoteAS> and
<EBGPMultihopMaxHopCount> for the BGP neighbor with address 10.0.101.6:
Sample XML Client Request for Two Specific Data Items: RemoteAS and EBGPMultihopMaxHopCount
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Get>
<Configuration>
Przeglądanie stron 65
1 2 ... 61 62 63 64 65 66 67 68 69 70 71 ... 131 132

Komentarze do niniejszej Instrukcji

Brak uwag