26.11.2014 Views

Download complete user manual (PDF). - Brocade

Download complete user manual (PDF). - Brocade

Download complete user manual (PDF). - Brocade

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2<br />

Retrieve operational Data<br />

auto-for_iscsi<br />

<br />

<br />

<br />

See the Network OS YANG Reference for a list of custom RPCs, a brief description of their function,<br />

and their location.<br />

Retrieve operational data with pagination<br />

Some RPCs return operational data that consists of lists of entities. For example, an RPC might<br />

return detailed information about every interface. For these kinds of applications, to make the<br />

output manageable, pagination is supported by providing a element in the output of<br />

the RPC.<br />

The following example shows how the element works to provide pagination for the<br />

RPC. In the input, you can request information about a specific VLAN, or about all<br />

VLANs by not providing an input parameter. If you request input about all VLANs, you will first<br />

receive information about the VLAN with the lowest VLAN ID. You can then check the <br />

element in the output to determine whether information is available for additional VLANs. If<br />

is true, use the value returned in as the input<br />

parameter to the next call to . The RPC then returns the next<br />

available VLAN. Continue until returns false.<br />

+---x get-vlan-brief<br />

+--ro input<br />

| +--ro (request-type)?<br />

| +--:(get-request)<br />

| | +--ro vlan-id? interface:vlan-type<br />

| +--:(get-next-request)<br />

| +--ro last-rcvd-vlan-id? interface:vlan-type<br />

+--ro output<br />

+--ro vlan [vlan-id]<br />

| +--ro vlan-id interface:vlan-type<br />

| +--ro vlan-type? enumeration<br />

| +--ro vlan-name? string<br />

| +--ro vlan-state? enumeration<br />

| +--ro interface [interface-type interface-name]<br />

| +--ro interface-type enumeration<br />

| +--ro interface-name union<br />

| +--ro tag? enumeration<br />

+--ro last-vlan-id? interface:vlan-type<br />

+--ro has-more? boolean<br />

The following example uses the RPC to return information about the first<br />

VLAN. In this case, the first VLAN is VLAN 20.<br />

<br />

<br />

<br />

<br />

rpc-reply message-id="207" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"><br />

<br />

20<br />

static<br />

vlan-20<br />

active<br />

<br />

16 Network OS NETCONF Operations Guide<br />

53-1002565-01

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!