bridge: Enable RSTP if both STP and RSTP are enabled.
authorBen Pfaff <blp@nicira.com>
Thu, 5 Mar 2015 19:12:21 +0000 (11:12 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 6 Mar 2015 04:17:24 +0000 (20:17 -0800)
commit7af77bbd045707d6036578d40db3dec45242405a
treea5df3374989f4d08fcb34fc383da54ace29f86cf
parentbb50a6979b4973ff552c9c8ac2a70bb000dd4a6b
bridge: Enable RSTP if both STP and RSTP are enabled.

Until now, if both STP and RSTP were enabled, ovs-vswitchd would actually
enable only the one it first noticed to be enabled, and actually turn off
the setting for the other one in the database (!).  This doesn't match
ovs-vswitchd behavior for other contradictory configurations, so this
commit changes its behavior so that, if both are enabled, RSTP takes
precedence.

Reported-by: Daniele Venturino <daniele.venturino@m3s.it>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ansis Atteka <aatteka@nicira.com>
vswitchd/bridge.c