Thread (4 messages) read the whole thread 4 messages, 2 authors, 2018-06-14

Re: [iproute2-next v3 1/2] tipc: JSON support for showing nametable

From: David Ahern <hidden>
Date: 2018-06-14 03:47:11

On 6/11/18 8:32 PM, Hoang Le wrote:
Add json output support for nametable show

Example output:
$tipc -j -p nametable show

[ {
        "type": 0,
        "lower": 16781313,
        "upper": 16781313,
        "scope": "zone",
        "port": 0,
        "node": ""
    },{
        "type": 0,
        "lower": 16781416,
        "upper": 16781416,
        "scope": "cluster",
        "port": 0,
        "node": ""
    } ]

v2:
    Replace variable 'json_flag' by 'json' declared in include/utils.h
    Add new parameter '-pretty' to support pretty output

v3:
    Update manual page

Acked-by: Jon Maloy <redacted>
Signed-off-by: Hoang Le <redacted>
---
 man/man8/tipc-nametable.8 | 10 ++++++++++
 man/man8/tipc.8           |  9 +++++++++
 tipc/nametable.c          | 31 ++++++++++++++++++++++---------
 tipc/tipc.c               | 20 +++++++++++++++++++-
 4 files changed, 60 insertions(+), 10 deletions(-)
applied to iproute2-next. Thanks
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help