]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lldpcli: display LLDP-MED caps like LLDP caps
authorVincent Bernat <vincent@bernat.im>
Fri, 11 Mar 2016 21:47:10 +0000 (22:47 +0100)
committerVincent Bernat <vincent@bernat.im>
Fri, 11 Mar 2016 21:51:04 +0000 (22:51 +0100)
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
src/client/display.c

diff --git a/NEWS b/NEWS
index 1b694a90de3186957672c57f5b6fe32868446605..837833d10a854e09aed3b6903a4a761e3acee94d 100644 (file)
--- 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:
index 83525597c0877a705c8ab2417c85f8dda9cb5b55..6373bbd65a71452c26939902a996402a027e6b39 100644 (file)
@@ -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);
        }
 }