diff options
| author | Don Slice <dslice@cumulusnetworks.com> | 2018-08-29 12:19:54 +0000 | 
|---|---|---|
| committer | Don Slice <dslice@cumulusnetworks.com> | 2018-08-30 12:40:18 +0000 | 
| commit | 9f049418bc2fe2500a4c7dbba11d1eefa9c1408c (patch) | |
| tree | f92eaaecf3885a43bb7cd392b7e4b6f546c1570f /bgpd/bgp_damp.h | |
| parent | 9f0cf8f4354ce60d18501969115febdd3ba7ec1e (diff) | |
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_damp.h')
| -rw-r--r-- | bgpd/bgp_damp.h | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/bgpd/bgp_damp.h b/bgpd/bgp_damp.h index d3b0ae42aa..77e4cd3e84 100644 --- a/bgpd/bgp_damp.h +++ b/bgpd/bgp_damp.h @@ -141,8 +141,7 @@ extern void bgp_config_write_damp(struct vty *);  extern void bgp_damp_info_vty(struct vty *, struct bgp_info *,  			      json_object *json_path);  extern const char *bgp_damp_reuse_time_vty(struct vty *, struct bgp_info *, -					   char *, size_t, uint8_t, -					   json_object *); +					   char *, size_t, bool, json_object *);  extern int bgp_show_dampening_parameters(struct vty *vty, afi_t, safi_t);  #endif /* _QUAGGA_BGP_DAMP_H */  | 
