git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b2aec95
)
Add a warning when secchan is invoked with a controller specified as the datapath.
author
Ben Pfaff
<blp@nicira.com>
Mon, 27 Oct 2008 22:13:11 +0000
(15:13 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Mon, 27 Oct 2008 22:13:11 +0000
(15:13 -0700)
secchan/secchan.c
patch
|
blob
|
history
diff --git
a/secchan/secchan.c
b/secchan/secchan.c
index
345620e
..
0f55cde
100644
(file)
--- 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. */
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",
local_rconn = rconn_create(0, s.max_backoff);
rconn_connect(local_rconn, s.dp_name);
switch_status_register_category(switch_status, "local",