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

vSphere: bad documentation for network_interface.label #7385

Closed
matchaxnb opened this issue Jun 28, 2016 · 2 comments
Closed

vSphere: bad documentation for network_interface.label #7385

matchaxnb opened this issue Jun 28, 2016 · 2 comments

Comments

@matchaxnb
Copy link

Abstract

This is either a documentation bug or a badly named field.

Terraform Version

I run
Terraform v0.7.0-dev (f312ba1f28b91deb988e41778f840703f418bcdc+CHANGES)

Affected Resource(s)

vsphere_virtual_machine

Terraform Configuration Files

resource "vsphere_folder" "testfolder" {
  path       = "dev0/test-tf"
  datacenter = "dc0"
}

resource "vsphere_virtual_machine" "testvm2" {
  name       = "testvm-chloe2"
  folder     = "${vsphere_folder.testfolder.path}"
  vcpu       = 2
  memory     = 512
  datacenter = "dc0"
  cluster    = "cluster0"

  disk {
    template = "DEV/templates/debian-jessie-template-01"
    datastore  = "DOM1_DEV01"
  }

  network_interface {
    label = "dvpg0/portgroup1"
  }

  skip_customization = true
}

Expected Behavior

The label should be the label of the nic OR the field shall be renamed as connect_to or something approaching.

Actual Behavior

The label field designates which network you want to connect the NIC to. There is no way to specify a name for the NIC.

Steps to Reproduce

terraform apply

Important Factoids

vSphere 5.5, Terraform in a dev branch (working on the vSphere provider)

References

None.

@angelichorsey
Copy link

I would like to add that the label documentation should more clearly explain the NIC you want to interface to connect to. At the same time, perhaps the deviceName could actually be utilized in the script so we can name our interfaces.

type networkInterface struct { 
	deviceName       string
	label            string
	ipv4Address      string
	ipv4PrefixLength int
	ipv4Gateway      string
	ipv6Address      string
	ipv6PrefixLength int
	ipv6Gateway      string
	adapterType      string // TODO: Make "adapter_type" argument
	macAddress       string
}

@ghost
Copy link

ghost commented Apr 10, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants