Fixing optional for Source/Destination Groups + typo
This commit is contained in:
@@ -464,8 +464,8 @@ Function New-NSXTFirewall {
|
|||||||
[Parameter(Mandatory=$True)]$Name,
|
[Parameter(Mandatory=$True)]$Name,
|
||||||
[Parameter(Mandatory=$true)][ValidateSet("MGW","CGW")][String]$GatewayType,
|
[Parameter(Mandatory=$true)][ValidateSet("MGW","CGW")][String]$GatewayType,
|
||||||
[Parameter(Mandatory=$True)]$SequenceNumber,
|
[Parameter(Mandatory=$True)]$SequenceNumber,
|
||||||
[Parameter(Mandatory=$True)]$SourceGroup,
|
[Parameter(Mandatory=$False)]$SourceGroup,
|
||||||
[Parameter(Mandatory=$True)]$DestinationGroup,
|
[Parameter(Mandatory=$False)]$DestinationGroup,
|
||||||
[Parameter(Mandatory=$True)]$Service,
|
[Parameter(Mandatory=$True)]$Service,
|
||||||
[Parameter(Mandatory=$True)][ValidateSet("ALLOW","DENY")]$Action,
|
[Parameter(Mandatory=$True)][ValidateSet("ALLOW","DENY")]$Action,
|
||||||
[Parameter(Mandatory=$false)]$InfraScope,
|
[Parameter(Mandatory=$false)]$InfraScope,
|
||||||
@@ -490,7 +490,7 @@ Function New-NSXTFirewall {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(! $DestinationInfraGroup) {
|
if(! $DestinationInfraGroup) {
|
||||||
foreach ($group in $SourceInfraGroup) {
|
foreach ($group in $DestinationInfraGroup) {
|
||||||
$tmp = (Get-NSXTInfraGroup -Name $group).Path
|
$tmp = (Get-NSXTInfraGroup -Name $group).Path
|
||||||
$destinationGroups+= $tmp
|
$destinationGroups+= $tmp
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user