Applying a dscp-to-cos map to an interface – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 467

Network OS NETCONF Operations Guide
435
53-1003231-02
Queueing
29
</dscp-cos>
</map>
</qos>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="2314" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
Applying a DSCP-to-CoS map to an interface
To apply a DSCP-to-CoS map to an interface, 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.
5. Under the <qos> node, include the <dscp-cos> leaf element and specify the DSCP-to-CoS
mutation map to activate and apply changes made to the map.
6. Under the <qos> node, include the <trust> node element.
7. Under the <trust> node element, include the empty <trust-dscp> leaf element to specify the
trust mode for incoming traffic.
8. Issue the <bna-config-cmd> RPC to save the running-config file to the startup-config file.
The following example activates a map named “test” on 10-gigabit interface 22/0/2, and
establishes DSCP trust mode.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="2315" 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/2</name>
<qos xmlns="urn:brocade.com:mgmt:brocade-qos">
<dscp-cos>test</dscp-cos>
<trust>
<trust-dscp/>
</trust>
</qos>
</tengigabitethernet>
</interface>
</config>
</edit-config>