iproute2/bridge
Julien Fortin 8fc09aff8d bridge: fdb get: add missing json init (new_json_obj)
'bridge fdb get' has json support but the json object is never initialized

before patch:

$ bridge -j fdb get 56:23:28:4f:4f:e5 dev vx0
56:23:28:4f:4f:e5 dev vx0 master br0 permanent
$

after patch:

$ bridge -j fdb get 56:23:28:4f:4f:e5 dev vx0 | \
python -c \
'import sys,json;print(json.dumps(json.loads(sys.stdin.read()),indent=4))'
[
    {
        "master": "br0",
        "mac": "56:23:28:4f:4f:e5",
        "flags": [],
        "ifname": "vx0",
        "state": "permanent"
    }
]
$

Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2020-07-13 08:41:42 -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 get: add missing json init (new_json_obj) 2020-07-13 08:41:42 -07:00
link.c State of bridge STP port are now case insensitive 2020-04-20 09:45:37 -07:00
Makefile SPDX license identifiers 2017-11-24 12:21:35 -08:00
mdb.c Merge branch 'master' into next 2019-06-10 10:32:07 -07:00
monitor.c bridge: mdb: restore valid json output 2019-04-17 16:27:06 -07:00
vlan.c Replace open-coded instances of print_nl() 2020-05-04 17:13:53 -07:00