Fixing New-NSXTSegment (Network property not required)

This commit is contained in:
William Lam
2018-12-21 09:58:37 -08:00
parent 4652495ece
commit 81e60245d0

View File

@@ -147,12 +147,11 @@ Function New-NSXTSegment {
.DESCRIPTION
This cmdlet creates a new NSX-T Segment (Logical Networks)
.EXAMPLE
New-NSXTSegment -Name "sddc-cgw-network-4" -Gateway "192.168.4.1/24" -Network "192.168.0/24" -DHCP -DHCPRange "192.168.4.2-192.168.4.254"
New-NSXTSegment -Name "sddc-cgw-network-4" -Gateway "192.168.4.1/24" -DHCP -DHCPRange "192.168.4.2-192.168.4.254"
#>
Param (
[Parameter(Mandatory=$True)]$Name,
[Parameter(Mandatory=$True)]$Gateway,
[Parameter(Mandatory=$True)]$Network,
[Parameter(Mandatory=$False)]$DHCPRange,
[Switch]$DHCP,
[Switch]$Troubleshoot
@@ -167,7 +166,6 @@ Function New-NSXTSegment {
$subnets = @{
gateway_address = $gateway;
network = $Network;
dhcp_ranges = $dhcpConf;
}