Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 284

Advertising
background image

252

Network OS NETCONF Operations Guide

53-1003231-02

Configuring AMPP port-profiles

19

The following code snippet enables pause generation with PFC:

<qos>

<flowcontrol>

<pfc>

<pfc-cos>1</pfc-cos>

<pfc-tx>on</pfc-tx>

<pfc-rx>on</pfc-rx>

</pfc>

<pfc>

<pfc-cos>2</pfc-cos>

<pfc-tx>on</pfc-tx>

<pfc-rx>on</pfc-rx>

</pfc>

</flowcontrol>

</qos>

The following example configures the QoS profile.

<?xml version="1.0" encoding="UTF-8"?>

<rpc message-id="1711" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<edit-config>

<target>

<running/>

</target>

<config>

<port-profile xmlns="urn:brocade.com:mgmt:brocade-port-profile">

<name>vm1-port-profile</name>

<qos-profile>

<cee>default</cee>

<qos>

<cos>7</cos>

<trust>

<trust-cos/>

</trust>

<cos-mutation>vm1-cos2cos-map</cos-mutation>

<cos-traffic-calss>vm1-cos2traffic-map

</cos-traffic-class>

<flowcontrol>

<pfc>

<pfc-cos>1</pfc-cos>

<pfc-tx>on</pfc-tx>

<pfc-rx>on</pfc-rx>

</pfc>

<pfc>

<pfc-cos>2</pfc-cos>

<pfc-tx>on</pfc-tx>

<pfc-rx>on</pfc-rx>

</pfc>

</flowcontrol>

</qos>

</qos-profile>

</port-profile>

</config>

</edit-config>

</rpc>

<rpc-reply message-id="1711" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<ok/>

</rpc-reply>

Advertising