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 />

<br />

<br />

<br />

<br />

xpath filtering<br />

Sometimes the data element that qualifies the information you want is at a lower level in the data<br />

hierarchy than the information you need. For example, if you want to return a list of interfaces that<br />

are bound to a CoS-to-CoS mutation QoS map, the element to be used for the selection criteria<br />

(name) resides at a lower level in the hierarchy than the<br />

information to be retrieved (the interface name), as shown in the following representation of the<br />

QoS map structure. In such cases, you must use an xpath filter and not a subtree filter.<br />

| +--rw tengigabitethernet [name]<br />

+--rw name<br />

interface-type<br />

.<br />

.<br />

.<br />

+--rw qos:qos<br />

+--rw qos:default-cos?<br />

int32<br />

+--rw qos:trust<br />

+--rw qos:trust-cos? empty<br />

+--rw qos:trust-dscp? empty<br />

+--rw qos:cos-mutation?<br />

map-name-type<br />

+--rw qos:cos-traffic-class? map-name-type<br />

+--rw qos:dscp-mutation? map-name-type<br />

The following example returns the interface names to which the CoS-to-CoS mutation QoS map<br />

named “test” is bound. In this case, the map named “test” is bound to interfaces 0/59 and 0/60.<br />

The element tag specifies that the filter type is xpath and also specifies the data path and<br />

selection criteria.<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

0/59<br />

<br />

0<br />

test<br />

<br />

<br />

<br />

0/60<br />

<br />

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