cli: add command for displaying LLDP neighbors

System Internals / NetworkManager - Beniamino Galvani [redhat.com] - 10 November 2015 07:06 UTC

The list of LLDP neighbors is available through the D-Bus interface and libnm already provides functions to retrieve it; make the list available through nmcli as well. Sample output:

$ nmcli device lldp NEIGHBOR[0].DEVICE: eth0

5b31379 cli: add command for displaying LLDP neighbors
clients/cli/common.c | 43 ++++++++
clients/cli/common.h | 2 +
clients/cli/devices.c | 231 +++++++++++++++++++++++++++++++++++++++++-
clients/cli/nmcli-completion | 16 ++-
man/nmcli.1.in | 9 +-
5 files changed, 297 insertions(+), 4 deletions(-)

Upstream: cgit.freedesktop.org


  • Share