From 9dcf94d017a013289eea6cbc6aa97068fd1d6894 Mon Sep 17 00:00:00 2001 From: Chris Marget Date: Tue, 17 Dec 2024 21:31:14 -0500 Subject: [PATCH] fix typos --- .../connectivity_templates/connectivity_template_interface.go | 2 +- apstra/blueprint/connectivity_templates/primitives/ip_link.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apstra/blueprint/connectivity_templates/connectivity_template_interface.go b/apstra/blueprint/connectivity_templates/connectivity_template_interface.go index 9587175a..29b834ce 100644 --- a/apstra/blueprint/connectivity_templates/connectivity_template_interface.go +++ b/apstra/blueprint/connectivity_templates/connectivity_template_interface.go @@ -147,7 +147,7 @@ func (o *ConnectivityTemplateInterface) LoadApiData(ctx context.Context, in *aps } func (o *ConnectivityTemplateInterface) LoadPrimitiveIds(ctx context.Context, in *apstra.ConnectivityTemplate, diags *diag.Diagnostics) { - o.IpLinks = primitives.LoadIDsIntoCustomStaticRouteMap(ctx, in.Subpolicies, o.IpLinks, diags) + o.IpLinks = primitives.LoadIDsIntoIpLinkMap(ctx, in.Subpolicies, o.IpLinks, diags) o.RoutingZoneConstraints = primitives.LoadIDsIntoRoutingZoneConstraintMap(ctx, in.Subpolicies, o.RoutingZoneConstraints, diags) o.VirtualNetworkMultiples = primitives.LoadIDsIntoVirtualNetworkMultipleMap(ctx, in.Subpolicies, o.VirtualNetworkMultiples, diags) o.VirtualNetworkSingles = primitives.LoadIDsIntoVirtualNetworkSingleMap(ctx, in.Subpolicies, o.VirtualNetworkSingles, diags) diff --git a/apstra/blueprint/connectivity_templates/primitives/ip_link.go b/apstra/blueprint/connectivity_templates/primitives/ip_link.go index 7dc6b25f..8abb06e9 100644 --- a/apstra/blueprint/connectivity_templates/primitives/ip_link.go +++ b/apstra/blueprint/connectivity_templates/primitives/ip_link.go @@ -281,7 +281,7 @@ func IpLinkPrimitivesFromSubpolicies(ctx context.Context, subpolicies []*apstra. return utils.MapValueOrNull(ctx, types.ObjectType{AttrTypes: IpLink{}.AttrTypes()}, result, diags) } -func LoadIDsIntoCustomIpLinkMap(ctx context.Context, subpolicies []*apstra.ConnectivityTemplatePrimitive, inMap types.Map, diags *diag.Diagnostics) types.Map { +func LoadIDsIntoIpLinkMap(ctx context.Context, subpolicies []*apstra.ConnectivityTemplatePrimitive, inMap types.Map, diags *diag.Diagnostics) types.Map { result := make(map[string]IpLink, len(inMap.Elements())) inMap.ElementsAs(ctx, &result, false) if diags.HasError() {