]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_vxlan.c
bgpd/ospfd: make bgp and ospf json response a bit more consistent
authorDon Slice <dslice@cumulusnetworks.com>
Wed, 29 Aug 2018 12:19:54 +0000 (12:19 +0000)
committerDon Slice <dslice@cumulusnetworks.com>
Thu, 30 Aug 2018 12:40:18 +0000 (12:40 +0000)
commit9f049418bc2fe2500a4c7dbba11d1eefa9c1408c
treef92eaaecf3885a43bb7cd392b7e4b6f546c1570f
parent9f0cf8f4354ce60d18501969115febdd3ba7ec1e
bgpd/ospfd: make bgp and ospf json response a bit more consistent

Problem reported that some bgp and ospf json commands did not return
any json output at all if the bgp/ospf instance did not exist.
Additionally, some bgp and ospf json commands did not return any json
output if the instance existed but no neighbors were defined.  This
fix makes these commands more consistent in returning empty braces for
json output and issue a message if not using json output.  Additionally,
made the flag "use_json" a bool to make it consistent since previously,
it had been defined as an int, char, u_char, and bool at various places.

Ticket: CM-21040
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
34 files changed:
bgpd/bgp_bfd.c
bgpd/bgp_bfd.h
bgpd/bgp_damp.c
bgpd/bgp_damp.h
bgpd/bgp_evpn_vty.c
bgpd/bgp_mplsvpn.c
bgpd/bgp_mplsvpn.h
bgpd/bgp_open.c
bgpd/bgp_open.h
bgpd/bgp_route.c
bgpd/bgp_route.h
bgpd/bgp_vpn.c
bgpd/bgp_vpn.h
bgpd/bgp_vty.c
bgpd/bgp_vty.h
bgpd/bgpd.c
bgpd/bgpd.h
lib/bfd.c
lib/bfd.h
lib/json.c
lib/json.h
lib/plist.c
lib/plist.h
ospfd/ospf_bfd.c
ospfd/ospf_bfd.h
ospfd/ospf_vty.c
pimd/pim_bfd.c
pimd/pim_bfd.h
pimd/pim_cmd.c
zebra/zebra_mpls.c
zebra/zebra_mpls.h
zebra/zebra_vty.c
zebra/zebra_vxlan.c
zebra/zebra_vxlan.h