From b8c9133ba8b6806093e9fa4b4668c965dc8073a5 Mon Sep 17 00:00:00 2001 From: fmenguy Date: Fri, 29 May 2020 16:09:03 +0200 Subject: NFVBENCH-169: UDP port random step correction Change-Id: I1ff96c02ea5b3abd126f303e3197dbcaf60e7dc3 Signed-off-by: fmenguy --- nfvbench/traffic_client.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'nfvbench/traffic_client.py') 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) -- cgit 1.2.3-korg