Skip to content

Commit

Permalink
Merge pull request #1185 from vmware/fix-maxint-error
Browse files Browse the repository at this point in the history
Remove hard-coded maxint default in flood profile
  • Loading branch information
annakhm authored Apr 16, 2024
2 parents 2cbc790 + 419511a commit 8e5b83d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions nsxt/resource_nsxt_policy_gateway_flood_protection_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"log"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
"github.com/vmware/vsphere-automation-sdk-go/runtime/bindings"
"github.com/vmware/vsphere-automation-sdk-go/runtime/data"
"github.com/vmware/vsphere-automation-sdk-go/services/nsxt/model"
Expand All @@ -32,11 +31,10 @@ func resourceNsxtPolicyGatewayFloodProtectionProfile() *schema.Resource {
func getGatewayFloodProtectionProfile() map[string]*schema.Schema {
baseProfile := getFloodProtectionProfile()
baseProfile["nat_active_conn_limit"] = &schema.Schema{
Type: schema.TypeInt,
Description: "Maximum limit of active NAT connections",
Optional: true,
ValidateFunc: validation.IntBetween(1, 4294967295),
Default: 4294967295,
Type: schema.TypeInt,
Description: "Maximum limit of active NAT connections",
Optional: true,
Computed: true,
}
return baseProfile
}
Expand Down

0 comments on commit 8e5b83d

Please sign in to comment.