From 4036e6c90748419bf29fc44ee30960ea44b9e768 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Mon, 24 Feb 2025 21:16:03 +0100 Subject: lldp: T7165: add support to enable only rx or tx on specific interface LLDP is a stateless protocol which does not necessitate sending to receive advertisements. There are multiple scenarios such as provider peering links in which it is advantageous to receive LLDP but not disclose internal information to the provider. Add new CLI command: * set service lldp interface mode [disable|rx-tx|rx|tx] The default is unchanged and will be rx-tx. Furthermore if an interface has an explicit LLDP disable configured under "set service lldp interface disable" this will be migrated to "set service lldp interface mode disable" --- docs/configuration/service/lldp.rst | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/configuration/service/lldp.rst b/docs/configuration/service/lldp.rst index 12a9e0b6..8aee6183 100644 --- a/docs/configuration/service/lldp.rst +++ b/docs/configuration/service/lldp.rst @@ -49,10 +49,16 @@ Configuration Enable transmission of LLDP information on given ``. You can also say ``all`` here so LLDP is turned on on every interface. -.. cfgcmd:: set service lldp interface disable +.. cfgcmd:: set service lldp interface mode [disable|rx-tx|rx|tx] - Disable transmit of LLDP frames on given ``. Useful to exclude - certain interfaces from LLDP when ``all`` have been enabled. + Configure the administrative status of the given port. + + By default, all ports are configured to be in rx-tx mode. This means they + can receive and transmit LLDP frames. + + In rx mode, they won't emit any frames. In tx mode, they won't receive + any frames. In disabled mode, no frame will be sent and any incoming frame + will be discarded. .. cfgcmd:: set service lldp snmp -- cgit v1.2.3