summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Simonart <simonartxavier@gmail.com>2022-01-10 19:25:33 +0000
committerXavier Simonart <simonartxavier@gmail.com>2022-02-06 21:42:20 +0000
commite29c35c3bbbbd32754b0b2dc9570ea1195358c61 (patch)
tree4c2681c79ee86ba9cb16c5edcc910673dcea05dc
parent00f643ee70f45b3a361b578d90d393137b00fd0a (diff)
Added support for no warmup
If warmup time is set to 0, there will be no warmup at all. Before this patch, generator was started and immediately stopped which could result in some packets sent. Signed-off-by: Xavier Simonart <simonartxavier@gmail.com> Change-Id: I7acada86c527bcde70ab0117b79f95208a382cdd
-rw-r--r--VNFs/DPPD-PROX/helper-scripts/rapid/rapid_flowsizetest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_flowsizetest.py b/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_flowsizetest.py
index e004df87..2f121a52 100644
--- a/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_flowsizetest.py
+++ b/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_flowsizetest.py
@@ -110,6 +110,10 @@ class FlowSizeTest(RapidTest):
WARMUPSPEED = self.test['warmupspeed']
WARMUPTIME = self.test['warmuptime']
+ if WARMUPTIME == 0:
+ RapidLog.info(("Not Warming up"))
+ return
+
RapidLog.info(("Warming up during {} seconds..., packet size = {},"
" flows = {}, speed = {}").format(WARMUPTIME, imix, FLOWSIZE,
WARMUPSPEED))