gNOI Layer 2 Service
SUMMARY 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
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:
- Configure gRPC services on the network device as described in Configure gRPC Services.
- Configure the network management system to support gNOI operations as described in Configure gNOI Services.
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.
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.
- Write the application.
- Prepare to execute the application. Specify the interface whose LLDP neighbors you want to clear.
- Run the application. Do not expect a response after the application runs.
-
Use the
show lldp neighbors
command to check the LLDP neighbors were cleared.