]> git.puffer.fish Git - mirror/frr.git/commit
ldpd: reorganize json support and fix a few issues 73/head
authorRenato Westphal <renato@opensourcerouting.org>
Tue, 10 Jan 2017 20:27:03 +0000 (18:27 -0200)
committerRenato Westphal <renato@openbsd.org>
Fri, 13 Jan 2017 16:43:44 +0000 (14:43 -0200)
commita5d105121746cc254ee769f244abeb2f898aca5d
tree1052dbf88f1d48d3bb86d63167a061adcd0061ff
parente8dbef04205345773a3d7c9be7de0fda26061db0
ldpd: reorganize json support and fix a few issues

* reorganize code to improve maintainability;
* add json output for the l2vpn show commands as well;
* in "show mpls ldp discovery json", nest the adjacencies inside the
  respective interfaces. Also, fix a segfault when trying to show a
  targeted adjacency;
* in "show mpls ldp neighbor", show the address-family of the adjacencies
  of each neighbor. Also, remove "downstreamUnsolicited":true from
  the output;
* in "show mpls ldp interface json", show all interface/address-family
  combinations;

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ldpd/ldp_vty.h
ldpd/ldp_vty.xml
ldpd/ldp_vty_cmds.c [deleted file]
ldpd/ldp_vty_exec.c