From 779037a640f9cce4e2309ed1027befcd020e7660 Mon Sep 17 00:00:00 2001 From: Jose Luis Pedrosa Date: Mon, 26 Feb 2024 20:41:31 +0000 Subject: [PATCH] Fix max value for MTU - Fix Main --- routeros/resource_ipv6_neighbor_discovery.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routeros/resource_ipv6_neighbor_discovery.go b/routeros/resource_ipv6_neighbor_discovery.go index 552f4676..70344539 100644 --- a/routeros/resource_ipv6_neighbor_discovery.go +++ b/routeros/resource_ipv6_neighbor_discovery.go @@ -3,6 +3,7 @@ package routeros import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + "math" ) /* @@ -78,7 +79,7 @@ func ResourceIPv6NeighborDiscovery() *schema.Resource { Type: schema.TypeInt, Optional: true, Description: "The flag indicates whether hosts should use stateful autoconfiguration (DHCPv6) to obtain addresses", - ValidateFunc: validation.IntBetween(0, 4294967295), + ValidateFunc: validation.IntBetween(0, math.MaxInt32), }, "other_configuration": { Type: schema.TypeBool,