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

444
Network OS NETCONF Operations Guide
53-1003231-02
Queueing
29
<dscp-in-values>11,13,15,17</dscp-in-values>
<to>5</to>
</mark>
<mark>
<dscp-in-values>12,14,16,18</dscp-in-values>
<to>6</to>
</mark>
<mark>
<dscp-in-values>2,4,6,8</dscp-in-values>
<to>7</to>
</mark>
</dscp-traffic-class>
</map>
</qos>
</rpc-reply>
2. Return a list of interfaces that are bound to a DSCP-to-traffic class 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 (<dscp-traffic-clsss>name</dscp-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 DSCP-to-CoS map named
“test” is bound. In this case, the map named “test” is bound to interfaces 0/59 and 0/60.
<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2325">
<get-config>
<source>
<running></running>
</source>
<filter type="xpath"
select="/interface/tengigabitethernet/qos[dscp-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="2325">
<data>
<interface xmlns="urn:brocade.com:mgmt:brocade-interface">
<tengigabitethernet>
<name>0/59</name>
<qos xmlns="urn:brocade.com:mgmt:brocade-qos">
<default-cos>0</default-cos>
<dscp-traffic-class>test</dscp-traffic-class>
</qos>
</tengigabitethernet>
<tengigabitethernet>
<name>0/60</name>
<qos xmlns="urn:brocade.com:mgmt:brocade-qos">
<default-cos>0</default-cos>
<dscp-traffic-class>test</dscp-traffic-class>
</qos>
</tengigabitethernet>
</interface>
</data>
</rpc-reply>