mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +00:00
utilities/ovs-ofctl: Fix meter requests.
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@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -2958,9 +2958,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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user