Configuring cos thresholds – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 478

446
Network OS NETCONF Operations Guide
53-1003231-02
Congestion control
29
Configuring CoS thresholds
To configure CoS thresholds, 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 <tengigabitethernet> or <gigabitethernet> node
element.
3. Under the <tengigabitethernet> or <gigabitethernet> node, include the <name> leaf element
and specify the interface name for which you want to configure CoS thresholds
([rbridge-id/]slot/port format).
4. Under the <tengigabitethernet> or <gigabitethernet> node, include the <qos> node element
from the urn:brocade.com:mgmt:brocade-qos namespace.
5. Under the <qos> node, include the <rcv-queue>/<cos-threshold> node element hierarchy.
6. Under the <cos-threshold> node, specify percentage values for each CoS value in a
<cosn-threshold> element.
7. Issue the <bna-config-cmd> RPC to save the running-config file to the startup-config file.
The following example uses the priorities 5, 5, 5, 5, 50, 20, 2, and 8, which adds up to 100%.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="2327" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<interface xmlns="urn:brocade.com:mgmt:brocade-interface">
<tengigabitethernet>
<name>22/0/1</name>
<qos xmlns="urn:brocade.com:mgmt:brocade-qos">
<rcv-queue>
<cos-threshold>
<cos0-threshold>5</cos0-threshold>
<cos1-threshold>5</cos1-threshold>
<cos2-threshold>5</cos2-threshold>
<cos3-threshold>5</cos3-threshold>
<cos4-threshold>50</cos4-threshold>
<cos5-threshold>20</cos5-threshold>
<cos6-threshold>2</cos6-threshold>
<cos7-threshold>8</cos7-threshold>
</cos-threshold>
</rcv-queue>
</qos>
</tengigabitethernet>
</interface>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="2327" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>