aboutsummaryrefslogtreecommitdiffstats
path: root/GPL/traffic_profiles/trex
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2021-01-18 16:59:42 +0100
committerVratko Polak <vrpolak@cisco.com>2021-01-20 09:18:03 +0000
commitad98ea70cf435d104b6a4f0090575e137660da77 (patch)
tree8c2e3ce010279129234484f354dd93ca1d39fd96 /GPL/traffic_profiles/trex
parent216c68cc8b010642c4de21673b7d8e18006767e2 (diff)
Add suites with randomized ip6 profiles
+ Replace pair of traffic profiles (2n and 3n) with single nodeless one. + Compared to incremental suites, randomized ones add IP6_RND tag. Change-Id: I2f0dfc9e04bbcd0f88e95b92edf2da2c73faaab6 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'GPL/traffic_profiles/trex')
-rw-r--r--GPL/traffic_profiles/trex/trex-stl-ethip6-ip6dst10000-rnd.py (renamed from GPL/traffic_profiles/trex/trex-stl-3n-ethip6-ip6dst10000.py)11
-rw-r--r--GPL/traffic_profiles/trex/trex-stl-ethip6-ip6dst10000.py (renamed from GPL/traffic_profiles/trex/trex-stl-2n-ethip6-ip6dst10000.py)0
-rw-r--r--GPL/traffic_profiles/trex/trex-stl-ethip6-ip6dst100000-rnd.py (renamed from GPL/traffic_profiles/trex/trex-stl-3n-ethip6-ip6dst100000.py)11
-rw-r--r--GPL/traffic_profiles/trex/trex-stl-ethip6-ip6dst100000.py (renamed from GPL/traffic_profiles/trex/trex-stl-2n-ethip6-ip6dst100000.py)0
-rw-r--r--GPL/traffic_profiles/trex/trex-stl-ethip6-ip6dst1000000-rnd.py (renamed from GPL/traffic_profiles/trex/trex-stl-2n-ethip6-ip6dst1000000.py)15
-rw-r--r--GPL/traffic_profiles/trex/trex-stl-ethip6-ip6dst1000000.py (renamed from GPL/traffic_profiles/trex/trex-stl-3n-ethip6-ip6dst1000000.py)4
6 files changed, 25 insertions, 16 deletions
diff --git a/GPL/traffic_profiles/trex/trex-stl-3n-ethip6-ip6dst10000.py b/GPL/traffic_profiles/trex/trex-stl-ethip6-ip6dst10000-rnd.py
index 9aa4fd5ee4..0e335909f4 100644
--- a/GPL/traffic_profiles/trex/trex-stl-3n-ethip6-ip6dst10000.py
+++ b/GPL/traffic_profiles/trex/trex-stl-ethip6-ip6dst10000-rnd.py
@@ -93,12 +93,14 @@ class TrafficStreams(TrafficStreamsBaseClass):
# Direction 0 --> 1
vm1 = STLScVmRaw(
[
- STLVmFlowVar(
+ STLVmFlowVarRepeatableRandom(
name=u"ipv6_dst",
min_value=base_p1,
max_value=base_p1 + count_p1,
size=8,
- op=u"inc"
+ seed=1,
+ # Cycle length. TRex does not allow any higher value.
+ limit=(2**24 - 1)
),
STLVmWrFlowVar(
fv_name=u"ipv6_dst",
@@ -110,12 +112,13 @@ class TrafficStreams(TrafficStreamsBaseClass):
# Direction 1 --> 0
vm2 = STLScVmRaw(
[
- STLVmFlowVar(
+ STLVmFlowVarRepeatableRandom(
name=u"ipv6_dst",
min_value=base_p2,
max_value=base_p2 + count_p2,
size=8,
- op=u"inc"
+ seed=2,
+ limit=(2**24 - 1)
),
STLVmWrFlowVar(
fv_name=u"ipv6_dst",
diff --git a/GPL/traffic_profiles/trex/trex-stl-2n-ethip6-ip6dst10000.py b/GPL/traffic_profiles/trex/trex-stl-ethip6-ip6dst10000.py
index 9aa4fd5ee4..9aa4fd5ee4 100644
--- a/GPL/traffic_profiles/trex/trex-stl-2n-ethip6-ip6dst10000.py
+++ b/GPL/traffic_profiles/trex/trex-stl-ethip6-ip6dst10000.py
diff --git a/GPL/traffic_profiles/trex/trex-stl-3n-ethip6-ip6dst100000.py b/GPL/traffic_profiles/trex/trex-stl-ethip6-ip6dst100000-rnd.py
index f78d98c64f..daa160d53a 100644
--- a/GPL/traffic_profiles/trex/trex-stl-3n-ethip6-ip6dst100000.py
+++ b/GPL/traffic_profiles/trex/trex-stl-ethip6-ip6dst100000-rnd.py
@@ -93,12 +93,14 @@ class TrafficStreams(TrafficStreamsBaseClass):
# Direction 0 --> 1
vm1 = STLScVmRaw(
[
- STLVmFlowVar(
+ STLVmFlowVarRepeatableRandom(
name=u"ipv6_dst",
min_value=base_p1,
max_value=base_p1 + count_p1,
size=8,
- op=u"inc"
+ seed=1,
+ # Cycle length. TRex does not allow any higher value.
+ limit=(2**24 - 1)
),
STLVmWrFlowVar(
fv_name=u"ipv6_dst",
@@ -110,12 +112,13 @@ class TrafficStreams(TrafficStreamsBaseClass):
# Direction 1 --> 0
vm2 = STLScVmRaw(
[
- STLVmFlowVar(
+ STLVmFlowVarRepeatableRandom(
name=u"ipv6_dst",
min_value=base_p2,
max_value=base_p2 + count_p2,
size=8,
- op=u"inc"
+ seed=2,
+ limit=(2**24 - 1)
),
STLVmWrFlowVar(
fv_name=u"ipv6_dst",
diff --git a/GPL/traffic_profiles/trex/trex-stl-2n-ethip6-ip6dst100000.py b/GPL/traffic_profiles/trex/trex-stl-ethip6-ip6dst100000.py
index f78d98c64f..f78d98c64f 100644
--- a/GPL/traffic_profiles/trex/trex-stl-2n-ethip6-ip6dst100000.py
+++ b/GPL/traffic_profiles/trex/trex-stl-ethip6-ip6dst100000.py
diff --git a/GPL/traffic_profiles/trex/trex-stl-2n-ethip6-ip6dst1000000.py b/GPL/traffic_profiles/trex/trex-stl-ethip6-ip6dst1000000-rnd.py
index dbe8f76032..a372e1ae3b 100644
--- a/GPL/traffic_profiles/trex/trex-stl-2n-ethip6-ip6dst1000000.py
+++ b/GPL/traffic_profiles/trex/trex-stl-ethip6-ip6dst1000000-rnd.py
@@ -85,20 +85,22 @@ class TrafficStreams(TrafficStreamsBaseClass):
base_pkt_b = (
Ether() /
IPv6(
- src=self.p2_src_start_ip,
- dst=self.p2_dst_start_ip
+ src=self.p2_src_start_ip,
+ dst=self.p2_dst_start_ip
)
)
# Direction 0 --> 1
vm1 = STLScVmRaw(
[
- STLVmFlowVar(
+ STLVmFlowVarRepeatableRandom(
name=u"ipv6_dst",
min_value=base_p1,
max_value=base_p1 + count_p1,
size=8,
- op=u"inc"
+ seed=1,
+ # Cycle length. TRex does not allow any higher value.
+ limit=(2**24 - 1)
),
STLVmWrFlowVar(
fv_name=u"ipv6_dst",
@@ -110,12 +112,13 @@ class TrafficStreams(TrafficStreamsBaseClass):
# Direction 1 --> 0
vm2 = STLScVmRaw(
[
- STLVmFlowVar(
+ STLVmFlowVarRepeatableRandom(
name=u"ipv6_dst",
min_value=base_p2,
max_value=base_p2 + count_p2,
size=8,
- op=u"inc"
+ seed=2,
+ limit=(2**24 - 1)
),
STLVmWrFlowVar(
fv_name=u"ipv6_dst",
diff --git a/GPL/traffic_profiles/trex/trex-stl-3n-ethip6-ip6dst1000000.py b/GPL/traffic_profiles/trex/trex-stl-ethip6-ip6dst1000000.py
index e18353884b..572eed4256 100644
--- a/GPL/traffic_profiles/trex/trex-stl-3n-ethip6-ip6dst1000000.py
+++ b/GPL/traffic_profiles/trex/trex-stl-ethip6-ip6dst1000000.py
@@ -85,8 +85,8 @@ class TrafficStreams(TrafficStreamsBaseClass):
base_pkt_b = (
Ether() /
IPv6(
- src=self.p2_src_start_ip,
- dst=self.p2_dst_start_ip
+ src=self.p2_src_start_ip,
+ dst=self.p2_dst_start_ip
)
)