Xpath filtering – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 46

14
Network OS NETCONF Operations Guide
53-1003231-02
Retrieving configuration data
2
xpath filtering
Sometimes the data element that qualifies the information you want is at a lower level in the data
hierarchy than the information you need. For example, if you want to return a list of interfaces that
are bound to a CoS-to-CoS mutation QoS map, the element to be used for the selection criteria
(
information to be retrieved (the interface name), as shown in the following representation of the
QoS map structure. In such cases, you must use an xpath filter and not a subtree filter.
| +--rw tengigabitethernet [name]
+--rw name interface-type
.
.
.
+--rw qos:qos
+--rw qos:default-cos? int32
+--rw qos:trust
+--rw qos:trust-cos? empty
+--rw qos:trust-dscp? empty
+--rw qos:cos-mutation? map-name-type
+--rw qos:cos-traffic-class? map-name-type
+--rw qos:dscp-mutation? map-name-type
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.
The
selection criteria.
select="/interface/tengigabitethernet/qos[cos-mutation='test']">
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="205">