diff options
author | 2017-07-01 04:16:20 +0000 | |
---|---|---|
committer | 2017-07-08 12:34:04 +0000 | |
commit | 262ca683be45ea6278ede2693d8832939b9dce14 (patch) | |
tree | 0a4ece9b522eb0f7eccba5ba2d08563eef9cfaa0 /src/vnet/lldp/lldp_doc.md | |
parent | 6922bd37be2c38d1c37b47855bb920c79b891027 (diff) |
Add API support for LLDP config/interface set
Add API methods to configure LLDP and set interface to enable/disable.
Also add port description TLV for LLDP.
Change-Id: Ib959d488c2ab8a0069f143558871f41fcc43a5d3
Signed-off-by: Steve Shin <jonshin@cisco.com>
(cherry picked from commit 99a0e60eb6f6acd7eabd5a4cb7ded1e0419ccd54)
Diffstat (limited to 'src/vnet/lldp/lldp_doc.md')
-rw-r--r-- | src/vnet/lldp/lldp_doc.md | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/vnet/lldp/lldp_doc.md b/src/vnet/lldp/lldp_doc.md index bac480a51d3..717de898c4e 100644 --- a/src/vnet/lldp/lldp_doc.md +++ b/src/vnet/lldp/lldp_doc.md @@ -27,10 +27,12 @@ tx-interval: time interval between sending out LLDP packets Per interface setting is done using the "set interface lldp" command -set interface lldp <interface> (enable | disable) +set interface lldp <interface> | if_index <idx> [port-desc <string>] [disable] interface: the name of the interface for which to enable/disable LLDP - +if_index: sw interface index can be used if interface name is not used. +port-desc: port description +disable: LLDP feature can be enabled or disabled per interface. ### Configuration example @@ -38,9 +40,9 @@ Configure system-name as "VPP" and transmit interval to 10 seconds: set lldp system-name VPP tx-interval 10 -Enable LLDP on interface TenGigabitEthernet5/0/1 +Enable LLDP on interface TenGigabitEthernet5/0/1 with port description -set interface lldp TenGigabitEthernet5/0/1 enable +set interface lldp TenGigabitEthernet5/0/1 port-desc vtf:eth0 ### Operational data |