]> git.ipfire.org Git - thirdparty/iproute2.git/commit
bridge: vlan: add support to show global vlan options
authorNikolay Aleksandrov <nikolay@nvidia.com>
Sat, 28 Aug 2021 11:07:50 +0000 (14:07 +0300)
committerDavid Ahern <dsahern@kernel.org>
Wed, 1 Sep 2021 03:21:04 +0000 (21:21 -0600)
commit720f8613bd161253fc115b8e93f02a2d5f98c04b
treee9b481f8cc8663e2f3de0c194343b64111f81d38
parentd3a961a9b16cd9cf4528c30e58032511f5c40917
bridge: vlan: add support to show global vlan options

Add support for new bridge vlan command grouping called global which
operates on global options. The first command it supports is "show".
To do that we update print_vlan_rtm to recognize the global vlan options
attribute and parse it properly.
Man page and help are also updated with the new command.

Syntax is: $ bridge vlan global show [ vid VID ] [ dev DEV ]

Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
bridge/br_common.h
bridge/monitor.c
bridge/vlan.c
man/man8/bridge.8