Skip to content

Commit

Permalink
Merge pull request #515 from grcusanz/master
Browse files Browse the repository at this point in the history
Fixed pool start/end for GRE subnet.
  • Loading branch information
grcusanz authored Feb 28, 2022
2 parents a4973b3 + 48f915a commit 1d5a9fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SDNExpress/scripts/SDNExpressModule.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -2027,10 +2027,10 @@ function New-SDNExpressGatewayPool
}

if ($IsTypeGre -or $IsTypeAll) {
if ($grePoolStart -eq $null) {
if ([string]::IsNullOrEmpty($grePoolStart)) {
$GrePoolStart = (Get-IPAddressInSubnet -subnet $GreSubnetAddressPrefix -offset 1)
}
if ($grePoolEnd -eq $null) {
if ([string]::IsNullOrEmpty($grePoolEnd)) {
$GrePoolEnd = (Get-IPLastAddressInSubnet -subnet $GreSubnetAddressPrefix)
}

Expand Down

0 comments on commit 1d5a9fd

Please sign in to comment.