On Thu, Jun 06, 2013 at 04:09:52PM -0500, Zhe Zhang wrote:
> 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.
It's in the "status" column in the Port table, so:
ovs-vsctl -f table -- --columns=name,status list port
will give you a nice table, like this:
ovs-vsctl -f table -- --columns=name,status list port
name status
------
------------------------------------------------------------------------------------
"eth2" {stp_port_id="8003", stp_role=designated, stp_sec_in_state="4",
stp_state=listening}
"eth0" {stp_port_id="8002", stp_role=designated, stp_sec_in_state="5",
stp_state=listening}
"eth1" {stp_port_id="8004", stp_role=designated, stp_sec_in_state="4",
stp_state=listening}
"br0" {stp_port_id="8001", stp_role=designated, stp_sec_in_state="4",
stp_state=learning}
> I have also tried to use "brctl showstp"
> directly on the openvswitch bridge, it gives the following output:
OVS is not the Linux bridge and so brctl isn't going to do anything
useful most of the time.
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss