summaryrefslogtreecommitdiff
path: root/lib/dpctl.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2016-12-06 11:40:29 -0800
committerBen Pfaff <blp@ovn.org>2016-12-06 12:45:34 -0800
commit1ed90a980ce92612713fc58f8884f01ab1ba8457 (patch)
treefc57f2bb3ee810d833060af94ccaf18d6bbf8dd7 /lib/dpctl.c
parent31b418cbff1f7a8886644d2d0ad7fa9b0eeb0c4f (diff)
downloadopenvswitch-1ed90a980ce92612713fc58f8884f01ab1ba8457.tar.gz
dpctl: Fix usage for most dpctl commands.
The usage should not repeat the command name, but most of the dpctl commands' usage did repeat it. This fixes the problem. Signed-off-by: Ben Pfaff <blp@ovn.org> Reviewed-by: Aaron Conole <aconole@redhat.com>
Diffstat (limited to 'lib/dpctl.c')
-rw-r--r--lib/dpctl.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/dpctl.c b/lib/dpctl.c
index bdccce723..7011b183d 100644
--- a/lib/dpctl.c
+++ b/lib/dpctl.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Nicira, Inc.
+ * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1615,18 +1615,18 @@ out:
}
static const struct dpctl_command all_commands[] = {
- { "add-dp", "add-dp dp [iface...]", 1, INT_MAX, dpctl_add_dp, DP_RW },
- { "del-dp", "del-dp dp", 1, 1, dpctl_del_dp, DP_RW },
- { "add-if", "add-if dp iface...", 2, INT_MAX, dpctl_add_if, DP_RW },
- { "del-if", "del-if dp iface...", 2, INT_MAX, dpctl_del_if, DP_RW },
- { "set-if", "set-if dp iface...", 2, INT_MAX, dpctl_set_if, DP_RW },
+ { "add-dp", "dp [iface...]", 1, INT_MAX, dpctl_add_dp, DP_RW },
+ { "del-dp", "dp", 1, 1, dpctl_del_dp, DP_RW },
+ { "add-if", "dp iface...", 2, INT_MAX, dpctl_add_if, DP_RW },
+ { "del-if", "dp iface...", 2, INT_MAX, dpctl_del_if, DP_RW },
+ { "set-if", "dp iface...", 2, INT_MAX, dpctl_set_if, DP_RW },
{ "dump-dps", "", 0, 0, dpctl_dump_dps, DP_RO },
{ "show", "[dp...]", 0, INT_MAX, dpctl_show, DP_RO },
{ "dump-flows", "[dp]", 0, 2, dpctl_dump_flows, DP_RO },
- { "add-flow", "add-flow [dp] flow actions", 2, 3, dpctl_add_flow, DP_RW },
- { "mod-flow", "mod-flow [dp] flow actions", 2, 3, dpctl_mod_flow, DP_RW },
- { "get-flow", "get-flow [dp] ufid", 1, 2, dpctl_get_flow, DP_RO },
- { "del-flow", "del-flow [dp] flow", 1, 2, dpctl_del_flow, DP_RW },
+ { "add-flow", "[dp] flow actions", 2, 3, dpctl_add_flow, DP_RW },
+ { "mod-flow", "[dp] flow actions", 2, 3, dpctl_mod_flow, DP_RW },
+ { "get-flow", "[dp] ufid", 1, 2, dpctl_get_flow, DP_RO },
+ { "del-flow", "[dp] flow", 1, 2, dpctl_del_flow, DP_RW },
{ "del-flows", "[dp]", 0, 1, dpctl_del_flows, DP_RW },
{ "dump-conntrack", "[dp] [zone=N]", 0, 2, dpctl_dump_conntrack, DP_RO },
{ "flush-conntrack", "[dp] [zone=N]", 0, 2, dpctl_flush_conntrack, DP_RW },