diff options
author | imarom <imarom@cisco.com> | 2016-11-30 13:00:54 +0200 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-11-30 13:35:40 +0200 |
commit | 051a334b6f57280faa9dd90eeab922fb51f3c89e (patch) | |
tree | d7b1784e99edc8b71befc7f6a84d0cedb80f7667 /scripts/automation | |
parent | ba3a6e1edd85873be62f17881e4a95df7daf098d (diff) |
reply to messages
Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'scripts/automation')
3 files changed, 3 insertions, 9 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_jsonrpc_client.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_jsonrpc_client.py index 4ebfa0be..93a930e4 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_jsonrpc_client.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_jsonrpc_client.py @@ -263,11 +263,6 @@ class JsonRpcClient(object): self.connected = True - rc = self.invoke_rpc_method('ping', api_class = None) - if not rc: - self.connected = False - return rc - return RC_OK() diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py index d0092533..42b7b89b 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py @@ -2,7 +2,7 @@ from collections import namedtuple, OrderedDict from .trex_stl_packet_builder_scapy import STLPktBuilder -from .trex_stl_streams import STLStream, STLTXSingleBurst +from .trex_stl_streams import STLStream from .trex_stl_types import * from .trex_stl_rx_features import ARPResolver, PingResolver from . import trex_stl_stats @@ -577,8 +577,7 @@ class Port(object): for i in range(len(pkts)): pkts[i]['binary'] = base64.b64decode(pkts[i]['binary']) - - return pkts + return RC_OK(pkts) @owned diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_rx_features.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_rx_features.py index f9f6a499..5c2fd9af 100644 --- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_rx_features.py +++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_rx_features.py @@ -114,7 +114,7 @@ class Resolver(object): return rx_pkts # for each packet - examine it - for pkt in rx_pkts: + for pkt in rx_pkts.data(): rc = self.on_pkt_rx(pkt) if rc is not None: return rc |