Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 472

440
Network OS NETCONF Operations Guide
53-1003231-02
Queueing
29
<source>
<running/>
</source>
<filter type="subtree">
<qos xmlns="urn:brocade.com:mgmt:brocade-qos">
<map>
<cos-traffic-class>
<name>test</name>
</cos-traffic-class>
</map>
</qos>
</filter>
</get-config>
</rpc>
<rpc-reply message-id="2320" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<qos xmlns="urn:brocade.com:mgmt:brocade-qos">
<map>
<cos-traffic-class>
<name>test</name>
<cos0>0</cos0>
<cos1>1</cos1>
<cos2>2</cos2>
<cos3>3</cos3>
<cos4>4</cos4>
<cos5>5</cos5>
<cos6>6</cos6>
<cos7>7</cos7>
</cos-traffic-class>
</map>
</qos>
</rpc-reply>
2. Return a list of interfaces that are bound to a CoS-to-Traffic-Class QoS map using an xpath
filter.
You must use an xpath filter and not a subtree filter in this case, because the element to be
used for the selection criteria (<cos-traffic-class>name</cos-traffic-class>) resides at a lower
level in the hierarchy than the information to be retrieved (the interface name).
The following example returns the interface names to which the CoS-to-Traffic Class QoS map
named “test” is bound. In this case, the map named “test” is bound to interfaces 0/51 and
0/52.
<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2321">
<get-config>
<source>
<running/>
</source>
<filter type="xpath
select="/interface/tengigabitethernet/qos[cos-traffic-class='test']">
</filter>
</get-config>
</rpc>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2321">
<data>
<interface xmlns="urn:brocade.com:mgmt:brocade-interface">