iproute2/bridge
Nikolay Aleksandrov e5f87c8341 bridge: vlan: add support for the new rtm dump call
Use the new bridge vlan rtm dump helper to dump all of the available
vlan information when -details (-d) is used with vlan show. It is also
capable of dumping vlan stats if -statistics (-s) is added.
Currently this is the only interface capable of dumping per-vlan
options. The vlan dump format is compatible with current vlan show, it
uses the same helpers to dump vlan information. The new addition is one
line which will contain the per-vlan options (similar to ip -d link show
for ports). Currently only the vlan STP state is printed.
The call uses compressed vlan format by default.

Example:
$ bridge -s -d vlan show
port              vlan-id
virbr1            1 PVID Egress Untagged
                    state forwarding

Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
2021-04-22 05:13:34 +00:00
..
.gitignore Add bridge command 2012-08-01 15:23:49 -07:00
Makefile SPDX license identifiers 2017-11-24 12:21:35 -08:00
br_common.h bridge: vlan: add support for the new rtm dump call 2021-04-22 05:13:34 +00:00
bridge.c Merge branch 'main' into next 2020-11-24 22:04:48 -07:00
fdb.c Merge branch 'main' into next 2020-08-06 16:21:35 +00:00
link.c bridge: add parse_stp_state helper 2021-04-22 05:13:20 +00:00
mdb.c bridge: add support for L2 multicast groups 2020-11-29 20:54:02 +00:00
monitor.c bridge: mdb: restore valid json output 2019-04-17 16:27:06 -07:00
vlan.c bridge: vlan: add support for the new rtm dump call 2021-04-22 05:13:34 +00:00