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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2<br />

Retrieve configuration data<br />

The following example shows a client message that issues the operation in its most<br />

basic form. It retrieves the entire running configuration.<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Such a request, however, typically results in an unwanted or unmanageable amount of output. To<br />

restrict the output to the portion of the configuration you want, <strong>Brocade</strong> supports two types of<br />

filtering: subtree filtering and xpath filtering.<br />

For <strong>complete</strong> details about subtree filtering and xpath filtering, refer to the RFC 4741, The<br />

NETCONF Protocol. The following sections provide some examples.<br />

Subtree filtering<br />

Subtree filtering defines a point in the configuration hierarchy that limits the returned configuration<br />

data. Only data at this point and the subtrees below it are returned. For example, to retrieve the<br />

Fibre Channel configuration for all Fibre Channel interfaces configured on the switch, use the<br />

following filter. This operation returns all configuration data for all Fibre Channel ports on the<br />

managed device.<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

The purpose of each filter element is as follows:<br />

• The element tag contains a type statement that identifies the filter type as a subtree<br />

filter.<br />

• The element constrains the output to the interface configuration in the<br />

urn:brocade.com:mgmt:brocade-interface namespace.<br />

• The element further constrains the output to the information under the <br />

node. Used in this way, is termed a containment node.<br />

To further restrict the output and retrieve Fibre Channel configuration data for only one specific<br />

Fibre Channel interface, use the following filter. In this example, the element is termed a<br />

content match node; the filter returns the values of all Fibre Channel attributes for the specified<br />

port.<br />

<br />

<br />

<br />

12 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!