ovs-ofctl: Use the prepared connection to dump flows in do_dump_flows__().
authorBen Pfaff <blp@nicira.com>
Tue, 3 Jul 2012 17:25:35 +0000 (10:25 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 12 Jul 2012 19:56:01 +0000 (12:56 -0700)
commit9abfe557918794cc252f010aa19e31f8beb24c23
treea3b19626b5edc955e5b234f7789912324679b302
parent1a59dc2c8a23dcd6a240fa6ee099008602c9f73e
ovs-ofctl: Use the prepared connection to dump flows in do_dump_flows__().

The logic in do_dump_flows__() went to some trouble to open an OpenFlow
connection and set the correct protocol, but then it allowed
dump_stats_transaction() to create and use a completely different OpenFlow
connection that hadn't been prepared that way.  This commit fixes the
problem.

I don't think that there is a real bug here because currently the set of
protocols doesn't influence flow stats replies.  But that could change in
the future.

Signed-off-by: Ben Pfaff <blp@nicira.com>
utilities/ovs-ofctl.c