Configuring the transmission of lldp frames – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 425

Advertising
background image

Network OS NETCONF Operations Guide

393

53-1003231-02

Configuring LLDP global options

27

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

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

<description>Brocade-LLDP-installed-july-25</description>

</lldp>

</protocol>

</config>

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

Configuring the transmission of LLDP frames

By default both transmission and reception of LLDP frames are enabled.

To enable only reception (rx) of LLDP frames, 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 <mode> leaf element, and set its value to “rx”.

The following example sets the value of the <mode> element to “rx” to enable only reception of
LLDP frames.

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

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

<mode>rx</mode>

</lldp>

</protocol>

</config>

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

The following example sets the value of the <mode> element to “tx” to enable only transmission of
LLDP frames.

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

Advertising