Skip to content

Commit

Permalink
clarify comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismarget-j committed Oct 14, 2024
1 parent 0217ae3 commit 9b491df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apstra/blueprint/datacenter_virtual_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,10 +572,10 @@ func (o *DatacenterVirtualNetwork) Request(ctx context.Context, diags *diag.Diag
}

if o.Type.ValueString() == apstra.VnTypeVlan.String() {
// Exactly one binding is required when type==vlan.
// Maximum of one binding is required when type==vlan.
// Apstra requires vlan == vni when creating a "vlan" type VN.
// VNI attribute is forbidden when type == VLAN
if len(vnBindings) > 0 && vnBindings[0].VlanId != nil { // todo is this right?
if len(vnBindings) > 0 && vnBindings[0].VlanId != nil {
v := apstra.VNI(*vnBindings[0].VlanId)
vnId = &v
}
Expand Down

0 comments on commit 9b491df

Please sign in to comment.