fix(network): ipv4 prefix and length must be computed to avoid errors during creation (#779)

This commit is contained in:
Rüdiger Schmitz 2025-04-11 15:20:56 +02:00 committed by GitHub
parent c06b08e212
commit 44103a1ffd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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{