Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 436

Advertising
background image

404

Network OS NETCONF Operations Guide

53-1003231-02

Configuring LLDP interface-level options

27

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 <gigabitethernet>, <tengigabitethernet>,

<fortygigabitethernet>, or <hundredgigabitethernet> node element.

3. Under the <hundredgigabitethernet>, <gigabitethernet>, <tengigabitethernet>, or

<fortygigabitethernet> node, include a <name> element to identify the interface in
[rbridge-id/]slot/port format.

4. Under the <hundredgigabitethernet>, <gigabitethernet>, <tengigabitethernet>, or

<fortygigabitethernet> node, include an <lldp> node element, which resides in the
urn:brocade.com:mgmt:brocade-lldp namespace.

5. Under the <lldp> node, include the <profile> element and specify the name of the LLDP profile

you want to apply to the interface.

6. Under the <lldp> node, include the <dcbx-version> element to configure the DCBX version for

an interface for DCB. For detailed information on these version keywords, refer to the Network
OS Administrator’s Guide
. The default is to automatically detect the DCBX version.

The following example applies an LLDP profile named network_standard to interface 22/0/1.

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

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

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

<profile>network_standard</profile>

<dcbx-version>cee</dcbx-version>

</lldp>

</tengigabitethernet>

(more interfaces go here)

</interface>

</config>

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

Advertising