From bf3e7788448e29623478687651b4210772f9e8c7 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 27 Oct 2008 15:13:11 -0700 Subject: [PATCH] Add a warning when secchan is invoked with a controller specified as the datapath. --- secchan/secchan.c | 5 +++++ 1 file changed, 5 insertions(+) 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", -- 2.43.0