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

nsxt_vm_tags only applies to first interface #233

Closed
DH-Rancher opened this issue Feb 11, 2020 · 1 comment
Closed

nsxt_vm_tags only applies to first interface #233

DH-Rancher opened this issue Feb 11, 2020 · 1 comment
Labels
bug Bug

Comments

@DH-Rancher
Copy link

DH-Rancher commented Feb 11, 2020

Hi,

I have a VM, connected to two logical switches that I would like to tag the logical ports with.

data "vsphere_virtual_machine" "vm1" {
  name = "vsphere-nsxt-cluster-1"
  datacenter_id = data.vsphere_datacenter.dc.id
}
resource "nsxt_vm_tags" "vm1_tags" {
  instance_id = data.vsphere_virtual_machine.vm1.id

  tag {
    scope = "ncp/cluster_name"
    tag   = "terraform"
  }

  logical_port_tag {
    scope = "ncp/cluster_name"
    tag   = "terraform"
    
  }
}

When I check NSX-T, only the first interface has this applied:

image

This corresponds to the first interface that's shown in the VM config

image

Ideally, it would be nice to have the abilitiy to apply tags to specific interfaces, or at least, tag all interfaces associated with a VM.

@annakhm annakhm added the bug Bug label Feb 11, 2020
@annakhm
Copy link
Collaborator

annakhm commented Feb 13, 2020

Thanks for reporting this. Fixed with https://github.com/terraform-providers/terraform-provider-nsxt/pull/235

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

No branches or pull requests

2 participants