Split out nsx_user/pass to nsxv3 section
The default password for nsx-t changed from admin to default which is different than the default for nsx-mh. This patch splits out the nsx-t user/pass config options to it's own section so the defaults are correct. In addition these should be in their own config section anyways. Change-Id: If785d46344b734c13217e0dec573fc5929bf8ffa
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user