Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

LDR Password / SSH Options #472

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

LDR Password / SSH Options #472

wants to merge 1 commit into from

Conversation

kalenarndt
Copy link
Contributor

Copied the settings and parameters from New-NSXEdge to the New-NSXLogicalRouter function.

The XML structure is the same and if a password isn't specified during deployment, console login will fail.

Password is set to a mandatory value so this might break deployments that don't specify one.

Documentation is wrong and says the password is required during the deployment but the DLR deploys with some magic default password if you don't set one.

Copied the settings and parameters from New-NSXEdge to the New-NSXLogicalRouter function.

The XML structure is the same and if a password isn't specified during deployment, console login will fail.

Password is set to a mandatory value so this might break deployments that don't specify one.
[System.XML.XMLElement]$xmlCliSettings = $XMLDoc.CreateElement("cliSettings")
$xmlRoot.appendChild($xmlCliSettings) | out-null

if ( $PsBoundParameters.ContainsKey('Password') ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to check because it is always a value...

@alagoutte
Copy link
Contributor

Do you have run testsuite ? (specialty tests/integration/03.Logical.Router...)

Why make password mandatory ?

@kalenarndt
Copy link
Contributor Author

I set the password to required because you can't login to the LDR via SSH or through the console since a password was never set. In order to fix this you have to modify the edge and set a password through the NSX UI.

I figured that since this is the one edge object that doesn't have a password parameter and it is required for the other objects, that it should line up to support that.

As far as the testsuite I haven't but I did just deploy the DLR via a script that set the password via my repo and tested login functionality.

@dcoghlan dcoghlan added the Test Required Tests are required before this request will be merged. label Aug 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Test Required Tests are required before this request will be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants