Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mandatory vlan_id for overlay subnet #696

Open
mlarchet opened this issue Nov 13, 2024 · 0 comments
Open

Mandatory vlan_id for overlay subnet #696

mlarchet opened this issue Nov 13, 2024 · 0 comments

Comments

@mlarchet
Copy link

mlarchet commented Nov 13, 2024

Nutanix Cluster Information

  • Nutanix Cluster (AOS) : 6.10
  • Nutanix Prism Central : 2024.2

Terraform Version

Terraform : 1.9.8
Nutanix Provider : 1.9.5

Affected Resource(s)

  • nutanix_subnet

Terraform Configuration Files

data "nutanix_clusters" "clusters" {}

resource "nutanix_subnet" "overlay" {
    name = "test-vpc-overlay"
    cluster_uuid = data.nutanix_clusters.clusters.entities.0.metadata.uuid

    subnet_type = "OVERLAY"
    
    subnet_ip = "10.0.0.0"
    prefix_length = 24
    default_gateway_ip = "10.0.0.254"
}

Debug Output

│ Error: Missing required argument

│ with nutanix_subnet.overlay,
│ on main.tf line 51, in resource "nutanix_subnet" "overlay":
│ 51: cluster_uuid = data.nutanix_clusters.clusters.entities.0.metadata.uuid

│ "cluster_uuid": all of cluster_uuid,vlan_id must be specified

Expected Behavior

As per documentation, vlan_id is optional when choosing overlay type and this configuration should work

Actual Behavior

Spell checking complains about both cluster_uuid and vlan_id being mandatory. If dummy vlan_id is added, it then complains about vlan_id being invalid when using overlay type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant