From: Ben Pfaff Date: Mon, 27 Oct 2008 22:13:11 +0000 (-0700) Subject: Add a warning when secchan is invoked with a controller specified as the datapath. X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=bf3e7788448e29623478687651b4210772f9e8c7;p=sliver-openvswitch.git Add a warning when secchan is invoked with a controller specified as the datapath. --- diff --git a/secchan/secchan.c b/secchan/secchan.c index 345620e2e..0f55cde96 100644 --- a/secchan/secchan.c +++ b/secchan/secchan.c @@ -153,6 +153,11 @@ main(int argc, char *argv[]) VLOG_WARN("OpenFlow protocol version 0x%02x", OFP_VERSION); /* Connect to datapath. */ + if (strncmp(s.dp_name, "nl:", 3) && strncmp(s.dp_name, "unix:", 5) + && !s.controller_name) { + VLOG_WARN("Controller not specified and datapath is not nl: or " + "unix:. (Did you forget to specify the datapath?)"); + } local_rconn = rconn_create(0, s.max_backoff); rconn_connect(local_rconn, s.dp_name); switch_status_register_category(switch_status, "local",