From: Jakob Meng <[email protected]> v14 addresses all comments from Ilya Maximets for v13 [0]. Aside from polishing, appctl.py's "--format" arg will be case-insensitive, allowing 'json' and 'JSON' etc.
Kudos to Ilya for holding up code quality in Open vSwitch ❤️ Best regards, Jakob [0] https://patchwork.ozlabs.org/project/openvswitch/list/?series=413880&state=%2A&archive=both Jakob Meng (6): Add global option for JSON output to ovs-appctl. python: Add option for JSON output to unixctl classes and appctl.py. appctl: Add option '--pretty' for pretty-printing JSON output. python: Add option for pretty-printing JSON output to appctl.py. vswitchd: Add JSON output for 'list-commands' command. ofproto: Add JSON output for 'dpif/show' command. Documentation/ref/ovs-appctl.8.rst | 20 +++ NEWS | 7 + lib/unixctl.c | 224 +++++++++++++++++++++-------- lib/unixctl.h | 17 ++- lib/util.c | 6 +- ofproto/ofproto-dpif.c | 126 ++++++++++++++-- python/ovs/unixctl/__init__.py | 8 ++ python/ovs/unixctl/client.py | 5 +- python/ovs/unixctl/server.py | 56 ++++++-- tests/appctl.py | 43 +++++- tests/ofproto-dpif.at | 40 ++++++ tests/ovs-vswitchd.at | 33 +++++ tests/unixctl-py.at | 13 ++ utilities/ovs-appctl.c | 157 +++++++++++++++++--- 14 files changed, 647 insertions(+), 108 deletions(-) -- 2.39.2 _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
