From 3caf4a39cd2ef52f532e9f546788894ee16a3e0b Mon Sep 17 00:00:00 2001 From: Chris Marget Date: Tue, 5 Nov 2024 10:33:30 -0500 Subject: [PATCH] do not attempt to validate unknown attribute --- apstra/blueprint/datacenter_virtual_network.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apstra/blueprint/datacenter_virtual_network.go b/apstra/blueprint/datacenter_virtual_network.go index 778146a0..1f48aff8 100644 --- a/apstra/blueprint/datacenter_virtual_network.go +++ b/apstra/blueprint/datacenter_virtual_network.go @@ -922,6 +922,10 @@ func (o DatacenterVirtualNetwork) ValidateConfigBindingsReservation(ctx context. func (o DatacenterVirtualNetwork) VersionConstraints() compatibility.ConfigConstraints { var response compatibility.ConfigConstraints + if o.Bindings.IsUnknown() { + return response // cannot validate with unknown bindings + } + if len(o.Bindings.Elements()) == 0 { response.AddAttributeConstraints( compatibility.AttributeConstraint{