projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e87f74d
)
vswitch: Fix sense of comparison.
author
Ben Pfaff
<blp@nicira.com>
Tue, 10 Mar 2009 23:58:06 +0000
(16:58 -0700)
committer
Ben 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
patch
|
blob
|
history
diff --git
a/vswitchd/bridge.c
b/vswitchd/bridge.c
index 0ed0a332b911910f7e3b6f9c597cd4b4cd381587..6d0d69111076b0f1ab0c165d1707c69ef5a19fbc 100644
(file)
--- 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);
}