summaryrefslogtreecommitdiffstats
path: root/scripts/api/stl
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-02-08 09:01:11 -0500
committerimarom <imarom@cisco.com>2016-02-08 09:01:55 -0500
commitf5a5e50bfe046148a20f6ce578d6082119dec2c0 (patch)
tree10bd95aa2ae3fb831dad7102ccbd5bd372199f54 /scripts/api/stl
parent5be5c499e145656daf748b0092732b1cb092e445 (diff)
stream ID allocation
Diffstat (limited to 'scripts/api/stl')
-rw-r--r--scripts/api/stl/examples/stl_simple_burst.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/scripts/api/stl/examples/stl_simple_burst.py b/scripts/api/stl/examples/stl_simple_burst.py
index 91fc9e5e..1e3e7695 100644
--- a/scripts/api/stl/examples/stl_simple_burst.py
+++ b/scripts/api/stl/examples/stl_simple_burst.py
@@ -14,12 +14,15 @@ def simple_burst ():
pkt = STLPktBuilder(pkt = Ether()/IP(src="16.0.0.1",dst="48.0.0.1")/UDP(dport=12,sport=1025)/IP()/'a_payload_example')
# create two bursts and link them
- s1 = STLStream(packet = pkt,
- mode = STLTXSingleBurst(total_pkts = 5000))
+ s1 = STLStream(name = 'A',
+ packet = pkt,
+ mode = STLTXSingleBurst(total_pkts = 5000),
+ next = 'B')
- s2 = STLStream(packet = pkt,
- mode = STLTXSingleBurst(total_pkts = 3000),
- next_stream_id = s1.get_id())
+ s2 = STLStream(name = 'B',
+ self_start = False,
+ packet = pkt,
+ mode = STLTXSingleBurst(total_pkts = 3000))
# connect to server
c.connect()