summaryrefslogtreecommitdiffstats
path: root/scripts/stl/tests/multi_burst.py
blob: 68a239f555e4466c63c6f2a18bdae83c6fe5d7f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 = STLTXMultiBurst(pkts_per_burst = 9, count = 2, ibg = 13))

        return [s1]


# dynamic load - used for trex console or simulator
def register():
    return STLS1()