Fix CGW/MGW scope

This commit is contained in:
William Lam
2019-03-19 10:31:20 -07:00
parent bda5a5a276
commit d95806ea2f

View File

@@ -525,7 +525,11 @@ Function New-NSXTFirewall {
$scopeLabels = @()
if(!$InfraScope) {
$scopeLabels = @("/infra/labels/$($GatewayType.toLower())-all")
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