Merge "Split out nsx_user/pass to nsxv3 section"

This commit is contained in:
Jenkins
2015-07-08 05:45:21 +00:00
committed by Gerrit Code Review
2 changed files with 9 additions and 2 deletions
@@ -158,6 +158,13 @@ cluster_opts = [
]
nsx_v3_opts = [
cfg.StrOpt('nsx_user',
default='admin',
help=_('User name for NSX controllers in this cluster')),
cfg.StrOpt('nsx_password',
default='default',
secret=True,
help=_('Password for NSX controllers in this cluster')),
cfg.StrOpt('default_edge_cluster_uuid',
help=_("Default edge cluster identifier"))]
@@ -31,8 +31,8 @@ def _get_controller_endpoint():
# NOTE: The same options defined for 'old' NSX controller connection can be
# reused for connecting to next-gen NSX controllers
controller = cfg.CONF.nsx_controllers[0]
username = cfg.CONF.nsx_user
password = cfg.CONF.nsx_password
username = cfg.CONF.nsx_v3.nsx_user
password = cfg.CONF.nsx_v3.nsx_password
return "https://%s" % controller, username, password