From 1f8742dd2ee34cce4a3e67f62c0dce75c56f8070 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 11 Mar 2016 22:47:10 +0100 Subject: [PATCH] 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. --- NEWS | 1 + src/client/display.c | 1 + 2 files changed, 2 insertions(+) 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); } } -- 2.39.5