]> git.ipfire.org Git - thirdparty/iproute2.git/commit
iproute2: bridge vlan show new option to print ranges
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Mon, 26 Jan 2015 02:26:25 +0000 (18:26 -0800)
committerStephen Hemminger <shemming@brocade.com>
Thu, 5 Feb 2015 18:46:31 +0000 (10:46 -0800)
commita2f7934dd04f8e762cc7a3f5f2e7a1edd4a93643
tree1808bdce05723cbbdd80c66b94673799bcc798b1
parent3ac0d36ddde9715a8d027a919eb564f7b42c6c40
iproute2: bridge vlan show new option to print ranges

Introduce new option -c[ompressvlans] to request
vlan ranges from kernel

(pls suggest better option names if this does not look ok)

$bridge vlan show
port vlan ids
dummy0  1 PVID Egress Untagged

dummy1  1 PVID Egress Untagged
 2
 3
 4
 5
 6
 7
 9
 10
 12

br0  1 PVID Egress Untagged

$bridge help
Usage: bridge [ OPTIONS ] OBJECT { COMMAND | help }
where  OBJECT := { link | fdb | mdb | vlan | monitor }
       OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] |
                    -o[neline] | -t[imestamp] | -n[etns] name |
                    -c[ompressvlans] }
$bridge -c vlan show
port vlan ids
dummy0  1 PVID Egress Untagged

dummy1  1 PVID Egress Untagged
 2-7
 9-10
 12

br0  1 PVID Egress Untagged

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
bridge/br_common.h
bridge/bridge.c
bridge/vlan.c