summaryrefslogtreecommitdiffstats
path: root/scripts/api/stl/examples
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-01-28 06:08:24 -0500
committerimarom <imarom@cisco.com>2016-01-28 06:08:24 -0500
commit4715b86a6e165373e8b8b6d52095637a3882a942 (patch)
tree9af7f4e977e3de2b32872e1ac7597bf0c05b7df4 /scripts/api/stl/examples
parent47ebcfaaf581dd373c91514239149b9ba4281c43 (diff)
added API: release, remove_stream
Diffstat (limited to 'scripts/api/stl/examples')
-rw-r--r--scripts/api/stl/examples/stl_simple_burst.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/api/stl/examples/stl_simple_burst.py b/scripts/api/stl/examples/stl_simple_burst.py
index 3b394d10..2ca71b44 100644
--- a/scripts/api/stl/examples/stl_simple_burst.py
+++ b/scripts/api/stl/examples/stl_simple_burst.py
@@ -37,7 +37,7 @@ def simple_burst ():
try:
- #c.logger.set_verbose(c.logger.VERBOSE_NORMAL)
+ #c.set_verbose("high")
# create two bursts and link them
s1 = STLStream(packet = pkt_bld,
@@ -56,7 +56,7 @@ def simple_burst ():
c.reset(ports = [0, 1])
# add both streams to ports
- c.add_streams([s1, s2], ports = [0, 1])
+ stream_ids = c.add_streams([s1, s2], ports = [0, 1])
# run 5 times
for i in xrange(1, 6):