From 2696c34bfe4a804c6381859946070c40d6349209 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 12 Nov 2010 12:43:16 -0800 Subject: [PATCH] ovs-openflowd: Add --enable-dummy option. --- utilities/ovs-openflowd.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/utilities/ovs-openflowd.c b/utilities/ovs-openflowd.c index 20b08c13a..818ed79bb 100644 --- a/utilities/ovs-openflowd.c +++ b/utilities/ovs-openflowd.c @@ -29,6 +29,7 @@ #include "daemon.h" #include "dirs.h" #include "dpif.h" +#include "dummy.h" #include "leak-checker.h" #include "list.h" #include "netdev.h" @@ -203,6 +204,7 @@ parse_options(int argc, char *argv[], struct ofsettings *s) OPT_NETFLOW, OPT_PORTS, OPT_UNIXCTL, + OPT_ENABLE_DUMMY, VLOG_OPTION_ENUMS, LEAK_CHECKER_OPTION_ENUMS }; @@ -230,6 +232,7 @@ parse_options(int argc, char *argv[], struct ofsettings *s) {"netflow", required_argument, 0, OPT_NETFLOW}, {"ports", required_argument, 0, OPT_PORTS}, {"unixctl", required_argument, 0, OPT_UNIXCTL}, + {"enable-dummy", no_argument, 0, OPT_ENABLE_DUMMY}, {"verbose", optional_argument, 0, 'v'}, {"help", no_argument, 0, 'h'}, {"version", no_argument, 0, 'V'}, @@ -399,6 +402,10 @@ parse_options(int argc, char *argv[], struct ofsettings *s) s->unixctl_path = optarg; break; + case OPT_ENABLE_DUMMY: + dummy_enable(); + break; + case 'h': usage(); -- 2.43.0