From: Ethan Jackson Date: Wed, 29 Aug 2012 23:00:31 +0000 (-0700) Subject: vswitchd: Respect other_config:stp-enable port setting. X-Git-Tag: sliver-openvswitch-1.8.90-0~48^2~4 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=079b5942276a04b2b18f1ec5bd2e07170e3ab9bd vswitchd: Respect other_config:stp-enable port setting. Commit a699f614 (lib: Utilize smaps in the idl.) broke the other_config:stp-enable port setting in two ways. First, it changed the default if the setting was missing to disabled. Second, if the setting was present, it did the opposite of what the user configured. Bug #13122. Reported-by: Paul Ingram Signed-off-by: Ethan Jackson --- diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 022573979..53bb7b905 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -885,7 +885,7 @@ port_configure_stp(const struct ofproto *ofproto, struct port *port, const char *config_str; struct iface *iface; - if (smap_get_bool(&port->cfg->other_config, "stp-enable", false)) { + if (!smap_get_bool(&port->cfg->other_config, "stp-enable", true)) { port_s->enable = false; return; } else {