Fixing the default Scope label for CGW FW Rules

This commit is contained in:
William Lam
2019-03-18 13:39:52 -07:00
parent 72a5555860
commit bda5a5a276

View File

@@ -524,8 +524,8 @@ Function New-NSXTFirewall {
} }
$scopeLabels = @() $scopeLabels = @()
if(! $InfraScope ) { if(!$InfraScope) {
$scopeLabels = @("/infra/labels/$($GatewayType.toLower())") $scopeLabels = @("/infra/labels/$($GatewayType.toLower())-all")
} else { } else {
foreach ($infraScopeName in $InfraScope) { foreach ($infraScopeName in $InfraScope) {
$scope = Get-NSXTInfraScope -Name $infraScopeName $scope = Get-NSXTInfraScope -Name $infraScopeName