[ovs-dev] [PATCH 2/5] ovs-ofctl: "monitor" command takes no more than 2 arguments

Ben Pfaff blp at nicira.com
Tue May 11 19:45:06 UTC 2010


The "monitor" command would accept 3 arguments and ignore the third one.
Reject such usage instead.
---
 utilities/ovs-ofctl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/utilities/ovs-ofctl.c b/utilities/ovs-ofctl.c
index 61d0e10..4699482 100644
--- a/utilities/ovs-ofctl.c
+++ b/utilities/ovs-ofctl.c
@@ -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 },
-- 
1.7.1





More information about the dev mailing list