mirror_iproute2/bridge
Nikolay Aleksandrov b11b495e7c bridge: mdb: restore valid json output
Since the commit below mdb's json output has been invalid and also with
changed format. Restore it to a valid json like the previous format.
Also takes care of a double "Deleted" print when monitoring for changes.

Example bridge -p -d -j mdb show:
 [ {
        "mdb": [ {
                "index": 4,
                "dev": "virbr0",
                "port": "vnet2",
                "grp": "ff02::202",
                "state": "temp",
                "flags": [ ]
            },{
                "index": 4,
                "dev": "virbr0",
                "port": "vnet2",
                "grp": "ff02::1:fffb:1939",
                "state": "temp",
                "flags": [ ]
            },{
                "index": 6,
                "dev": "virbr1",
                "port": "vnet7",
                "grp": "ff02::202",
                "state": "temp",
                "flags": [ ]
            },{
                "index": 6,
                "dev": "virbr1",
                "port": "vnet7",
                "grp": "ff02::1:ffd0:f61f",
                "state": "temp",
                "flags": [ ]
            } ],
        "router": {
            "virbr0": [ {
                    "port": "vnet1"
                },{
                    "port": "vnet0"
                } ],
            "virbr1": [ {
                    "port": "vnet5"
                } ]
        }
    } ]

Fixes: c7c1a1ef51 ("bridge: colorize output and use JSON print library")
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2019-04-17 16:27:06 -07:00
..
.gitignore Add bridge command 2012-08-01 15:23:49 -07:00
br_common.h bridge: mdb: restore valid json output 2019-04-17 16:27:06 -07:00
bridge.c ip bridge: Set NETLINK_GET_STRICT_CHK on socket 2018-12-27 15:36:29 -08:00
fdb.c bridge: fdb: add support for src_vni option 2019-03-05 07:52:34 -08:00
link.c ip: bridge: add mcast to unicast config flag 2019-03-22 09:44:49 -07:00
Makefile SPDX license identifiers 2017-11-24 12:21:35 -08:00
mdb.c bridge: mdb: restore valid json output 2019-04-17 16:27:06 -07:00
monitor.c bridge: mdb: restore valid json output 2019-04-17 16:27:06 -07:00
vlan.c bridge: fix vlan show stats formatting 2018-10-29 09:58:03 -07:00