]> git.ipfire.org Git - thirdparty/lldpd.git/commit
client: add show interfaces command (#240)
authorSteven Webster <steven.webster@windriver.com>
Wed, 30 Aug 2017 05:43:54 +0000 (01:43 -0400)
committerVincent Bernat <vincent@bernat.im>
Wed, 30 Aug 2017 05:43:54 +0000 (07:43 +0200)
commita54f6012efff77c966f533b8ef35b8627e3c8212
tree6f1f57394997dda5c5730c49cf1f0701e119ddde
parenta6d1d023a82c31566e1ffd3dfa5ec2d7dfd0dad0
client: add show interfaces command (#240)

There are several lldpcli configure commands that take port name(s)
as an optional parameter.

Currently, it is not possible to verify interface specific configuration
for lldpd without access to a neighbour switch/host or packet capture.

It would be useful to have a show interfaces command, similar to the
show neighbors command that allows a user/agent to query the local
TLV information.

This commit leverages the existing port display infrastructure to
enable display of local interfaces.  There are a few differences:

- Do not display the chassis RID, as the local index is always 0
- Show TTL as a seperate TLV based on tx_hold, tx_interval config,
  as internally the port TTL atom info is 0, and the chassis TTL
  atom info has been depreciated.
src/client/client.h
src/client/display.c
src/client/lldpcli.8.in
src/client/show.c
src/daemon/lldpd.c
tests/integration/test_basic.py
tests/integration/test_lldpcli.py