From: Vincent Bernat Date: Fri, 11 Mar 2016 21:47:10 +0000 (+0100) Subject: lldpcli: display LLDP-MED caps like LLDP caps X-Git-Tag: 0.9.2~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1f8742dd2ee34cce4a3e67f62c0dce75c56f8070;p=thirdparty%2Flldpd.git lldpcli: display LLDP-MED caps like LLDP caps While LLDP caps can be available and/or enabled, LLDP-MED caps are only available. However, the way they were declared made them invisible in some formats, like the key/value pair. Try to fix that. Warn about the change in NEWS file. --- diff --git a/NEWS b/NEWS index 1b694a90..837833d1 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@ lldpd (0.9.2) * Change: + Ability to add/remove/replace custom TLV from lldpcli. + + LLDP-MED capabilities are displayed differently in lldpcli. lldpd (0.9.1) * Change: diff --git a/src/client/display.c b/src/client/display.c index 83525597..6373bbd6 100644 --- a/src/client/display.c +++ b/src/client/display.c @@ -50,6 +50,7 @@ display_med_capability(struct writer *w, long int available, int cap, if (available & cap) { tag_start(w, "capability", "Capability"); tag_attr(w, "type", "", symbol); + tag_attr(w, "available", "", "yes"); tag_end(w); } }