From 216e80b61881a13c502f44c5d32fd7603b6ffe60 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Mon, 24 Feb 2025 20:54:25 +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" --- .../include/version/lldp-version.xml.i | 2 +- interface-definitions/service_lldp.xml.in | 29 +++++++++++++++++++++- 2 files changed, 29 insertions(+), 2 deletions(-) (limited to 'interface-definitions') diff --git a/interface-definitions/include/version/lldp-version.xml.i b/interface-definitions/include/version/lldp-version.xml.i index b41d80451..a7110691a 100644 --- a/interface-definitions/include/version/lldp-version.xml.i +++ b/interface-definitions/include/version/lldp-version.xml.i @@ -1,3 +1,3 @@ - + diff --git a/interface-definitions/service_lldp.xml.in b/interface-definitions/service_lldp.xml.in index 51a9f9cce..a189cc13b 100644 --- a/interface-definitions/service_lldp.xml.in +++ b/interface-definitions/service_lldp.xml.in @@ -29,7 +29,34 @@ - #include + + + Set LLDP receive/transmit operation mode of this interface + + disable rx-tx tx rx + + + disable + Do not process or send LLDP messages + + + rx-tx + Send and process LLDP messages + + + rx + Process incoming LLDP messages + + + tx + Send LLDP messages + + + (disable|rx-tx|tx|rx) + + + rx-tx + LLDP-MED location data -- cgit v1.2.3