From 8b0bb76f7987e33ff1b13b5bdf360a9e15f96c68 Mon Sep 17 00:00:00 2001 From: imarom Date: Wed, 9 Mar 2016 18:04:31 +0200 Subject: RX STATS ! --- .../stl/trex_stl_lib/trex_stl_async_client.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_async_client.py') 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 -- cgit 1.2.3-korg