equinix / terraform-provider-equinix

Terraform Equinix provider
https://deploy.equinix.com/labs/terraform-provider-equinix/
MIT License
45 stars 45 forks source link

guide: Migrating to Metro VLANs #190

Open displague opened 3 years ago

displague commented 3 years ago

Users with traditional Facility bound VLANs may wish to "upgrade" their VLANs to Metro VLANs. Create a guide for this workflow.

(All of this is subject to review, but I think the migration guide could be based on the following workflow)

Because these resources are quick to reprovision and carry minimal state (VXLAN / VNI), it should be safe in many configurations (as long as all resources are Terraform managed) to replace legacy facility bound VLANs with Metro VLANs. The devices will experience a temporary detachment from the VLAN, so the applications and OS must be capable of handling that level of interruption.

A Metro VXLAN can not be created while facilities in that metro have the same VXLAN. We must delete the legacy VLANs to create new metro VLANs.

If all of their infrastructure within a project is managed by Terraform, this should be painless:

This will:

Any references to deployed_facility in VLANs indicate that the VLAN is following the deployment of a facility-bound device. Change the device to use metro and update the VLAN to match the device's metro.

displague commented 3 years ago

Relevant to https://registry.terraform.io/providers/equinix/metal/latest/docs/guides/migration_guide_facilities_to_metros_devices

It is also worth pointing out that IP address datasources can be changed to filter by metro rather than facility, in most cases. Likewise, IP reservation resources that have already been assigned can be safely changed from facility = ... to metro = ... (so long as the metro matches the facility's metro).