diff options
author | Gurucharan Shetty <gshetty@nicira.com> | 2013-09-23 13:11:41 -0700 |
---|---|---|
committer | Gurucharan Shetty <gshetty@nicira.com> | 2013-09-24 15:57:28 -0700 |
commit | 0d6c14937bd30e47865456bcafa30e163d88634f (patch) | |
tree | 5b50688c8a5a09f975cdc5fd06785d682ae708fe /utilities/ovs-dpctl.c | |
parent | 918514018379ba4f05a467d215825ef57b09f2dc (diff) | |
download | openvswitch-0d6c14937bd30e47865456bcafa30e163d88634f.tar.gz |
ovs-dpctl: Parse the arguments correctly for del-flow.
Inside dpctl_del_flow() argv[0] is 'del-flow' and argv[1] can
be the flow in the absence of the optional datapath argument.
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'utilities/ovs-dpctl.c')
-rw-r--r-- | utilities/ovs-dpctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utilities/ovs-dpctl.c b/utilities/ovs-dpctl.c index be94f0b57..43c0db645 100644 --- a/utilities/ovs-dpctl.c +++ b/utilities/ovs-dpctl.c @@ -855,7 +855,7 @@ dpctl_del_flow(int argc, char *argv[]) ofpbuf_init(&mask, 0); run(odp_flow_from_string(key_s, NULL, &key, &mask), "parsing flow key"); - dp_name = argc == 2 ? xstrdup(argv[1]) : get_one_dp(); + dp_name = argc == 3 ? xstrdup(argv[1]) : get_one_dp(); run(parsed_dpif_open(dp_name, false, &dpif), "opening datapath"); free(dp_name); |