[ovs-dev] [PATCH 1/6] utilities/ovs-ofctl: Fix meter requests.

Jarno Rajahalme jrajahalme at nicira.com
Tue Aug 5 23:38:52 UTC 2014


Meter requests should use dump/stats transaction, instead of
transact_noreply, which caused the output to go to stderr and an error
exit.

Signed-off-by: Jarno Rajahalme <jrajahalme at nicira.com>
---
 utilities/ovs-ofctl.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/utilities/ovs-ofctl.c b/utilities/ovs-ofctl.c
index 7b4a006..6cda614 100644
--- a/utilities/ovs-ofctl.c
+++ b/utilities/ovs-ofctl.c
@@ -2702,9 +2702,9 @@ ofctl_meter_request__(const char *bridge, const char *str,
 
     protocol = open_vconn_for_flow_mod(bridge, &vconn, usable_protocols);
     version = ofputil_protocol_to_ofp_version(protocol);
-    transact_noreply(vconn, ofputil_encode_meter_request(version,
-                                                         type,
-                                                         mm.meter.meter_id));
+    dump_stats_transaction(vconn,
+                           ofputil_encode_meter_request(version, type,
+                                                        mm.meter.meter_id));
     vconn_close(vconn);
 }
 
-- 
1.7.10.4




More information about the dev mailing list