vswitch: Fix sense of comparison.
authorBen Pfaff <blp@nicira.com>
Tue, 10 Mar 2009 23:58:06 +0000 (16:58 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 11 Mar 2009 00:02:28 +0000 (17:02 -0700)
We only want to reconnect if the controller is *different*, not if it
is the same.

vswitchd/bridge.c

index 0ed0a332b911910f7e3b6f9c597cd4b4cd381587..6d0d69111076b0f1ab0c165d1707c69ef5a19fbc 100644 (file)
@@ -809,7 +809,7 @@ bridge_reconfigure_one(struct bridge *br)
                        || cfg_get_bool(0, "%s.in-band", pfx));
             ofproto_set_discovery(br->ofproto, false, NULL, NULL);
             ofproto_set_in_band(br->ofproto, in_band);
-            if (!br->controller || !strcmp(ctl, br->controller)) {
+            if (!br->controller || strcmp(ctl, br->controller)) {
                 ofproto_set_controller(br->ofproto, ctl);
             }