Skip to content

Commit

Permalink
Merge pull request #963 from Juniper/961-attempt-to-validate-unknown-…
Browse files Browse the repository at this point in the history
…vn-bindings

Fix validation of `Unknown` bindings in virtual network resource
  • Loading branch information
chrismarget-j authored Nov 5, 2024
2 parents 0a2e4f1 + 3caf4a3 commit 8d9026d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apstra/blueprint/datacenter_virtual_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 8d9026d

Please sign in to comment.