X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=utilities%2Fovs-openflowd.c;h=e84a3999cd4fd5f47f11242d325bd9eb7105ed11;hb=3762274e6359f4afe04107851f4c71347fa0afa0;hp=1460423d6d468dc8d5694d88d67c5d5f0cbb17b0;hpb=76ce9432393df462e2030036021ea60096a734d4;p=openvswitch diff --git a/utilities/ovs-openflowd.c b/utilities/ovs-openflowd.c index 1460423d..e84a3999 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;