[ovs-dev] [tests+nxm-ofctl 06/42] ovs-openflowd: Add --enable-dummy option.

Justin Pettit jpettit at nicira.com
Thu Nov 25 01:24:16 UTC 2010


Looks good.

--Justin


On Nov 23, 2010, at 2:43 PM, Ben Pfaff wrote:

> ---
> utilities/ovs-openflowd.c |    7 +++++++
> 1 files changed, 7 insertions(+), 0 deletions(-)
> 
> diff --git a/utilities/ovs-openflowd.c b/utilities/ovs-openflowd.c
> index 20b08c1..818ed79 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();
> 
> -- 
> 1.7.1
> 
> 
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev_openvswitch.org





More information about the dev mailing list