summaryrefslogtreecommitdiffstats
path: root/scripts/stl/tests/single_cont.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/stl/tests/single_cont.py')
-rw-r--r--scripts/stl/tests/single_cont.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/stl/tests/single_cont.py b/scripts/stl/tests/single_cont.py
new file mode 100644
index 00000000..19563105
--- /dev/null
+++ b/scripts/stl/tests/single_cont.py
@@ -0,0 +1,17 @@
+from trex_stl_lib.api import *
+
+class STLS1(object):
+
+ def get_streams (self, direction = 0, **kwargs):
+ s1 = STLStream(packet = STLPktBuilder(pkt = Ether()/IP(src="16.0.0.1",dst="48.0.0.1")/UDP(dport=12,sport=1025)/(10*'x')),
+ mode = STLTXCont(pps = 2000))
+
+ return [s1]
+
+
+# dynamic load - used for trex console or simulator
+def register():
+ return STLS1()
+
+
+