equinix / terraform-provider-equinix

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

[Bug]: equinix_metal_virtual_circuit requires port_id when virtual_circuit_id is specified #731

Closed ctreatma closed 1 week ago

ctreatma commented 4 months ago

Terraform Version

any

Equinix Provider Version

version = "2.1.0"

Effected Terraform Resources

equinix_metal_virtual_circuit

Terraform Config Files

No response

Debug Output

No response

Panic Output

No response

Expected Behavior

When using equinix_metal_virtual_circuit to manage a virtual circuit attached to a shared interconnection, I should not have to also provide the port_id, because the port_id can be derived with the virtual_circuit_id.

Actual Behavior

When I specify a virtual_circuit_id for an equinix_metal_virtual_circuit resource, I am forced to specify the port_id as well.

Steps to Reproduce

Create a shared interconnection and then attempt to use equinix_metal_virtual_circuit to manage one of the shared connection's virtual circuits.