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

Network OS NETCONF Operations Guide
425
53-1003231-02
Queueing
29
4. Under the <cos-mutation> node, include the following elements.
a. In the <name> element, assign a name to the map.
b. In each successive <cosn> element, associate each inbound CoS value to an output CoS
value.
For example, the following element maps outbound CoS value to 3 for all packets with
inbound CoS value of 3.
<cos3>3</cos3>
5. Issue the <bna-config-cmd> RPC to save the running-config file to the startup-config file.
The following example creates a CoS-to-CoS mutation QoS map named “test.”
<rpc message-id="2304" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<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>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="2304" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
Applying a CoS-to-CoS mutation QoS map to an interface
To apply a CoS-to-CoS mutation QoS map, perform the following steps.
1. Issue the <edit-config> RPC to configure the <interface> node in the
urn:brocade.com:mgmt:brocade-interface namespace.
2. Under the <interface> node, include a node element to specify the interface type;
<gigabitethernet>, <tengigabitethernet>, <fortygigabitethernet>, <hundredgigabitethernet>,
or <port-channel>.
3. Under the node element designating the interface type, include the <name> leaf element and
specify the name of the interface to which you want to apply the map.
4. Under the node element designating the interface type, include the <qos> node element,
which is located in the urn:brocade.com:mgmt:brocade-qos namespace.