Vaillant Romain has uploaded this change for review.

View Change

stats: Adds json output to some stats command in ganesha_stats.py

This adds the support of the json format for most commands by adding
a new method to all report objects.

This is done in two step, one method is generating a dict and the
other simply dump it in the json format. In the future the text format
could also leverage the report method, but it was kept separate to kept
changes at their minimal.

Signed-off-by: Romain Vaillant <romain.vaillant@scality.com>
Change-Id: I849b751c6735847e8152713bf2807c656dac0ea3
---
M src/scripts/ganeshactl/Ganesha/glib_dbus_stats.py
M src/scripts/ganeshactl/ganesha_stats.py
2 files changed, 662 insertions(+), 93 deletions(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/99/491899/1

To view, visit change 491899. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I849b751c6735847e8152713bf2807c656dac0ea3
Gerrit-Change-Number: 491899
Gerrit-PatchSet: 1
Gerrit-Owner: Vaillant Romain <git@rphv.dev>
Gerrit-MessageType: newchange