summaryrefslogtreecommitdiff
path: root/lib/zclient.c
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2015-09-17 07:54:20 -0700
committerDaniel Walton <dwalton@cumulusnetworks.com>2015-09-17 07:54:20 -0700
commitd1d16a965e15efda6ac4ec0a4946ff6f4310f674 (patch)
treec28fc6b059a012f6655eaddc83393b858fc47907 /lib/zclient.c
parentc50aceeeee3944f6c229b08e31e2354d037a3ab1 (diff)
BGP: "show ip bgp json" should return empty "routes : {}" if the table
is empty Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Ticket: CM-7475 Reviewed By: Donald Sharp Testing Done: If the BGP table is empty, intead of returning {'alert': 'No BGP network exists', 'routerId': '10.0.9.2', 'tableVersion': 180} we should return {'routerId': '10.0.9.2', 'routes': {}, 'tableVersion': 180} This provides a more consistent json interface which is easier to script against.
Diffstat (limited to 'lib/zclient.c')
0 files changed, 0 insertions, 0 deletions