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

Network OS NETCONF Operations Guide
427
53-1003231-02
Queueing
29
</source>
<filter type="subtree">
<qos xmlns="urn:brocade.com:mgmt:brocade-qos">
<map>
<cos-mutation>
<name>test</name>
</cos-mutation>
</map>
</qos>
</filter>
</get-config>
</rpc>
<rpc-reply message-id="2306" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<qos xmlns="urn:brocade.com:mgmt:brocade-qos">
<map>
<cos-mutation>
<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-mutation>
</map>
</qos>
</rpc-reply>
2. Return a list of interfaces that are bound to a CoS-to-CoS mutation 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-mutation>name</cos-mutation>) 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-CoS mutation QoS 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="2307">
<get-config>
<source>
<running></running>
</source>
<filter type="xpath"
select="/interface/tengigabitethernet/qos[cos-mutation='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="2607">
<data>
<interface xmlns="urn:brocade.com:mgmt:brocade-interface">
<tengigabitethernet>
<name>0/59</name>