Verifying dscp trust – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 461

Advertising
background image

Network OS NETCONF Operations Guide

429

53-1003231-02

Queueing

29

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

The following example sets the trust mode on interface 22/0/2.

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

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

<trust>

<trust-dscp/>

</trust>

</qos>

</tengigabitethernet>

</interface>

</config>

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

Verifying DSCP trust

To verify that DSCP trust has been applied to the interface, issue the <get-config> RPC with a
subtree filter to query the <qos>/<trust> element of the interface.

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

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

<get-config>

<source>

<running/>

</source>

<filter type="subtree">

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

<tengigabitethernet>

<name>22/0/2</name>

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

<trust/>

</qos>

</tengigabitethernet>

</interface>

</filter>

</get-config>

</rpc>

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

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

<tengigabitethernet>

<name>22/0/2</name>

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

<trust>

<trust-dscp/>

Advertising