From 18d92671bc8f7d5bc30ccc33ac87b62cb0810a5f Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 27 Feb 2009 15:48:39 -0800 Subject: [PATCH] vswitch: Fix connection to a remote controller. Without this change, vswitchd will kill secchan almost as soon as it starts it, because it fails to recognize that it is connecting to a remote controller instead of to vswitchd. --- vswitchd/bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 36755026..29d6b534 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -549,7 +549,7 @@ run_secchan(struct bridge *br) if (process_exited(br->secchan)) { log_secchan_died(VLL_ERR, br, false); br->sc_state = SC_UNSTARTED; - } else if (!rconn_is_alive(br->rconn)) { + } else if (!br->controller && !rconn_is_alive(br->rconn)) { VLOG_ERR("%s: connection to secchan closed unexpectedly, " "killing secchan", br->name); kill_secchan(br); -- 2.30.2