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

Commit

Permalink
Merge pull request #422 from alagoutte/New-NSXManager_fixdnsserver
Browse files Browse the repository at this point in the history
new-NSXManager: add support of multiple DNS Server
  • Loading branch information
dcoghlan committed Aug 7, 2019
2 parents d7456e7 + f0016bb commit 3363007
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions module/PowerNSX.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -5870,9 +5870,9 @@ function New-NsxManager{
[ValidateNotNullOrEmpty()]
[ipaddress]$Gateway,
[Parameter ( Mandatory=$True )]
#DNS Server for the deployed NSX Manager (One only.)
#DNS Server for the deployed NSX Manager
[ValidateNotNullOrEmpty()]
[ipaddress]$DnsServer,
[ipaddress[]]$DnsServer,
[Parameter ( Mandatory=$True )]
#DNS Domain Name for the deployed NSX Manager.
[ValidateNotNullOrEmpty()]
Expand Down Expand Up @@ -5961,7 +5961,7 @@ function New-NsxManager{
$OvfConfiguration.common.vsm_ip_0.value = $IpAddress
$OvfConfiguration.common.vsm_netmask_0.value = $Netmask
$OvfConfiguration.common.vsm_gateway_0.value = $Gateway
$OvfConfiguration.common.vsm_dns1_0.value = $DnsServer
$OvfConfiguration.common.vsm_dns1_0.value = $DnsServer.IPAddressToString -join ","
$OvfConfiguration.common.vsm_domain_0.value = $DnsDomain
$OvfConfiguration.common.vsm_ntp_0.value = $NtpServer
$OvfConfiguration.common.vsm_isSSHEnabled.value = $EnableSsh
Expand Down

0 comments on commit 3363007

Please sign in to comment.