Verifying a cos-to-traffic-class mapping – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 471

Advertising
background image

Network OS NETCONF Operations Guide

439

53-1003231-02

Queueing

29

3. Under the <gigabitethernet>, <tengigabitethernet>, <fortygigabitethernet>,

<hundredgigabitethernet>, or <port-channel> node, include the interface on which you want to
activate the mapping in the <name> leaf element.

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 <cos-traffic-class> element, and specify the name of the

CoS-to-Traffic-class map you want to activate.

6. Under the <qos> node, include the <trust> node element.

7. Under the <trust> node element, include the empty <trust-cos> element to activate the

mapping.

8. Issue the <bna-config-cmd> RPC to save the running-config file to the startup-config file.

The following example activates a CoS-to-Traffic-Class mapping named “test” on 10-gigabit
Ethernet interface 22/0/2.

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

<rpc message-id="2319" 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">

<cos-traffic-class>test</cos-traffic-class>

<trust>

<trust-cos/>

</trust>

</qos>

</tengigabitethernet>

</interface>

</config>

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

Verifying a CoS-to-Traffic-Class mapping

To verify a CoS-to-Traffic-Class QoS mapping, issue the <get-config> RPC to retrieve the
CoS-to-Traffic-Class QoS map and the interface names to which a map is bound.

1. Verify a CoS-to-Traffic-Class QoS map using a subtree filter to view only the contents of the

<qos>/<map>/<cos-traffic-class> node. To limit the returned information to a specific map,
refine the content match node with the QoS map name.

The following example returns the CoS-to-Traffic-Class QoS map for a map named “test.”

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

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

<get-config>

Advertising