Skip to content

Commit 8e5b83d

Browse files
authored
Merge pull request #1185 from vmware/fix-maxint-error
Remove hard-coded maxint default in flood profile
2 parents 2cbc790 + 419511a commit 8e5b83d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Diff for: nsxt/resource_nsxt_policy_gateway_flood_protection_profile.go

+4-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"log"
99

1010
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
11-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
1211
"github.com/vmware/vsphere-automation-sdk-go/runtime/bindings"
1312
"github.com/vmware/vsphere-automation-sdk-go/runtime/data"
1413
"github.com/vmware/vsphere-automation-sdk-go/services/nsxt/model"
@@ -32,11 +31,10 @@ func resourceNsxtPolicyGatewayFloodProtectionProfile() *schema.Resource {
3231
func getGatewayFloodProtectionProfile() map[string]*schema.Schema {
3332
baseProfile := getFloodProtectionProfile()
3433
baseProfile["nat_active_conn_limit"] = &schema.Schema{
35-
Type: schema.TypeInt,
36-
Description: "Maximum limit of active NAT connections",
37-
Optional: true,
38-
ValidateFunc: validation.IntBetween(1, 4294967295),
39-
Default: 4294967295,
34+
Type: schema.TypeInt,
35+
Description: "Maximum limit of active NAT connections",
36+
Optional: true,
37+
Computed: true,
4038
}
4139
return baseProfile
4240
}

0 commit comments

Comments
 (0)