summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/trex_stl_lib
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-02-09 11:11:08 -0500
committerimarom <imarom@cisco.com>2016-02-09 11:11:08 -0500
commitc07bd86f8c0a150f743c985dbef5e2bce857e0d9 (patch)
tree038d10e67fc24d61217522dd914bfc2ee531f5e1 /scripts/automation/trex_control_plane/stl/trex_stl_lib
parent0aa48dc740012b94cdd0cea3e49c1cb0258d9ce9 (diff)
minor fixes
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib')
-rw-r--r--scripts/automation/trex_control_plane/stl/trex_stl_lib/__init__.py1
-rw-r--r--scripts/automation/trex_control_plane/stl/trex_stl_lib/api.py3
-rw-r--r--scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py2
-rw-r--r--scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py2
4 files changed, 3 insertions, 5 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/__init__.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/__init__.py
index e69de29b..60bf7be8 100644
--- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/__init__.py
+++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/__init__.py
@@ -0,0 +1 @@
+import trex_stl_ext
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/api.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/api.py
index 4c0c10fa..a9e99178 100644
--- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/api.py
+++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/api.py
@@ -1,7 +1,4 @@
-# get external libs
-import trex_stl_ext
-
# client and exceptions
from trex_stl_exceptions import *
from trex_stl_client import STLClient, LoggerApi
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 b2cf1c90..732cfc1e 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
@@ -519,7 +519,7 @@ class Port(object):
meta_dict['stream_sum'] = OrderedDict([("id", stream.get_id()),
("packet_type", "FIXME!!!"),
- ("length", "FIXME!!!"),
+ ("L2 len", "FIXME!!! +++4"),
("mode", "FIXME!!!"),
("rate_pps", "FIXME!!!"),
("next_stream", "FIXME!!!")
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py
index 9c190dad..abfa32cd 100644
--- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py
+++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py
@@ -372,7 +372,7 @@ class STLProfile(object):
return profile
- def to_yaml (self, yaml_file = None):
+ def dump_to_yaml (self, yaml_file = None):
yaml_list = [stream.to_yaml() for stream in self.streams]
yaml_str = yaml.dump(yaml_list, default_flow_style = False)