ovs-openflowd: Add --enable-dummy option.
authorBen Pfaff <blp@nicira.com>
Fri, 12 Nov 2010 20:43:16 +0000 (12:43 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 30 Nov 2010 00:29:11 +0000 (16:29 -0800)
utilities/ovs-openflowd.c

index 20b08c13a31725a9eab70a5b438ad3f1be44a149..818ed79bbb4fb7d9cd23d1543e5bae0511fc7959 100644 (file)
@@ -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();