Fixing logic for SRC/DST Infra Group
This commit is contained in:
@@ -489,7 +489,7 @@ Function New-NSXTFirewall {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(! $DestinationInfraGroup) {
|
if($DestinationInfraGroup) {
|
||||||
foreach ($group in $DestinationInfraGroup) {
|
foreach ($group in $DestinationInfraGroup) {
|
||||||
$tmp = (Get-NSXTInfraGroup -Name $group).Path
|
$tmp = (Get-NSXTInfraGroup -Name $group).Path
|
||||||
$destinationGroups+= $tmp
|
$destinationGroups+= $tmp
|
||||||
@@ -506,7 +506,7 @@ Function New-NSXTFirewall {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(! $SourceInfraGroup) {
|
if($SourceInfraGroup) {
|
||||||
foreach ($group in $SourceInfraGroup) {
|
foreach ($group in $SourceInfraGroup) {
|
||||||
$tmp = (Get-NSXTInfraGroup -Name $group).Path
|
$tmp = (Get-NSXTInfraGroup -Name $group).Path
|
||||||
$sourceGroups+= $tmp
|
$sourceGroups+= $tmp
|
||||||
|
|||||||
Reference in New Issue
Block a user