summaryrefslogtreecommitdiffstats
path: root/nfvbench/nfvbench.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/nfvbench.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/nfvbench.py')
-rw-r--r--nfvbench/nfvbench.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/nfvbench/nfvbench.py b/nfvbench/nfvbench.py
index 581206e..933d6fa 100644
--- a/nfvbench/nfvbench.py
+++ b/nfvbench/nfvbench.py
@@ -383,6 +383,11 @@ def parse_opts_from_cli():
action='store',
help='Custom label for performance records')
+ parser.add_argument('--hypervisor', dest='hypervisor',
+ action='store',
+ metavar='<hypervisor name>',
+ help='Where chains must run ("compute", "az:", "az:compute")')
+
parser.add_argument('--l2-loopback', '--l2loopback', dest='l2_loopback',
action='store',
metavar='<vlan>',
@@ -520,6 +525,9 @@ def main():
config.service_chain_count = opts.service_chain_count
if opts.no_vswitch_access:
config.no_vswitch_access = opts.no_vswitch_access
+ if opts.hypervisor:
+ # can be any of 'comp1', 'nova:', 'nova:comp1'
+ config.compute_nodes = opts.hypervisor
# port to port loopback (direct or through switch)
if opts.l2_loopback: