]> git.ipfire.org Git - thirdparty/lldpd.git/commit
lldpctl: new JSON output
authorVincent Bernat <bernat@luffy.cx>
Mon, 17 Dec 2012 06:48:02 +0000 (07:48 +0100)
committerVincent Bernat <bernat@luffy.cx>
Mon, 17 Dec 2012 06:48:02 +0000 (07:48 +0100)
commit8b7150e4d936511737ea0eb3115ff0dcd8148abb
tree609f643f33f01aada1a79ac7d5518bbb770e5716
parentee23a74f24a36acff3dc650787c05314a61b95c3
lldpctl: new JSON output

JSON output is done with "Jansson", a convenient JSON library. The
output may be a bit difficult to use when a multivalued field with
only one value is present. In this case, it is not put into an
array. For example, if there is only one neighbor, you get:
`{interface:{eth0: ...}}` while you will get this for two neighbors:
`{interface:[{eth0:...},{eth1:...}]}`.
.travis.yml
NEWS
configure.ac
m4/jansson.m4 [new file with mode: 0644]
src/client/Makefile.am
src/client/json_writer.c [new file with mode: 0644]
src/client/lldpctl.8
src/client/lldpctl.c
src/client/writer.h