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

Page 426

Advertising
background image

394

Network OS NETCONF Operations Guide

53-1003231-02

Configuring LLDP global options

27

<rpc message-id="1107" 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>tx</mode>

</lldp>

</protocol>

</config>

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

To enable both transmit and receive modes, delete the <mode> element by including the delete
operation in its tag.

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

<rpc message-id="1108" 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 xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"

operation="delete"/>

</lldp>

</protocol>

</config>

</edit-config>

</rpc>

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

<ok/>

</rpc-reply>

Configuring the transmit frequency of LLDP frames

The default transmit frequency is 30 seconds. The valid range is 4 through 180 seconds.

To configure the transmit frequency 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 <hello> leaf element, and set its value to the number of

seconds between the transmission of LLDP frames.

The following example sets the transmit frequency to 45 seconds.

Advertising