ovs-ofctl: "monitor" command takes no more than 2 arguments
authorBen Pfaff <blp@nicira.com>
Tue, 11 May 2010 19:22:17 +0000 (12:22 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 11 May 2010 19:22:17 +0000 (12:22 -0700)
The "monitor" command would accept 3 arguments and ignore the third one.
Reject such usage instead.

utilities/ovs-ofctl.c

index 61d0e10..4699482 100644 (file)
@@ -1291,7 +1291,7 @@ do_help(int argc OVS_UNUSED, char *argv[] OVS_UNUSED)
 static const struct command all_commands[] = {
     { "show", 1, 1, do_show },
     { "status", 1, 2, do_status },
-    { "monitor", 1, 3, do_monitor },
+    { "monitor", 1, 2, do_monitor },
     { "dump-desc", 1, 1, do_dump_desc },
     { "dump-tables", 1, 1, do_dump_tables },
     { "dump-flows", 1, 2, do_dump_flows },