]> git.puffer.fish Git - matthieu/frr.git/commit
pimd: make the json output a bit more machine-friendly
authoranuradhak <anuradhak@cumulusnetworks.com>
Tue, 13 Dec 2016 21:32:16 +0000 (13:32 -0800)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:19 +0000 (20:26 -0500)
commit01cb1466423363a2f8b42246464feb3858df1c9f
treeea07fde382be9b9bd42993c57d8e7827f722051a
parent28185336ed0c8219ce44454c3bd3f3495e71afd3
pimd: make the json output a bit more machine-friendly

Mixing well-known and variable property names makes the output difficult
to parse. so wrapped variable-keyed dicts with well-known property
names (such as "oil") in the following outputs -
"show ip mroute json"
"show ip msdp mesh-group json"

Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
pimd/pim_cmd.c