Skip to content

Commit

Permalink
Add section_id as optional parameter
Browse files Browse the repository at this point in the history
 to firstfreesubnet Resource.
  • Loading branch information
Steffen Kreis committed Jan 30, 2023
1 parent 80912e2 commit f59944e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/providers/phpipam/subnet_structure.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ func resourceFirstFreeSubnetSchema() map[string]*schema.Schema {
case k == "parent_subnet_id" || k == "subnet_mask":
v.Required = true
v.ForceNew = true
case k == "section_id":
v.Optional = true
case k == "custom_fields":
v.Optional = true
case resourceSubnetOptionalFields.Has(k):
Expand Down

0 comments on commit f59944e

Please sign in to comment.