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

438
Network OS NETCONF Operations Guide
53-1003231-02
Queueing
29
To map a CoS to a Traffic-Class, perform the following steps.
1. Issue the <edit-config> RPC to configure the <qos> node in the
urn:brocade.com:mgmt:brocade-qos namespace.
2. Under the <qos> node, include the <map> node element.
3. Under the <map> node, include the <cos-traffic-class> node element.
4. Under the <cos-traffic-class> node, include the following leaf elements.
a. In the <name> element, give a name to the map.
b. In each successive <cosn> element, set a traffic-class value for each outbound CoS class.
For example, the following element maps a traffic class value of 3 for all packets with
outbound 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 specifies a CoS-to-traffic-class mapping for a map named “test.”
<rpc message-id="2318" 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-traffic-class>
<name>test</name>
<cos0>1</cos0>
<cos1>0</cos1>
<cos2>2</cos2>
<cos3>3</cos3>
<cos4>4</cos4>
<cos5>5</cos5>
<cos6>6</cos6>
<cos7>7</cos7>
</cos-traffic-class>
</map>
</qos>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="2318" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
Applying a CoS-to-Traffic-Class mapping to an interface
To apply a CoS-to-traffic class mapping, 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 the <gigabitethernet>, <tengigabitethernet>,
<fortygigabitethernet>, <hundredgigabitethernet>, or <port-channel> node element.