git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ovs-openflowd: Prefer --fail=standalone|secure over --fail=open|closed.
[sliver-openvswitch.git]
/
utilities
/
ovs-openflowd.c
diff --git
a/utilities/ovs-openflowd.c
b/utilities/ovs-openflowd.c
index
1460423
..
e84a399
100644
(file)
--- a/
utilities/ovs-openflowd.c
+++ b/
utilities/ovs-openflowd.c
@@
-336,12
+336,14
@@
parse_options(int argc, char *argv[], struct ofsettings *s)
break;
case OPT_FAIL_MODE:
break;
case OPT_FAIL_MODE:
- if (!strcmp(optarg, "open")) {
+ if (!strcmp(optarg, "open")
|| !strcmp(optarg, "standalone")
) {
controller_opts.fail = OFPROTO_FAIL_STANDALONE;
controller_opts.fail = OFPROTO_FAIL_STANDALONE;
- } else if (!strcmp(optarg, "closed")) {
+ } else if (!strcmp(optarg, "closed")
+ || !strcmp(optarg, "secure")) {
controller_opts.fail = OFPROTO_FAIL_SECURE;
} else {
controller_opts.fail = OFPROTO_FAIL_SECURE;
} else {
- ovs_fatal(0, "--fail argument must be \"open\" or \"closed\"");
+ ovs_fatal(0, "--fail argument must be \"standalone\" "
+ "or \"secure\"");
}
break;
}
break;