diff options
Diffstat (limited to 'scripts/stl/pcap_with_vm.py')
-rw-r--r-- | scripts/stl/pcap_with_vm.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/stl/pcap_with_vm.py b/scripts/stl/pcap_with_vm.py index a073f959..7cf2906b 100644 --- a/scripts/stl/pcap_with_vm.py +++ b/scripts/stl/pcap_with_vm.py @@ -30,13 +30,19 @@ class STLPcap(object): def get_streams (self, + direction = 0, ipg_usec = 10.0, loop_count = 5, ip_src_range = None, - ip_dst_range = {'start' : '10.0.0.1', 'end': '10.0.0.254'}): + ip_dst_range = {'start' : '10.0.0.1', 'end': '10.0.0.254'}, + **kwargs): vm = self.create_vm(ip_src_range, ip_dst_range) - profile = STLProfile.load_pcap(self.pcap_file, ipg_usec = ipg_usec, loop_count = loop_count, vm = vm) + + profile = STLProfile.load_pcap(self.pcap_file, + ipg_usec = ipg_usec, + loop_count = loop_count, + vm = vm) return profile.get_streams() |