mbox series

[ovs-dev,v9,0/6] Add global option to output JSON from ovs-appctl cmds.

Message ID 20240412072638.712622-1-jmeng@redhat.com
Headers show
Series Add global option to output JSON from ovs-appctl cmds. | expand

Message

Jakob Meng April 12, 2024, 7:26 a.m. UTC
From: Jakob Meng <code@jakobmeng.de>

Changes compared to v8 [0]:
* Use "unsigned int" for format_flags variable in pretty patch for ovs-appctl.
* Fix --pretty option in appctl.py.

[0] https://patchwork.ozlabs.org/project/openvswitch/list/?series=402629&archive=both&state=*

Jakob Meng (6):
  Add global option for JSON output to ovs-appctl.
  python: Add global option for JSON output to Python tools.
  appctl: Add option '--pretty' for pretty-printing JSON output.
  python: Add option '--pretty' for pretty-printing JSON output.
  vswitchd: Add JSON output for 'list-commands' command.
  ofproto: Add JSON output for 'dpif/show' command.

 NEWS                         |  13 +++
 lib/command-line.c           |  36 +++++++
 lib/command-line.h           |  10 ++
 lib/unixctl.c                | 204 ++++++++++++++++++++++++++---------
 lib/unixctl.h                |  11 ++
 ofproto/ofproto-dpif.c       | 124 +++++++++++++++++++--
 python/ovs/unixctl/client.py |  14 ++-
 python/ovs/unixctl/server.py |  45 +++++++-
 python/ovs/util.py           |   8 ++
 tests/appctl.py              |  31 +++++-
 tests/ovs-vswitchd.at        |  27 +++++
 tests/pmd.at                 |  28 +++++
 tests/unixctl-py.at          |   8 ++
 utilities/ovs-appctl.c       | 122 ++++++++++++++++++---
 14 files changed, 599 insertions(+), 82 deletions(-)