Hi all,
According to the documentation of ovs-vsctl,  "ovs-vsctl clear Bridge
br0 stp_enable" should deconfigure stp, but i find it does not work.
Add "ovs-vsctl set bridge br0 stp_enable=false" works well. Should we
update documentation or make clear work?


[root@virtual-arch ~]# ovs-vsctl del-br br0
[root@virtual-arch ~]# ovs-vsctl add-br br0
[root@virtual-arch ~]# ovs-vsctl add-port br0 enp0s9
[root@virtual-arch ~]# ovs-vsctl set bridge br0 stp_enable=true
[root@virtual-arch ~]# ovs-vsctl list port
_uuid               : bc06c8e8-2eb4-4d2e-8edf-68e32b6ebee7
bond_downdelay      : 0
bond_fake_iface     : false
bond_mode           : []
bond_updelay        : 0
external_ids        : {}
fake_bridge         : false
interfaces          : [7a490726-5cf7-47af-babf-168bb632aa1a]
lacp                : []
mac                 : []
name                : "br0"
other_config        : {}
qos                 : []
statistics          : {}
status              : {}
tag                 : []
trunks              : []
vlan_mode           : []

_uuid               : ad9cfce2-d2a9-4aa4-bb72-6be4ffc512d7
bond_downdelay      : 0
bond_fake_iface     : false
bond_mode           : []
bond_updelay        : 0
external_ids        : {}
fake_bridge         : false
interfaces          : [170cf5b6-acb3-4fc0-ae8e-93b2a99ac56f]
lacp                : []
mac                 : []
name                : "enp0s9"
other_config        : {}
qos                 : []
statistics          : {stp_error_count=0, stp_rx_count=0, stp_tx_count=1}
status              : {stp_port_id="8001", stp_role=designated,
stp_sec_in_state="0", stp_state=listening}
tag                 : []
trunks              : []
vlan_mode           : []
[root@virtual-arch ~]#
[root@virtual-arch ~]# ovs-vsctl clear bridge br0 stp_enable
ovs-vsctl: "clear" operation cannot be applied to column stp_enable of
table Bridge, which is not allowed to be empty
[root@virtual-arch ~]# ovs-vsctl list port
_uuid               : bc06c8e8-2eb4-4d2e-8edf-68e32b6ebee7
bond_downdelay      : 0
bond_fake_iface     : false
bond_mode           : []
bond_updelay        : 0
external_ids        : {}
fake_bridge         : false
interfaces          : [7a490726-5cf7-47af-babf-168bb632aa1a]
lacp                : []
mac                 : []
name                : "br0"
other_config        : {}
qos                 : []
statistics          : {}
status              : {}
tag                 : []
trunks              : []
vlan_mode           : []

_uuid               : ad9cfce2-d2a9-4aa4-bb72-6be4ffc512d7
bond_downdelay      : 0
bond_fake_iface     : false
bond_mode           : []
bond_updelay        : 0
external_ids        : {}
fake_bridge         : false
interfaces          : [170cf5b6-acb3-4fc0-ae8e-93b2a99ac56f]
lacp                : []
mac                 : []
name                : "enp0s9"
other_config        : {}
qos                 : []
statistics          : {stp_error_count=0, stp_rx_count=0, stp_tx_count=13}
status              : {stp_port_id="8001", stp_role=designated,
stp_sec_in_state="0", stp_state=learning}
tag                 : []
trunks              : []
vlan_mode           : []
[root@virtual-arch ~]#
[root@virtual-arch ~]# ovs-vsctl set bridge br0 stp_enable=false
[root@virtual-arch ~]# ovs-vsctl list port
_uuid               : bc06c8e8-2eb4-4d2e-8edf-68e32b6ebee7
bond_downdelay      : 0
bond_fake_iface     : false
bond_mode           : []
bond_updelay        : 0
external_ids        : {}
fake_bridge         : false
interfaces          : [7a490726-5cf7-47af-babf-168bb632aa1a]
lacp                : []
mac                 : []
name                : "br0"
other_config        : {}
qos                 : []
statistics          : {}
status              : {}
tag                 : []
trunks              : []
vlan_mode           : []

_uuid               : ad9cfce2-d2a9-4aa4-bb72-6be4ffc512d7
bond_downdelay      : 0
bond_fake_iface     : false
bond_mode           : []
bond_updelay        : 0
external_ids        : {}
fake_bridge         : false
interfaces          : [170cf5b6-acb3-4fc0-ae8e-93b2a99ac56f]
lacp                : []
mac                 : []
name                : "enp0s9"
other_config        : {}
qos                 : []
statistics          : {stp_error_count=0, stp_rx_count=0, stp_tx_count=21}
status              : {}
tag                 : []
trunks              : []
vlan_mode           : []
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to