From 44103a1ffde99f8ac06f1412cbfd1115d2faa775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Schmitz?= Date: Fri, 11 Apr 2025 15:20:56 +0200 Subject: [PATCH] fix(network): ipv4 prefix and length must be computed to avoid errors during creation (#779) --- stackit/internal/services/iaas/network/resource.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stackit/internal/services/iaas/network/resource.go b/stackit/internal/services/iaas/network/resource.go index db113e61..f3d3f92e 100644 --- a/stackit/internal/services/iaas/network/resource.go +++ b/stackit/internal/services/iaas/network/resource.go @@ -213,6 +213,7 @@ func (r *networkResource) Schema(_ context.Context, _ resource.SchemaRequest, re "ipv4_prefix": schema.StringAttribute{ Description: "The IPv4 prefix of the network (CIDR).", Optional: true, + Computed: true, Validators: []validator.String{ validate.CIDR(), }, @@ -222,6 +223,7 @@ func (r *networkResource) Schema(_ context.Context, _ resource.SchemaRequest, re }, "ipv4_prefix_length": schema.Int64Attribute{ Description: "The IPv4 prefix length of the network.", + Computed: true, Optional: true, }, "prefixes": schema.ListAttribute{