summaryrefslogtreecommitdiffstats
path: root/scripts/stl
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-02-25 10:26:21 -0500
committerimarom <imarom@cisco.com>2016-02-25 10:26:21 -0500
commit032480933eaa065761ac1d5d27b96bced93d5343 (patch)
treecbe44d33b1d6ae7d566c302dee910cc717e3b167 /scripts/stl
parentaaef3f95683bfa1574537c543e4ffc86afb0480f (diff)
accident - fixed problems from previous commit
Diffstat (limited to 'scripts/stl')
-rw-r--r--scripts/stl/udp_1pkt_simple.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/stl/udp_1pkt_simple.py b/scripts/stl/udp_1pkt_simple.py
index 2cfb9f1d..2a2c8838 100644
--- a/scripts/stl/udp_1pkt_simple.py
+++ b/scripts/stl/udp_1pkt_simple.py
@@ -3,10 +3,8 @@ from trex_stl_lib.api import *
class STLS1(object):
def create_stream (self):
- return STLStream( packet = STLPktBuilder(pkt = Ether(dst = "5")/IP(src="16.0.0.1",dst="48.0.0.1")/UDP(dport=12,sport=1025)/(10*'x')),
- #mode = STLTXCont()
- mode = STLTXSingleBurst(total_pkts = 1)
- )
+ return STLStream( packet = STLPktBuilder(pkt = Ether()/IP(src="16.0.0.1",dst="48.0.0.1")/UDP(dport=12,sport=1025)/(10*'x')),
+ mode = STLTXCont())
def get_streams (self, direction = 0):
# create 1 stream