summaryrefslogtreecommitdiff
path: root/utilities/ovs-ofctl.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-12-03 10:32:38 -0800
committerBen Pfaff <blp@nicira.com>2010-12-03 10:32:38 -0800
commitb8c5c0dc73c3ff58c55b63b6afa56749706217da (patch)
tree835e3241b81ed0a2f7bb755c013352cf6d7dde2e /utilities/ovs-ofctl.c
parent87542e21fa88f0e566fdff023410a33f11d164ba (diff)
downloadopenvswitch-b8c5c0dc73c3ff58c55b63b6afa56749706217da.tar.gz
ovs-ofctl: Reimplement dumping particular tables.
"dump-flows" and "dump-aggregate" are documented to accept a "table" value to dump only a particular OpenFlow table, but commit 8050b31d6 "ofp-parse: Refactor flow parsing" broke this, by always dumping table 0. This commit should fix it (though I haven't tested it).
Diffstat (limited to 'utilities/ovs-ofctl.c')
-rw-r--r--utilities/ovs-ofctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utilities/ovs-ofctl.c b/utilities/ovs-ofctl.c
index 80e3eb392..cc520cc1e 100644
--- a/utilities/ovs-ofctl.c
+++ b/utilities/ovs-ofctl.c
@@ -478,6 +478,7 @@ do_dump_flows(int argc, char *argv[])
parse_ofp_str(&pf, NULL, argc > 2 ? argv[2] : "");
ofputil_cls_rule_to_match(&pf.rule, NXFF_OPENFLOW10, &req->match);
memset(&req->pad, 0, sizeof req->pad);
+ req->table_id = pf.table_idx;
req->out_port = htons(pf.out_port);
dump_stats_transaction(argv[1], request);
@@ -494,6 +495,7 @@ do_dump_aggregate(int argc, char *argv[])
parse_ofp_str(&pf, NULL, argc > 2 ? argv[2] : "");
ofputil_cls_rule_to_match(&pf.rule, NXFF_OPENFLOW10, &req->match);
memset(&req->pad, 0, sizeof req->pad);
+ req->table_id = pf.table_idx;
req->out_port = htons(pf.out_port);
dump_stats_transaction(argv[1], request);