Fix CGW/MGW scope
This commit is contained in:
@@ -525,7 +525,11 @@ Function New-NSXTFirewall {
|
|||||||
|
|
||||||
$scopeLabels = @()
|
$scopeLabels = @()
|
||||||
if(!$InfraScope) {
|
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 {
|
} else {
|
||||||
foreach ($infraScopeName in $InfraScope) {
|
foreach ($infraScopeName in $InfraScope) {
|
||||||
$scope = Get-NSXTInfraScope -Name $infraScopeName
|
$scope = Get-NSXTInfraScope -Name $infraScopeName
|
||||||
|
|||||||
Reference in New Issue
Block a user