summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/trex_stl_lib
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-09-04 17:42:48 +0300
committerimarom <imarom@cisco.com>2016-09-07 14:02:56 +0300
commit540da82e6df983c36f54b9f48dfa251b348d8e38 (patch)
tree65af3119543151262b75b8145fcd75327a9cfe92 /scripts/automation/trex_control_plane/stl/trex_stl_lib
parent04eae221e7c0089ae974f86e3f6fe156d4cb56ce (diff)
dual mode - check for ERF only
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib')
-rwxr-xr-xscripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py3
-rwxr-xr-xscripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py2
2 files changed, 4 insertions, 1 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 2c1fa5e9..b4a7b4c1 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
@@ -2234,6 +2234,9 @@ class STLClient(object):
# for dual mode check that all are masters
if is_dual:
+ if not pcap_filename.endswith('erf'):
+ raise STLError("dual mode: only ERF format is supported for dual mode")
+
for port in ports:
master = port
slave = port ^ 0x1
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py
index 4e57aae3..779f35db 100755
--- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py
+++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/parsing_opts.py
@@ -317,7 +317,7 @@ OPTIONS_DB = {MULTIPLIER: ArgumentPack(['-m', '--multiplier'],
DUAL: ArgumentPack(['--dual'],
{"action": "store_true",
'default': False,
- 'help': "Transmit in a dual mode - requires a slave attached to the port"}),
+ 'help': "Transmit in a dual mode - requires ownership on the adjacent port"}),
FILE_PATH: ArgumentPack(['-f'],
{'metavar': 'FILE',