Skip to content

Commit

Permalink
Add validation for request
Browse files Browse the repository at this point in the history
  • Loading branch information
jlpedrosa authored and vaerh committed Feb 13, 2024
1 parent 216bfc1 commit eb4bef2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion routeros/resource_ipv6_dhcp_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ func ResourceIPv6DhcpClient() *schema.Resource {
Type: schema.TypeList,
Required: true,
Description: "To choose if the DHCPv6 request will ask for the address or the IPv6 prefix, or both.",
Elem: &schema.Schema{Type: schema.TypeString},
Elem: &schema.Schema{
Type: schema.TypeString,
ValidateFunc: validation.StringInSlice([]string{"info", "address", "prefix"}, false),
},
},
"status": {
Type: schema.TypeString,
Expand Down

0 comments on commit eb4bef2

Please sign in to comment.