summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_route.h
diff options
context:
space:
mode:
authorDon Slice <dslice@cumulusnetworks.com>2018-08-29 14:19:54 +0200
committerDon Slice <dslice@cumulusnetworks.com>2018-08-30 14:40:18 +0200
commit9f049418bc2fe2500a4c7dbba11d1eefa9c1408c (patch)
treef92eaaecf3885a43bb7cd392b7e4b6f546c1570f /bgpd/bgp_route.h
parentMerge pull request #2930 from donaldsharp/pim_debug (diff)
downloadfrr-9f049418bc2fe2500a4c7dbba11d1eefa9c1408c.tar.xz
frr-9f049418bc2fe2500a4c7dbba11d1eefa9c1408c.zip
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>
Diffstat (limited to 'bgpd/bgp_route.h')
-rw-r--r--bgpd/bgp_route.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_route.h b/bgpd/bgp_route.h
index dfef9a8f7..c4f3ad112 100644
--- a/bgpd/bgp_route.h
+++ b/bgpd/bgp_route.h
@@ -436,7 +436,7 @@ extern void route_vty_out(struct vty *, struct prefix *, struct bgp_info *, int,
extern void route_vty_out_tag(struct vty *, struct prefix *, struct bgp_info *,
int, safi_t, json_object *);
extern void route_vty_out_tmp(struct vty *, struct prefix *, struct attr *,
- safi_t, uint8_t, json_object *);
+ safi_t, bool, json_object *);
extern void route_vty_out_overlay(struct vty *vty, struct prefix *p,
struct bgp_info *binfo, int display,
json_object *json);
@@ -484,5 +484,5 @@ extern void route_vty_out_detail(struct vty *vty, struct bgp *bgp,
extern int bgp_show_table_rd(struct vty *vty, struct bgp *bgp, safi_t safi,
struct bgp_table *table, struct prefix_rd *prd,
enum bgp_show_type type, void *output_arg,
- uint8_t use_json);
+ bool use_json);
#endif /* _QUAGGA_BGP_ROUTE_H */