summaryrefslogtreecommitdiffstats
path: root/scripts/stl/flow_stats.py
diff options
context:
space:
mode:
authorIdo Barnea <ibarnea@cisco.com>2016-03-07 10:55:59 +0200
committerIdo Barnea <ibarnea@cisco.com>2016-03-07 10:55:59 +0200
commitca3f7e0f81f782638440353c456382b6e607c71e (patch)
tree8cd21cd54a2e1d55bae1799cc95315d498f0cddd /scripts/stl/flow_stats.py
parentd5047a7e044c681fffa436015fd9cd246e4ad1b2 (diff)
changed rx stats to flow stats everywhere
Diffstat (limited to 'scripts/stl/flow_stats.py')
-rw-r--r--scripts/stl/flow_stats.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/stl/flow_stats.py b/scripts/stl/flow_stats.py
new file mode 100644
index 00000000..9248c691
--- /dev/null
+++ b/scripts/stl/flow_stats.py
@@ -0,0 +1,20 @@
+from trex_stl_lib.api import *
+
+# stream from pcap file. continues pps 10 in sec
+
+class STLS1(object):
+
+ def get_streams (self, direction = 0):
+ return [STLStream(packet = STLPktBuilder(pkt ="stl/yaml/udp_64B_no_crc.pcap"), # path relative to pwd
+# mode = STLTXCont(pps=10),
+ mode = STLTXSingleBurst(pps=1000, total_pkts=100000),
+ flow_stats = STLRxStats(pg_id = 7))
+ ]
+
+
+# dynamic load - used for trex console or simulator
+def register():
+ return STLS1()
+
+
+