From 032480933eaa065761ac1d5d27b96bced93d5343 Mon Sep 17 00:00:00 2001 From: imarom Date: Thu, 25 Feb 2016 10:26:21 -0500 Subject: accident - fixed problems from previous commit --- scripts/stl/udp_1pkt_simple.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'scripts/stl') 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 -- cgit 1.2.3-korg