Skip to content

Commit

Permalink
Add validator for reserved IP ranges
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Khmelnitsky <akhmelnitsky@vmware.com>
  • Loading branch information
annakhm committed Dec 6, 2024
1 parent 2413c69 commit 563b2a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nsxt/resource_nsxt_vpc_subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,8 @@ var vpcSubnetSchema = map[string]*metadata.ExtendedSchema{
Type: schema.TypeList,
Elem: &metadata.ExtendedSchema{
Schema: schema.Schema{
Type: schema.TypeString,
Type: schema.TypeString,
ValidateFunc: validateCidrOrIPOrRange(),
},
Metadata: metadata.Metadata{
SchemaType: "string",
Expand Down

0 comments on commit 563b2a0

Please sign in to comment.