Skip to content

Commit

Permalink
Merge pull request #56 from steffencircle/add_section_id_to_firstfree…
Browse files Browse the repository at this point in the history
…subnet

Add section_id as optional parameter to firstfreesubnet Resource.
  • Loading branch information
pavel-z1 authored Jan 31, 2023
2 parents 80912e2 + 205a390 commit 5d0cf96
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 5d0cf96

Please sign in to comment.