diff --git a/internal/resources/metal/vrf_bgp_dynamic_neighbor/resource.go b/internal/resources/metal/vrf_bgp_dynamic_neighbor/resource.go index 99503734c..c86e1c93c 100644 --- a/internal/resources/metal/vrf_bgp_dynamic_neighbor/resource.go +++ b/internal/resources/metal/vrf_bgp_dynamic_neighbor/resource.go @@ -71,7 +71,7 @@ func (r *Resource) Create(ctx context.Context, request resource.CreateRequest, r return } - neighbor, _, err := client.VRFsApi.CreateBgpDynamicNeighbor(ctx, plan.GatewayID.ValueString()). + neighbor, _, err := client.MetalGatewaysApi.CreateBgpDynamicNeighbor(ctx, plan.GatewayID.ValueString()). BgpDynamicNeighborCreateInput(createRequest). Exclude(bgpNeighborExcludes). Include(bgpNeighborIncludes).