diff options
| author | Ben Pfaff <blp@nicira.com> | 2010-04-20 10:48:15 -0700 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2010-04-20 11:14:58 -0700 |
| commit | 33e01d3a2b539f0ffd6fd02d019fda6a26bfcb0c (patch) | |
| tree | f8c3e54610a8475ab2b70eaf7e701d846046fdb3 /utilities/ovs-openflowd.c | |
| parent | 9deba63bdebc2e0eceab8da186b79703fe694186 (diff) | |
| download | openvswitch-33e01d3a2b539f0ffd6fd02d019fda6a26bfcb0c.tar.gz | |
ovs-openflowd: Prefer --fail=standalone|secure over --fail=open|closed.
The "standalone" and "secure" terminology is less confusing.
This retains support for "open" and "closed" but does not document it.
Diffstat (limited to 'utilities/ovs-openflowd.c')
| -rw-r--r-- | utilities/ovs-openflowd.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/utilities/ovs-openflowd.c b/utilities/ovs-openflowd.c index 1460423d6..e84a3999c 100644 --- 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: - if (!strcmp(optarg, "open")) { + if (!strcmp(optarg, "open") || !strcmp(optarg, "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 { - ovs_fatal(0, "--fail argument must be \"open\" or \"closed\""); + ovs_fatal(0, "--fail argument must be \"standalone\" " + "or \"secure\""); } break; |
