Re: [PATCH iproute2 1/2] ip route: print route type in JSON output

2019-03-19 Thread Stephen Hemminger
On Mon, 18 Mar 2019 18:19:29 +0100 Matteo Croce wrote: > ip route generates an invalid JSON if the route type has to be printed, > eg. when detailed mode is active, or the type is different that unicast: > > $ ip -d -j -p route show > [ {"unicast", > "dst": "192.168.122.0/24"

[PATCH iproute2 1/2] ip route: print route type in JSON output

2019-03-18 Thread Matteo Croce
ip route generates an invalid JSON if the route type has to be printed, eg. when detailed mode is active, or the type is different that unicast: $ ip -d -j -p route show [ {"unicast", "dst": "192.168.122.0/24", "dev": "virbr0", "protocol": "kernel",