Fix CGW/MGW scope
This commit is contained in:
1 parent
bda5a5a276
commit
d95806ea2f
1 file changed
+4
@@ -525,7 +525,11 @@ Function New-NSXTFirewall {
|
||||
|
||||
$scopeLabels = @()
|
||||
if(!$InfraScope) {
|
||||
if($GatewayType.toLower() -eq "cgw") {
|
||||
$scopeLabels = @("/infra/labels/$($GatewayType.toLower())-all")
|
||||
} else {
|
||||
$scopeLabels = @("/infra/labels/$($GatewayType.toLower())")
|
||||
}
|
||||
} else {
|
||||
foreach ($infraScopeName in $InfraScope) {
|
||||
$scope = Get-NSXTInfraScope -Name $infraScopeName
|
||||
|
||||
Reference in new issue
Block a user