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

Requesting documentation update for Nutanix #296

Closed
nutanix-japan opened this issue Oct 12, 2021 · 1 comment
Closed

Requesting documentation update for Nutanix #296

nutanix-japan opened this issue Oct 12, 2021 · 1 comment
Assignees

Comments

@nutanix-japan
Copy link

nutanix-japan commented Oct 12, 2021

Nutanix Cluster Information

Terraform Version

✗ tf -v
Terraform v1.0.8
on darwin_amd64

  • provider registry.terraform.io/nutanix/nutanix v1.2.0

Your version of Terraform is out of date! The latest version
is 1.0.8. You can update by downloading from https://www.terraform.io/downloads.html

Affected Resource(s)

  • nutanix_subnet

Terraform Configuration Files

resource "nutanix_subnet" "primary" {
  name         = var.first_network_name
  cluster_uuid = data.nutanix_cluster.cluster.id
  vlan_id      = var.first_network_vlan_id
  subnet_type  = "VLAN"

  prefix_length              = var.first_network_prefix_length
  default_gateway_ip         = var.first_network_default_gateway_ip
  subnet_ip                  = var.first_network_subnet_ip
  ip_config_pool_list_ranges = var.first_network_dhcp_range

  dhcp_options = {
    domain_name = var.first_network_domain_name
  }
  dhcp_domain_name_server_list = var.first_network_name_server_list
  dhcp_domain_search_list      = var.first_network_domain_search_list
}

Debug Output

Panic Output

Expected Behavior

Actual Behavior

Error: invalid value for ip_config_pool_list_ranges.0 (please see https://developer.nutanix.com/reference/prism_central/v3/#definitions-ip_pool)│ 

Steps to Reproduce

  1. terraform apply

Important Factors

│ Error: invalid value for ip_config_pool_list_ranges.0 (please see https://developer.nutanix.com/reference/prism_central/v3/#definitions-ip_pool)

I had traced the REST to fix this and the format should be this way:

ip_config_pool_list_ranges = ["10.x.x.x 10.x.x.x"] (note that there is no comma)

I was doing this before as it is Terraform documentation(ip as a list of strings):

 ip_config_pool_list_ranges =  ["10.x.x.x ", "10.x.x.x"] 

This didn't work. 

Just wondering if the following documentation below can be updated for the time being. 

https://registry.terraform.io/providers/nutanix/nutanix/latest/docs/data-sources/subnet#dhcp_server_address_port

This was the REST request header:

pool: [{range: "10.x.x.x  10.x.x.x "}].  <<. here 
0: {range: "10.x.x.x  10.x.x.x"}.   <<< here

Thanks in advance. I am happy to provide more information if required. 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants