Giter Club home page Giter Club logo

terraform-provider-nsxt-virtual-private-cloud's People

Contributors

dependabot[bot] avatar komalsharmaaa avatar vmwghbot avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

isabella232

terraform-provider-nsxt-virtual-private-cloud's Issues

Inconsistent name between documentation and Terraform Registry

Describe the bug

The name of the provider and resources in the documentation compared to the Terraform Registry does not match.

For the provider itself, https://github.com/vmware/terraform-provider-nsxt-virtual-private-cloud/blob/main/website/docs/index.html.markdown states you should reference the provider as follows:

terraform {
  required_providers {
    nsxt = {
      source  = "vmware/nsxt-vpc"
      version = "1.0.0"
    }
  }
}

The Terraform Registry page for the provider has a "Use Provider" button which shows:

terraform {
  required_providers {
    nsxt-virtual-private-cloud = {
      source = "vmware/nsxt-virtual-private-cloud"
      version = "1.0.0"
    }
  }
}

As an example of a resource, there is documentation for a nsxt_vpc_gateway_policy_rule resource in https://github.com/vmware/terraform-provider-nsxt-virtual-private-cloud/blob/main/website/docs/r/nsxt_gateway_policy_rule.html.markdown. This documentation is rendered on the Terraform Registry page, but the Registry page itself shows the name of the resource is nsxt-virtual-private-cloud_nsxt_gateway_policy_rule.

Reproduction steps

n/a

Expected behavior

A consistent name is used in the documentation and the registry.

Additional context

No response

For nsxt_vpc_subnet resource - dhcp_config

Describe the bug

For nsxt_vpc_subnet resource - dhcp_config seems impossible to configure.
According to documentation the dhcp_config allows:

dhcp_config - (Optional) VPC Subnet DHCP config

dhcp_relay_config_path - (Optional) Policy path of DHCP-relay-config. If configured then all the subnets will be configured with the DHCP relay server. If not specified, then the local DHCP server will be configured for all connected subnets.

dns_client_config - (Optional)

dns_server_ips - (Optional) IPs of the DNS servers which need to be configured on the workload VMs

static_pool_config - (Optional)

ipv4_pool_size - (Optional) Number of IPs to be reserved in static ip pool. Maximum allowed value is 'subnet size - 4'. If dhcp is enabled then by default static ipv4 pool size will be zero and all available IPs will be reserved in local dhcp pool. If dhcp is deactivated then by default all IPs will be reserved in static ip pool.

enable_dhcp - (Optional) If activated, the DHCP server will be configured based on IP address type. If deactivated then neither DHCP server nor relay shall be configured.

However only dhcp_relay_config_path, enable_dhcp, and path seem available

Reproduction steps

configure the provider and pass the variables
create a resource

resource "nsxt_vpc_subnet" "test-vpcsubnet" {
display_name = "Subnet test"
description = "This is test VpcSubnet"
nsx_id = "test-VpcSubnet-abc"
ipv4_subnet_size = 256
access_mode = "Public"
dhcp_config {
enable_dhcp = "true"
ipv4_pool_size = "10" <----- errors out
}
}

you get an error if you all ip4_pool_size for example.

│ Error: Unsupported argument

│ on main.tf line 8, in resource "nsxt_vpc_subnet" "test-vpcsubnet":
│ 8: dns_server_ips = ["9.9.9.9"]

│ An argument named "dns_server_ips" is not expected here.


│ Error: Unsupported argument

│ on main.tf line 9, in resource "nsxt_vpc_subnet" "test-vpcsubnet":
│ 9: ipv4_pool_size = "10"

│ An argument named "ipv4_pool_size" is not expected here.

Expected behavior

I would expect that these parameters are configurable, specify dns and if needed reserve some IPs from the dhcp pool for static allocations.

Additional context

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.