Re: [RFC] iproute2: add json and color support

2018-01-29 Thread David Ahern
On 1/29/18 1:29 PM, Stephen Hemminger wrote: > This patch makes ip route command have json and color output in > a similar fashion of ip link and address. > > The printing is split into functions and duplicate code > removed. > > Probably incomplete, and has formatting glitches. > > --- > inclu

[RFC] iproute2: add json and color support

2018-01-29 Thread Stephen Hemminger
This patch makes ip route command have json and color output in a similar fashion of ip link and address. The printing is split into functions and duplicate code removed. Probably incomplete, and has formatting glitches. --- include/utils.h | 4 + ip/iproute.c| 764 +++