diff options
author | 2016-05-09 22:47:30 +0300 | |
---|---|---|
committer | 2016-05-09 22:48:36 +0300 | |
commit | 38369dfc189a84a5e99d8a0d1c18276192995c69 (patch) | |
tree | 12ae5a364a7c3a99c75e9baf425c5c7ca4617888 /scripts/automation/trex_control_plane/stl/trex_stl_lib | |
parent | 5b412d097ac7f26e8504364758e1e0d3344de4c7 (diff) |
clear_stats must first call an async barrier
otherwise we might clean unsycned stats and it will be useless
next time the client gets an async update
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib')
-rwxr-xr-x | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py index d1352804..5e20adb8 100755 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py @@ -854,6 +854,9 @@ class STLClient(object): # clear stats def __clear_stats(self, port_id_list, clear_global, clear_flow_stats): + # we must be sync with the server + self.async_client.barrier() + for port_id in port_id_list: self.ports[port_id].clear_stats() |