diff options
Diffstat (limited to 'api/stl/examples/stl_simple_burst.py')
-rw-r--r-- | api/stl/examples/stl_simple_burst.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/api/stl/examples/stl_simple_burst.py b/api/stl/examples/stl_simple_burst.py index ff159289..3b394d10 100644 --- a/api/stl/examples/stl_simple_burst.py +++ b/api/stl/examples/stl_simple_burst.py @@ -36,11 +36,18 @@ def simple_burst (): passed = True try: + #c.logger.set_verbose(c.logger.VERBOSE_NORMAL) # create two bursts and link them - s1 = STLSingleBurstStream(packet = pkt_bld, total_pkts = 5000) - s2 = STLSingleBurstStream(packet = pkt_bld, total_pkts = 3000, next_stream_id = s1.get_id()) + s1 = STLStream(packet = pkt_bld, + mode = STLTXSingleBurst(total_pkts = 5000) + ) + + s2 = STLStream(packet = pkt_bld, + mode = STLTXSingleBurst(total_pkts = 3000), + next_stream_id = s1.get_id()) + # connect to server c.connect() |