Open sheetjai opened 3 years ago
Hello,
I think, you need to specific the logicial switch object for ConnectedTo parameter try
$ls = Get-NsxTransportZone | Get-NsxLogicalSwitch vcshotfix-vcs-ei-hotfix-dpg-mgmt
Get-NsxEdge customer-nsx-edge | Get-NsxEdgeInterface -index 1 | Set-NsxEdgeInterface -AddressSpec $add1 -type uplink -Name "Private Uplink" -connectedto $ls
(yet the example missing this part...)
I am not seeing any output from running first command, it is blank. Below is the result:
C:\Users\SheetalJain> $ls = Get-NsxTransportZone | Get-NsxLogicalSwitch vcshotfix-vcs-ei-hotfix-dpg-mgmt C:\Users\SheetalJain> $ls C:\Users\SheetalJain>
vcshotfix-vcs-ei-hotfix-dpg-mgmt is logical switch (VNI) or PortGroup ?
Hi Alexis, vcshotfix-vcs-ei-hotfix-dpg-mgmt is a port group. Regards,Sheetal Jain Network Specialist GTS Labs, BCIT, 5th Floor , Bangalore, 560045 , India Mobile: +91 9902900771Email: sheetal.jain@in.ibm.comIBM Certified ITIL V3 Foundation ----- Original message -----From: Alexis La Goutte notifications@github.comTo: vmware/powernsx powernsx@noreply.github.comCc: sheetjai sheetal.jain@in.ibm.com, Author author@noreply.github.comSubject: [EXTERNAL] Re: [vmware/powernsx] What is the command to get the Distributed Virtual Port Group for updating secondary address for Edge interface? (#634)Date: Fri, Oct 9, 2020 3:36 PM vcshotfix-vcs-ei-hotfix-dpg-mgmt is logical switch (VNI) or PortGroup ? —You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.
Hi Alexis, vcshotfix-vcs-ei-hotfix-dpg-mgmt is a port group.
on this case, use
-ConnectedTo (Get-VDPortgroup vcshotfix-vcs-ei-hotfix-dpg-mgmt)
Any suggestion anyone as it is still not working?
Get-NsxEdge customer-nsx-edge | Get-NsxEdgeInterface -index 1 | Set-NsxEdgeInterface -AddressSpec $add1 -type uplink
cmdlet Set-NsxEdgeInterface at command pipeline position 3 Supply values for the following parameters: Name: Private Uplink ConnectedTo: vcshotfix-vcs-ei-hotfix-dpg-mgmt Set-NsxEdgeInterface : Cannot validate argument on parameter 'ConnectedTo'. Must specify a distributed port group or a logical switch At line:1 char:65