diff options
author | Peter Mikus <pmikus@cisco.com> | 2017-06-25 11:24:38 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2017-06-25 11:26:13 +0000 |
commit | 9ab749d64fbfaea4c1b5b2aec891ea2e80821102 (patch) | |
tree | 9a89c806d2d91181fa518dfef3f05fc0ebfd7e8f /resources/tools/t-rex/stream_profiles | |
parent | c65607ded4f4ec05f5789bd2b826d4d2feecf0ee (diff) |
Fix T-rex profile base class bug
- fixes the issue with COP whitelist and many others
Change-Id: I43962cdee19b42c316cec689336c341d30a56adf
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/tools/t-rex/stream_profiles')
-rwxr-xr-x | resources/tools/t-rex/stream_profiles/profile_trex_stateless_base_class.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/resources/tools/t-rex/stream_profiles/profile_trex_stateless_base_class.py b/resources/tools/t-rex/stream_profiles/profile_trex_stateless_base_class.py index 2d07e7fe9d..a6cb97485a 100755 --- a/resources/tools/t-rex/stream_profiles/profile_trex_stateless_base_class.py +++ b/resources/tools/t-rex/stream_profiles/profile_trex_stateless_base_class.py @@ -134,7 +134,7 @@ class TrafficStreamsBaseClass(object): vm=vm1) # Direction 1 --> 0 pkt_b = STLPktBuilder( - pkt=base_pkt_a / self._gen_payload(payload_len), + pkt=base_pkt_b / self._gen_payload(payload_len), vm=vm2) # Packets for latency measurement: @@ -143,7 +143,7 @@ class TrafficStreamsBaseClass(object): pkt=base_pkt_a / self._gen_payload(payload_len)) # Direction 1 --> 0 pkt_lat_b = STLPktBuilder( - pkt=base_pkt_a / self._gen_payload(payload_len)) + pkt=base_pkt_b / self._gen_payload(payload_len)) # Create the streams: # Direction 0 --> 1 @@ -173,13 +173,14 @@ class TrafficStreamsBaseClass(object): stream2 = [] for stream in self.STREAM_TABLE[self.framesize]: - payload_len = max(0, stream['size'] - len(base_pkt_a) - 4) + payload_len_a = max(0, stream['size'] - len(base_pkt_a) - 4) + payload_len_b = max(0, stream['size'] - len(base_pkt_b) - 4) # Create a base packet and pad it to size pkt_a = STLPktBuilder( - pkt=base_pkt_a / self._gen_payload(payload_len), + pkt=base_pkt_a / self._gen_payload(payload_len_a), vm=vm1) pkt_b = STLPktBuilder( - pkt=base_pkt_b / self._gen_payload(payload_len), + pkt=base_pkt_b / self._gen_payload(payload_len_b), vm=vm2) # Create the streams: |