From f0ab9eba97221e491cf7b3dd846eb8c23d920ec2 Mon Sep 17 00:00:00 2001 From: Ido Barnea Date: Mon, 8 Feb 2016 11:25:07 +0200 Subject: Rx stat per flow. Low level working for xl710, and partly for i350. added full clone (with CP VM) to stream --- scripts/stl/rx_stats.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 scripts/stl/rx_stats.py (limited to 'scripts/stl') diff --git a/scripts/stl/rx_stats.py b/scripts/stl/rx_stats.py new file mode 100644 index 00000000..892fe1a0 --- /dev/null +++ b/scripts/stl/rx_stats.py @@ -0,0 +1,19 @@ +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), + rx_stats = STLRxStats(user_id = 7)) + ] + + +# dynamic load - used for trex console or simulator +def register(): + return STLS1() + + + -- cgit 1.2.3-korg