netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH iproute2 json v2 00/27] ip: add -json support to 'ip link show'
@ 2017-08-17 17:35 Julien Fortin
  2017-08-17 17:35 ` [PATCH iproute2 json v2 01/27] color: add new COLOR_NONE and disable_color function Julien Fortin
                   ` (28 more replies)
  0 siblings, 29 replies; 33+ messages in thread
From: Julien Fortin @ 2017-08-17 17:35 UTC (permalink / raw)
  To: netdev; +Cc: roopa, nikolay, dsa, Julien Fortin

From: Julien Fortin <julien@cumulusnetworks.com>

This patch series adds json support to 'ip [-details] link show [dev DEV]'
Each patch describes the json schema it adds and provides some examples.

Julien Fortin (27):
  color: add new COLOR_NONE and disable_color function
  ip: add new command line argument -json (mutually exclusive with
    -color)
  json_writer: add new json handlers (null, float with format, lluint,
    hu)
  ip: ip_print: add new API to print JSON or regular format output
  ip: ipaddress.c: add support for json output
  ip: iplink.c: open/close json obj for ip -brief -json link show dev
    DEV
  ip: iplink_bond.c: add json output support
  ip: iplink_bond_slave.c: add json output support (info_slave_data)
  ip: iplink_hsr.c: add json output support
  ip: iplink_bridge.c: add json output support
  ip: iplink_bridge_slave.c: add json output support
  ip: iplink_can.c: add json output support
  ip: iplink_geneve.c: add json output support
  ip: iplink_ipoib.c: add json output support
  ip: iplink_ipvlan.c: add json output support
  ip: iplink_vrf.c: add json output support
  ip: iplink_vxlan.c: add json output support
  ip: iplink_xdp.c: add json output support
  ip: ipmacsec.c: add json output support
  ip: link_gre.c: add json output support
  ip: link_gre6.c: add json output support
  ip: link_ip6tnl.c: add json output support
  ip: link_iptnl.c: add json output support
  ip: link_vti.c: add json output support
  ip: link_vti6.c: add json output support
  ip: link_macvlan.c: add json output support
  ip: iplink_vlan.c: add json output support

 include/color.h          |    2 +
 include/json_writer.h    |    9 +
 include/utils.h          |    1 +
 ip/Makefile              |    2 +-
 ip/ip.c                  |    6 +
 ip/ip_common.h           |   56 +++
 ip/ip_print.c            |  233 ++++++++++
 ip/ipaddress.c           | 1064 ++++++++++++++++++++++++++++++++--------------
 ip/iplink.c              |    2 +
 ip/iplink_bond.c         |  231 ++++++----
 ip/iplink_bond_slave.c   |   57 ++-
 ip/iplink_bridge.c       |  293 ++++++++-----
 ip/iplink_bridge_slave.c |  185 ++++----
 ip/iplink_can.c          |  282 ++++++++----
 ip/iplink_geneve.c       |   86 +++-
 ip/iplink_hsr.c          |   36 +-
 ip/iplink_ipoib.c        |   30 +-
 ip/iplink_ipvlan.c       |    8 +-
 ip/iplink_macvlan.c      |   37 +-
 ip/iplink_vlan.c         |   62 ++-
 ip/iplink_vrf.c          |   13 +-
 ip/iplink_vxlan.c        |  161 ++++---
 ip/iplink_xdp.c          |   31 +-
 ip/ipmacsec.c            |   84 +++-
 ip/link_gre.c            |  147 ++++---
 ip/link_gre6.c           |  142 +++++--
 ip/link_ip6tnl.c         |  172 +++++---
 ip/link_iptnl.c          |  155 ++++---
 ip/link_vti.c            |   24 +-
 ip/link_vti6.c           |   22 +-
 lib/color.c              |   12 +-
 lib/json_writer.c        |   44 +-
 32 files changed, 2663 insertions(+), 1026 deletions(-)
 create mode 100644 ip/ip_print.c

-- 
2.14.1

^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2017-09-20 13:34 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-17 17:35 [PATCH iproute2 json v2 00/27] ip: add -json support to 'ip link show' Julien Fortin
2017-08-17 17:35 ` [PATCH iproute2 json v2 01/27] color: add new COLOR_NONE and disable_color function Julien Fortin
2017-08-17 17:35 ` [PATCH iproute2 json v2 02/27] ip: add new command line argument -json (mutually exclusive with -color) Julien Fortin
2017-08-17 17:35 ` [PATCH iproute2 json v2 03/27] json_writer: add new json handlers (null, float with format, lluint, hu) Julien Fortin
2017-08-17 17:35 ` [PATCH iproute2 json v2 04/27] ip: ip_print: add new API to print JSON or regular format output Julien Fortin
2017-08-17 17:35 ` [PATCH iproute2 json v2 05/27] ip: ipaddress.c: add support for json output Julien Fortin
2017-09-20 13:33   ` Sabrina Dubroca
2017-08-17 17:35 ` [PATCH iproute2 json v2 06/27] ip: iplink.c: open/close json obj for ip -brief -json link show dev DEV Julien Fortin
2017-08-17 17:35 ` [PATCH iproute2 json v2 07/27] ip: iplink_bond.c: add json output support Julien Fortin
2017-08-17 17:35 ` [PATCH iproute2 json v2 08/27] ip: iplink_bond_slave.c: add json output support (info_slave_data) Julien Fortin
2017-08-17 17:35 ` [PATCH iproute2 json v2 09/27] ip: iplink_hsr.c: add json output support Julien Fortin
2017-08-17 17:35 ` [PATCH iproute2 json v2 10/27] ip: iplink_bridge.c: " Julien Fortin
2017-08-17 17:35 ` [PATCH iproute2 json v2 11/27] ip: iplink_bridge_slave.c: " Julien Fortin
2017-08-17 17:35 ` [PATCH iproute2 json v2 12/27] ip: iplink_can.c: " Julien Fortin
2017-08-17 17:36 ` [PATCH iproute2 json v2 13/27] ip: iplink_geneve.c: " Julien Fortin
2017-08-17 17:36 ` [PATCH iproute2 json v2 14/27] ip: iplink_ipoib.c: " Julien Fortin
2017-08-17 17:36 ` [PATCH iproute2 json v2 15/27] ip: iplink_ipvlan.c: " Julien Fortin
2017-08-17 17:36 ` [PATCH iproute2 json v2 16/27] ip: iplink_vrf.c: " Julien Fortin
2017-08-17 17:36 ` [PATCH iproute2 json v2 17/27] ip: iplink_vxlan.c: " Julien Fortin
2017-08-17 17:36 ` [PATCH iproute2 json v2 18/27] ip: iplink_xdp.c: " Julien Fortin
2017-08-17 17:36 ` [PATCH iproute2 json v2 19/27] ip: ipmacsec.c: " Julien Fortin
2017-08-17 17:36 ` [PATCH iproute2 json v2 20/27] ip: link_gre.c: " Julien Fortin
2017-08-17 17:36 ` [PATCH iproute2 json v2 21/27] ip: link_gre6.c: " Julien Fortin
2017-08-17 17:36 ` [PATCH iproute2 json v2 22/27] ip: link_ip6tnl.c: " Julien Fortin
2017-08-17 17:36 ` [PATCH iproute2 json v2 23/27] ip: link_iptnl.c: " Julien Fortin
2017-08-17 17:36 ` [PATCH iproute2 json v2 24/27] ip: link_vti.c: " Julien Fortin
2017-08-17 17:36 ` [PATCH iproute2 json v2 25/27] ip: link_vti6.c: " Julien Fortin
2017-08-17 17:36 ` [PATCH iproute2 json v2 26/27] ip: link_macvlan.c: " Julien Fortin
2017-08-17 17:36 ` [PATCH iproute2 json v2 27/27] ip: iplink_vlan.c: " Julien Fortin
2017-08-18  1:04 ` [PATCH iproute2 json v2 00/27] ip: add -json support to 'ip link show' Stephen Hemminger
2017-08-18  7:56   ` Julien Fortin
2017-08-23 21:51 ` Jiri Pirko
2017-08-23 22:03   ` Julien Fortin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).