From 0300974e4f36cd9c5eaba2aa233af700b7980ce7 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 10 Mar 2009 16:58:06 -0700 Subject: [PATCH] vswitch: Fix sense of comparison. We only want to reconnect if the controller is *different*, not if it is the same. --- vswitchd/bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 0ed0a332..6d0d6911 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -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); } -- 2.30.2