Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

gNOI Layer 2 Service

Use the gNOI Layer2 service to perform functions at Layer 2 of your network.

Overview

Use the Layer2 service RPC to clear the all the Link Layer Discovery Protocol (LLDP) neighbors of a specified interface. The Layer2 service proto definition file is located at https://github.com/openconfig/gnoi/blob/main/layer2/layer2.proto.

Supported RPCs

Table 1: Supported layer2.proto RPCs
RPC Description Introduced in Release
ClearLLDPInterface()

Clear all LLDP neighbors of the specified interface.

Junos OS and Junos OS Evolved 24.2R1

Network Device Configuration

Before you begin:

Clear LLDP Neighbors

After you have configured the gNOI client and server, you are ready to write and execute your application. Executing your application to clear all the LLDP neighbors of an interface is the equivalent of running the clear lldp neighbors interface interface-name command.

Note:

When executing the equivalent CLI command, you have the option to clear all LLDP neighbors. This is not an option when using this service. You must specify an interface.

  1. Write the application.
  2. Prepare to execute the application. Specify the interface whose LLDP neighbors you want to clear.
  3. Run the application. Do not expect a response after the application runs.
  4. Use the show lldp neighbors command to check the LLDP neighbors were cleared.