diff options
Diffstat (limited to 'scripts/stl/udp_1pkt_pcap_relative_path.py')
-rw-r--r-- | scripts/stl/udp_1pkt_pcap_relative_path.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/stl/udp_1pkt_pcap_relative_path.py b/scripts/stl/udp_1pkt_pcap_relative_path.py new file mode 100644 index 00000000..00b5e5df --- /dev/null +++ b/scripts/stl/udp_1pkt_pcap_relative_path.py @@ -0,0 +1,19 @@ +from trex_stl_lib.api import * + +# stream from pcap file. continues pps 10 in sec +# path_relative_to_profile = True + +class STLS1(object): + + def get_streams (self, direction = 0, **kwargs): + return [STLStream(packet = STLPktBuilder(pkt ="yaml/udp_64B_no_crc.pcap", + path_relative_to_profile = True), # path relative to profile and not to loader path + mode = STLTXCont(pps=10)) ] #rate continues, could be STLTXSingleBurst,STLTXMultiBurst + + +# dynamic load - used for trex console or simulator +def register(): + return STLS1() + + + |