mirror_iproute2/bridge
Nikolay Aleksandrov 5a2d0201cc bridge: vlan: add support to filter by vlan id
Add the optional keyword "vid" to bridge vlan show so the user can
request filtering by a specific vlan id. Currently the filtering is
implemented only in user-space. The argument name has been chosen to
match the add/del one - "vid". This filtering can be used also with the
"-compressvlans" option to see in which range is a vlan (if in any).
Also this will be used to show only specific per-vlan statistics later
when support is added to the kernel for it.

Examples:
$ bridge vlan show vid 450
port	vlan ids
eth2	 450

$ bridge -c vlan show vid 450
port	vlan ids
eth2	 400-500

$ bridge vlan show vid 1
port	vlan ids
eth1	 1 PVID Egress Untagged
eth2	 1 PVID
br0	 1 PVID Egress Untagged

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
2016-04-11 21:52:47 +00:00
..
.gitignore Add bridge command 2012-08-01 15:23:49 -07:00
br_common.h bridge: mdb: add support for extended router port information 2016-03-14 16:05:09 -07:00
bridge.c bridge: add batch command support 2015-10-12 09:24:15 -07:00
fdb.c bridge: fdb: add support to filter by vlan id 2016-04-11 21:52:47 +00:00
link.c bridge: code cleanup 2016-03-21 11:56:01 -07:00
Makefile bridge: Allow to easy change network namespace 2014-12-27 10:22:32 -08:00
mdb.c bridge: mdb: add support to filter by vlan id 2016-04-11 21:52:47 +00:00
monitor.c scrub out whitespace issues 2016-03-27 10:50:14 -07:00
vlan.c bridge: vlan: add support to filter by vlan id 2016-04-11 21:52:47 +00:00