summaryrefslogtreecommitdiffstats
path: root/scripts/stl/rx_stats.py
blob: 892fe1a0642b847354ddc8f05e5b27e4d7cb9acb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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()