From b577ba683afb5d31858b95bd0a9a9c479752c498 Mon Sep 17 00:00:00 2001
From: Yaroslav Brustinov <ybrustin@cisco.com>
Date: Thu, 14 Apr 2016 23:46:39 +0300
Subject: regression: add --python2 and --python3 to run_regression, if nothing
 provided, use python2. hltapi: fix bug of not reducing 4 bytes from produced
 packets because of fcs. doc: add trex_client package stl/stf example of
 running examples :)

---
 .../automation/trex_control_plane/stl/trex_stl_lib/trex_stl_hltapi.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib')

diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_hltapi.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_hltapi.py
index 45f3dd45..0afeff20 100755
--- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_hltapi.py
+++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_hltapi.py
@@ -1584,7 +1584,7 @@ def correct_direction(user_kwargs, kwargs):
 
 # we produce packets without fcs, so need to reduce produced sizes
 def correct_sizes(kwargs):
-    for arg in kwargs.keys():
-        if is_integer(arg):
+    for arg, value in kwargs.items():
+        if is_integer(value):
             if arg.endswith(('_length', '_size', '_size_min', '_size_max', '_length_min', '_length_max')):
                 kwargs[arg] -= 4
-- 
cgit