From e5a3cb36a78b1e7ea27d37121768130bbf0de5a0 Mon Sep 17 00:00:00 2001 From: Charles Treatman Date: Fri, 2 Aug 2024 14:26:25 -0500 Subject: [PATCH] fix: recreate VRF if metro or project is changed --- internal/resources/metal/vrf/resource.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/resources/metal/vrf/resource.go b/internal/resources/metal/vrf/resource.go index d8e447322..ed09ea367 100644 --- a/internal/resources/metal/vrf/resource.go +++ b/internal/resources/metal/vrf/resource.go @@ -38,6 +38,7 @@ func Resource() *schema.Resource { "metro": { Type: schema.TypeString, Required: true, + ForceNew: true, Description: "Metro ID or Code where the VRF will be deployed", }, "local_asn": { @@ -55,6 +56,7 @@ func Resource() *schema.Resource { "project_id": { Type: schema.TypeString, Required: true, + ForceNew: true, Description: "Project ID where the VRF will be deployed", }, "bgp_dynamic_neighbors_enabled": {