Ethernet priority flow control, Enabling ethernet pfc – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 482

450
Network OS NETCONF Operations Guide
53-1003231-02
Congestion control
29
Ethernet Priority Flow Control
This section provides procedures for configuring Ethernet Priority-based Flow Control (PFC) for
congestion control.
Enabling Ethernet PFC
To enable Ethernet PFC, 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.
3. Under the <gigabitethernet>, <tengigabitethernet>, <fortygigabitethernet>,
<hundredgigabitethernet>, or <port-channel> node, include the <name> leaf element and set
its value to the name of the interface for which you want to enable Ethernet PFC
([rbridge-id/]slot/port format or port channel number).
4. Under the <gigabitethernet>, <tengigabitethernet>, <fortygigabitethernet>,
<hundredgigabitethernet>, or <port-channel> node, include the <qos> node element from the
urn:brocade.com:mgmt:brocade-qos namespace.
5. Under the <qos> node, include the <flowcontrol>/<pfc> node element hierarchy.
6. Under the <pfc> node, include the following leaf elements.
a. In the <pfc-cos> element, specify the CoS value.
b. In the <pfc-flowcontrol-rx> element, specify “on” to enable Ethernet PFC for the receive
direction.
c. In the <pfc-flowcontrol-tx> element, specify “on” to enable Ethernet PFC for the transmit
direction.
7. Issue the <bna-config-cmd> RPC to save the running-config file to the startup-config file.
The following example enables Ethernet PFC for CoS 3 on 10-gigabit Ethernet interface 22/0/1.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="2331" 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">
<flowcontrol>
<pfc>
<pfc-cos>3</pfc-cos>
<pfc-flowconftrol-tx>on</pfc-flowcontrol-tx>
<pfc-flowconftrol-rx>on</pfc-flowcontrol-rx>
</pfc>
</flowcontrol>
</qos>
</tengigabitethernet>
</interface>