From 205a390035b2c28d3f55aadbe027966747fdf8d5 Mon Sep 17 00:00:00 2001 From: Steffen Circle Date: Tue, 31 Jan 2023 09:25:29 +0100 Subject: [PATCH] Add section_id as optional parameter to firstfreesubnet Resource. --- plugin/providers/phpipam/subnet_structure.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/providers/phpipam/subnet_structure.go b/plugin/providers/phpipam/subnet_structure.go index 1a3908a7..532c02e5 100644 --- a/plugin/providers/phpipam/subnet_structure.go +++ b/plugin/providers/phpipam/subnet_structure.go @@ -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):