Disabling and resetting lldp globally – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 422

390
Network OS NETCONF Operations Guide
53-1003231-02
Enabling and disabling LLDP
27
To enable LLDP globally, 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 from the
urn:brocade.com:mgmt:brocade-lldp namespace to enable LLDP.
The <lldp> node element contains elements that allow you to configure the global LLDP
parameters. However, the “presence=true” statement that qualifies the <lldp> container
definition in the brocade-lldp.yang file allows the <lldp> node element to also function as a leaf
element.
The following example enables LLDP globally.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="1101" 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"/>
</protocol>
</config>
</edit-config>
</rpc>
<rpc-reply message-id="1101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
Disabling and resetting LLDP globally
Resetting LLDP globally returns all configuration settings made under the <protocol>/<lldp> node
to their default settings. LLDP is enabled globally by default.
Disabling LLDP disables LLDP globally.
To reset LLDP globally, 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 from the
urn:brocade.com:mgmt:brocade-lldp namespace, and include the delete operation in the
element tag.
The following example resets LLDP globally.
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="1102" 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"
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"