Bug #607 make vrf_name
immutable in apstra_datacenter_routing_zone
resource
#611
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The notes on RFE-2747 suggest that changing the VRF name in a Routing Zone is not supported, but the
apstra_datacenter_routing_zone
resource permitted it to be changed.This PR adds a new Computed attribute
vrf_name
to theapstra_datacenter_routing_zone
resource. The initial value forvrf_name
is copied fromname
, but changes toname
no longer change thevrf_name
attribute in Apstra, nor do they update thevrf_name
attribute in Terraform.vrf_name
is effectively immutable.Altogether 3 resources are modified, each with the addition of the
vrf_name
attribute:apstra_datacenter_routing_zone
resourceapstra_datacenter_routing_zone
data sourceapstra_datacenter_routing_zones
data sourceIn addition, major re-work to the tests for the
apstra_datacenter_routing_zone
and a bunch of new test helper code we can use in other resources.Closes #607