diff options
author | imarom <imarom@cisco.com> | 2016-02-23 03:21:07 -0500 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-02-23 03:32:19 -0500 |
commit | a420b4c469c49c01c5de6756e2955beb4c714728 (patch) | |
tree | 2e2ef60c69f55ed913c3a4e9468f030866d4c3aa /scripts/automation | |
parent | eb899885b5e4c551550275e8aa46061aefd6b37e (diff) |
conflicts
Diffstat (limited to 'scripts/automation')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py | 5 |
1 files changed, 4 insertions, 1 deletions
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 e890bac6..f79d25c3 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 @@ -13,6 +13,8 @@ import base64 import string import traceback from types import NoneType +import copy + # base class for TX mode class STLTXMode(object): @@ -282,11 +284,12 @@ class STLStream(object): if self.next: y['next'] = self.next - y['stream'] = self.fields + y['stream'] = copy.deepcopy(self.fields) # some shortcuts for YAML rate_type = self.fields['mode']['rate']['type'] rate_value = self.fields['mode']['rate']['value'] + y['stream']['mode'][rate_type] = rate_value del y['stream']['mode']['rate'] |