Advertising the optional lldp tlvs – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 428

Advertising
background image

396

Network OS NETCONF Operations Guide

53-1003231-02

Configuring LLDP global options

27

</rpc-reply>

Advertising the optional LLDP TLVs

To configure the optional LLDP type-length-value (TLV) fields, perform the following steps.

1. Issue the <edit-config> RPC to configure the <protocol> node in the

urn:brocade.com:mgmt:brocade-interface namespace.

2. Under the <protocol> node, include the <lldp> node element, which resides in the

urn:brocade.com:mgmt:brocade-lldp namespace.

3. Under the <lldp> node, include the <advertise> node element.

4. Under the <advertise> node, include the <optional-tlv> node element.

5. Under the <optional-tlv> node, include leaf elements enabling the desired optional LLDP TLVs.

These TLVs may include:

<management-address>

<port-description>

<system-capabilities>

<adv-tlv-system-description>

<adv-tlv-system-name>

The following example advertises all the optional TLVs.

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

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

<edit-config>

<target>

<running/>

</target>

<config>

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

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

<advertise>

<optional-tlv>

<management-address/>

<port-description/>

<system-capabilities/>

<adv-tlv-system-description/>

<adv-tlv-system-name/>

</optional-tlv>

</advertise>

</lldp>

</protocol>

</config>

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

Advertising