From d57f6263de5335d17912f5cf6ed91d07dc81b50d Mon Sep 17 00:00:00 2001 From: Tong Liu Date: Wed, 27 Jan 2016 22:09:02 +0000 Subject: [PATCH] Add NSXv3 config for tempest In order to let vmware_nsx_tempest talk to NSXv3 client, we need to config some parameters in tempest.conf. Add the required parameters in config.py to enable them. Change-Id: I701dd7b86656976a854d73ac4daa5498e4cd112b --- vmware_nsx_tempest/config.py | 15 +++++++++++++++ vmware_nsx_tempest/plugin.py | 3 +++ 2 files changed, 18 insertions(+) diff --git a/vmware_nsx_tempest/config.py b/vmware_nsx_tempest/config.py index 48ec6c88d1..116ffee9f6 100644 --- a/vmware_nsx_tempest/config.py +++ b/vmware_nsx_tempest/config.py @@ -100,3 +100,18 @@ L2gwGroup = [ help="l2gw multiple devices, interface has multiple VLANs" " m-ifs::dvportgroup-144|138#246;dvportgroup-155|339"), ] + +nsxv3_group = cfg.OptGroup(name='nsxv3', + title="NSXv3 Configuration Options") + +NSXv3Group = [ + cfg.StrOpt('nsx_manager', + default='', + help="NSX manager IP address"), + cfg.StrOpt('nsx_user', + default='admin', + help="NSX manager username"), + cfg.StrOpt('nsx_password', + default='default', + help="NSX manager password"), +] diff --git a/vmware_nsx_tempest/plugin.py b/vmware_nsx_tempest/plugin.py index 6e9f99d6a6..53f28be2f6 100644 --- a/vmware_nsx_tempest/plugin.py +++ b/vmware_nsx_tempest/plugin.py @@ -53,6 +53,9 @@ class VMwareNsxTempestPlugin(plugins.TempestPlugin): config.register_opt_group( conf, config_nsx.l2gw_group, config_nsx.L2gwGroup) + config.register_opt_group( + conf, + config_nsx.nsxv3_group, config_nsx.NSXv3Group) def get_opt_lists(self): return [(config_nsx.scenario_group.name, config_nsx.scenario_group)]