-
Notifications
You must be signed in to change notification settings - Fork 485
Open
Open
Copy link
Labels
Milestone
Description
Community Guidelines
- I have read and agree to the HashiCorp Community Guidelines .
- Vote on this issue by adding a 👍 reaction to the original issue initial description to help the maintainers prioritize.
- Do not leave "+1" or other comments that do not add relevant information or questions.
- If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Terraform
Terraform v1.1.5
Terraform Provider
v2.0.2
VMware vSphere
v7.03
Description
When change distributed port group from trunk to normal vlan (access), it will apply the config, but the actual state in the vCenter is not changed, it is still left in the trunk state.
Affected Resources
vsphere_distributed_port_group
Terraform Configuration
Below is config example.
Existing config:
resource "vsphere_distributed_port_group" "pg" {
name = "terraform-test-pg-1"
distributed_virtual_switch_uuid = "${vsphere_distributed_virtual_switch.dvs.id}"
vlan_range {
min_vlan = 1
max_vlan = 1000
}Intended new config:
resource "vsphere_distributed_port_group" "pg" {
name = "terraform-test-pg-1"
distributed_virtual_switch_uuid = "${vsphere_distributed_virtual_switch.dvs.id}"
vlan_id = 1000
}Debug Output
No response
Panic Output
No response
Expected Behavior
In the vCenter, the distributed port group should be changed to vlan 1000
Actual Behavior
The distributed port group is till trunk 1-1000
Steps to Reproduce
No response
Environment Details
No response
Screenshots
No response
References
No response
Reactions are currently unavailable