aboutsummaryrefslogtreecommitdiffstats
path: root/nfvbench/chain_runner.py
diff options
context:
space:
mode:
authorahothan <ahothan@cisco.com>2018-10-14 15:15:36 -0700
committerahothan <ahothan@cisco.com>2018-10-14 16:00:37 -0700
commitc0ef57f8ec086c07053d529510992c869c30c9d2 (patch)
tree1a63c2501028eb0a4844feff2f8a31277a0e7078 /nfvbench/chain_runner.py
parentb68b487864cc080b86ad358a5b1fb9bad912efd4 (diff)
NFVBENCH-103 Add --hypervisor cli options and fix vm placement for multi-chain2.0.0
Change-Id: I80ab8b7c39221132ff43b95cd453dbfd4edd580c Signed-off-by: ahothan <ahothan@cisco.com>
Diffstat (limited to 'nfvbench/chain_runner.py')
-rw-r--r--nfvbench/chain_runner.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/nfvbench/chain_runner.py b/nfvbench/chain_runner.py
index 0a2665d..c120501 100644
--- a/nfvbench/chain_runner.py
+++ b/nfvbench/chain_runner.py
@@ -147,9 +147,11 @@ class ChainRunner(object):
return: the results of the benchmark as a dict
"""
- LOG.info('Starting %s chain...', self.chain_name)
-
results = {}
+ if self.config.no_traffic:
+ return results
+
+ LOG.info('Starting %dx%s benchmark...', self.config.service_chain_count, self.chain_name)
self.__setup_traffic()
# now that the dest MAC for all VNFs is known in all cases, it is time to create
# workers as they might be needed to extract stats prior to sending traffic