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