aboutsummaryrefslogtreecommitdiffstats
path: root/nfvbench/traffic_client.py
diff options
context:
space:
mode:
authorfmenguy <francoisregis.menguy@orange.com>2020-05-29 16:09:03 +0200
committerfmenguy <francoisregis.menguy@orange.com>2020-05-29 16:12:38 +0200
commitb8c9133ba8b6806093e9fa4b4668c965dc8073a5 (patch)
tree8f41e4b26a1f80d3ca778292927adfcbde2a62b8 /nfvbench/traffic_client.py
parentcaac5c7f6e80d33d5031f26e5e0f0ea6f1d3789b (diff)
NFVBENCH-169: UDP port random step correction
Change-Id: I1ff96c02ea5b3abd126f303e3197dbcaf60e7dc3 Signed-off-by: fmenguy <francoisregis.menguy@orange.com>
Diffstat (limited to 'nfvbench/traffic_client.py')
-rwxr-xr-xnfvbench/traffic_client.py7
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)