summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_async_client.py
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-03-09 18:04:31 +0200
committerimarom <imarom@cisco.com>2016-03-10 17:16:37 +0200
commit8b0bb76f7987e33ff1b13b5bdf360a9e15f96c68 (patch)
treece46b170f7b168726c33db7b1f5dbf1f491b15b8 /scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_async_client.py
parent094411ef99a485017d300e632e14aee10c8234c5 (diff)
RX STATS !
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_async_client.py')
-rw-r--r--scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_async_client.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_async_client.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_async_client.py
index 36103cae..82891b68 100644
--- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_async_client.py
+++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_async_client.py
@@ -245,9 +245,11 @@ class CTRexAsyncClient():
name = msg['name']
data = msg['data']
type = msg['type']
+ sync = msg.get('sync', False)
+
self.raw_snapshot[name] = data
- self.__dispatch(name, type, data)
+ self.__dispatch(name, type, data, sync)
# closing of socket must be from the same thread
@@ -268,10 +270,10 @@ class CTRexAsyncClient():
return self.raw_snapshot
# dispatch the message to the right place
- def __dispatch (self, name, type, data):
+ def __dispatch (self, name, type, data, sync):
# stats
if name == "trex-global":
- self.event_handler.handle_async_stats_update(data)
+ self.event_handler.handle_async_stats_update(data, sync)
# events
elif name == "trex-event":
@@ -282,7 +284,7 @@ class CTRexAsyncClient():
self.handle_async_barrier(type, data)
elif name == "flow_stats":
- self.event_handler.handle_async_rx_stats_event(data)
+ self.event_handler.handle_async_rx_stats_event(data, sync)
else:
pass