]> git.proxmox.com Git - mirror_iproute2.git/commit - bridge/link.c
bridge: add json support for link command
authorStephen Hemminger <sthemmin@microsoft.com>
Tue, 20 Feb 2018 19:24:06 +0000 (11:24 -0800)
committerDavid Ahern <dsahern@gmail.com>
Wed, 21 Feb 2018 16:41:38 +0000 (08:41 -0800)
commitf32e4977dcb0770d4c79cd134141f18f96f1130d
treefe5245aaf6d85607298b5868be004bec67396436
parentc7c1a1ef51aea7cf9bff0561878b211bf658e252
bridge: add json support for link command

Add json output for bridge link show command and reuse code
from ip command to display interface information.

This also changes the output format slightly for the non JSON case so
that it has same format as the ip link show command.

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