diff options
Diffstat (limited to 'nfvbench/traffic_client.py')
-rwxr-xr-x | nfvbench/traffic_client.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/nfvbench/traffic_client.py b/nfvbench/traffic_client.py index f26a747..6d52475 100755 --- a/nfvbench/traffic_client.py +++ b/nfvbench/traffic_client.py @@ -246,11 +246,8 @@ class Device(object): else: self.ip_block = IpBlock(self.ip, step, self.ip_size) - if generator_config.gen_config.udp_port_step == 'random': - step = 1 - else: - step = generator_config.gen_config.udp_port_step - self.udp_ports = UdpPorts(src_min, src_max, dst_min, dst_max, step) + self.udp_ports = UdpPorts(src_min, src_max, dst_min, dst_max, + generator_config.gen_config.udp_port_step) self.gw_ip_block = IpBlock(generator_config.gateway_ips[port], generator_config.gateway_ip_addrs_step, self.chain_count) |