]> git.proxmox.com Git - mirror_iproute2.git/commit
ipaddrlabel: add json support
authorStephen Hemminger <sthemmin@microsoft.com>
Tue, 6 Mar 2018 21:07:10 +0000 (13:07 -0800)
committerDavid Ahern <dsahern@gmail.com>
Tue, 6 Mar 2018 23:38:41 +0000 (15:38 -0800)
commita7ad1c8a6845d5ffdd9642506012213166c98b7f
tree580b8c0234212277c2a84be4044b87650e9ff66e
parentaac7f725fa464bfd7f3e4604d88beeed10cbe767
ipaddrlabel: add json support

Add missing json and color support to addrlabel display

Example:
$ ip -j -p addrlabel
[ {
        "address": "::1",
        "prefixlen": 128,
        "label": 56
    },{
        "address": "::",
        "prefixlen": 96,
        "label": 56
    },{
...

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David Ahern <dsahern@gmail.com>
ip/ipaddrlabel.c