diff options
author | mortenhillbom <mortenhillbom@gmail.com> | 2017-08-22 17:11:22 -0700 |
---|---|---|
committer | mortenhillbom <mortenhillbom@gmail.com> | 2017-08-22 18:08:57 -0700 |
commit | fc235fbbee490dd19bdadc99dfb6e39587d05bb3 (patch) | |
tree | 9ce376b0337a64410dbbbd2926de5c5e8b58400d /nfvbench/chain_clients.py | |
parent | 2d55474511a5057015e77547c326120c1649c0b7 (diff) |
NFVBENCH-1 Number of seconds to wait for VMs to pass traffic can be
set in config
Change-Id: Ia4ee4a89e3b839b287b7960c0d31dbc96e1f0331
Signed-off-by: mortenhillbom <mortenhillbom@gmail.com>
Diffstat (limited to 'nfvbench/chain_clients.py')
-rw-r--r-- | nfvbench/chain_clients.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nfvbench/chain_clients.py b/nfvbench/chain_clients.py index affccc8..bf51552 100644 --- a/nfvbench/chain_clients.py +++ b/nfvbench/chain_clients.py @@ -48,7 +48,9 @@ class BasicStageClient(object): self.host_ips = None def _ensure_vms_active(self): - for _ in range(self.config.generic_retry_count): + retry_count = (self.config.check_traffic_time_sec + + self.config.generic_poll_sec - 1) / self.config.generic_poll_sec + for _ in range(retry_count): for i, instance in enumerate(self.vms): if instance.status == 'ACTIVE': continue |