[ovs-discuss] Equivalent as "brctl showstp" in openvswitch?

Zhe Zhang zhangzhe.hust at gmail.com
Thu Jun 6 21:09:52 UTC 2013


Hi All,

I just wonder is there a equivalent command option for ovs-vsctl to show the stp information of the bridge and ports attached as "brctl showstp" does? 
How can I tell what state each port is in? I have looked at the docs, it seems like there is no such command option. I have also tried to use "brctl showstp"
directly on the openvswitch bridge, it gives the following output:

$sudo brctl showstp lark
/sys/class/net/lark/bridge: No such file or directory
/sys/class/net/lark/bridge: No such file or directory
/sys/class/net/lark/bridge: No such file or directory
/sys/class/net/lark/bridge: No such file or directory
/sys/class/net/lark/bridge: No such file or directory
/sys/class/net/lark/bridge: No such file or directory
/sys/class/net/lark/bridge: No such file or directory
/sys/class/net/lark/bridge: No such file or directory
/sys/class/net/lark/bridge: No such file or directory
/sys/class/net/lark/bridge: No such file or directory
/sys/class/net/lark/bridge: No such file or directory
/sys/class/net/lark/bridge: No such file or directory
lark
 bridge id		0000.001e6878fb45
 designated root	0000.010203040506
 root port		   0			path cost		   0
 max age		   0.00			bridge max age		   0.00
 hello time		   0.00			bridge hello time	   0.00
 forward delay		   0.00			bridge forward delay	   0.00
 ageing time		   0.00
 hello timer		   0.00			tcn timer		   0.00
 topology change timer	   0.00			gc timer		   0.00
 hash elasticity	  -1			hash max		  -1
 mc last member count	  -1			mc init query count	  -1
 mc router		 255			mc snooping		 255
 mc last member timer	-140462611.54			mc membership timer	-140462611.54
 mc querier timer	-140462611.54			mc query interval	-140462611.54
 mc response interval	-140462611.54			mc init query interval	-140462611.54
 flags

This is achieved as I disable the STP after created the bridge. I didn't see the information of ports connected to the bridge. However, I do
have a eth device attached to the bridge.

Also if I disable STP, does the five states of STP protocol still apply to the interfaces? Or they just move to forwarding state immediately?

Thanks.

------------------------------------------------
Zhe Zhang
Department of Computer Science and Engineering
University of Nebraska-Lincoln
Lincoln, NE, 68588

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20130606/3ac39600/attachment.html>


More information about the discuss mailing list