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

Add-NsxLoadBalancerPoolMember Problem #575

Closed
eaphilipp opened this issue May 1, 2019 · 3 comments · Fixed by #577
Closed

Add-NsxLoadBalancerPoolMember Problem #575

eaphilipp opened this issue May 1, 2019 · 3 comments · Fixed by #577

Comments

@eaphilipp
Copy link

Hello,

I am trying to automate a NSX LoadBalancer Pool Member add and I am using the following commandlet:

get-nsxedge TEST-LB | Get-NsxLoadBalancer | Get-NsxLoadBalancerPool -name SYSLOG | Add-NsxLoadBalancerPoolMember -Name NODE-1-5-914 -IpAddress 9.9.9.9 -Weight 1 -MonitorPort 9001 -Port 514

Everything works except for the -Monitor Port. It is not putting 9001 it is putting 514.

What am I doing wrong?

@alagoutte
Copy link
Contributor

alagoutte commented May 1, 2019

Hi,

i look like a bug...

On line 31096 of PowerNSX.psm1

Add-XmlElement -xmlRoot $xmlMember -xmlElementName "monitorPort" -xmlElementText $port

should be

Add-XmlElement -xmlRoot $xmlMember -xmlElementName "monitorPort" -xmlElementText $monitorport

@eaphilipp
Copy link
Author

eaphilipp commented May 1, 2019

So I altered the .PSM1 file. I found the bad line and it still doesn't work? I have never done this so I am not sure if there is something else I have to do? I reloaded the ISE and the modules were reloaded.

@alagoutte
Copy link
Contributor

I will push a fix soon

You need to may be force reload of module

Import-Module PowerNSX -force

dcoghlan added a commit that referenced this issue May 3, 2019
Add-NsxLoadBalancerPoolMember: Fix wrong variable name for monitorPort
Fixes #575
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants