vmware / terraform-provider-vra

Terraform Provider for VMware Aria Automation
https://registry.terraform.io/providers/vmware/vra/
Mozilla Public License 2.0
102 stars 89 forks source link

Add support to add networks using network name and set networks tags #333

Open brude-softserve opened 3 years ago

brude-softserve commented 3 years ago

vRA version v8 Terraform version v0.14.9 terraform-provider-vra plugin version v0.3.5

Is your feature request related to a problem? Please describe. Adding multiple network profiles with multiple networks causes a lot of additional Terraform coding because you need to calculate network IDs from network names using the vra_fabric_network data source and do it for multiple networks for multiple network profiles. We've created a workaround but it doesn't look like production-ready solution.

Also we widely use network tags in order to properly place our compute resources. But currently the provider only supports setting networks IDs when creating a network profile. So in our case we need to set all the tags manually.

Describe the solution you'd like It would be good if the provider will support something like this:

resource "vra_network_profile" "this" {
  for_each    = var.network_profiles
  name        = each.key
  description = "Network Profile"
  region_id = var.region_id
  isolation_type = each.value.isolation_type
  fabric_networks {
    name = "network1"
    tags {
      key = "datacenter"
      value = "lab1"
    }
  }
}
github-actions[bot] commented 3 years ago

Marking this issue as stale due to inactivity. This helps us focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!