Add support for additional features in vsphere_distributed_virtual_switch
resource
#1145
Labels
acknowledged
Status: Issue or Pull Request Acknowledged
area/networking
Area: Networking
enhancement
Type: Enhancement
Description
Hi. First of all thanks for the plugin.
I would like to implement some functionality in the
distributed_virtual_switch
resource and I just wanted to give notice while I prepare the code for a PR.Features include:
So far, I have implemented PVLANs but the code is not quite ready for a PR yet.
Potential Terraform Configuration
Example pvlan mappings:
It works how you would expect. The
ignore_other_pvlan_mappings
allows you to have unmanaged mappings that won't get overwritten. It also allows you to use the standalone mapping resources which I have implemented (vsphere_distributed_virtual_switch_pvlan_mapping
). The standalone resource works in a similar way to the AWS provider route_table/route and security_group/security_group_rule. In order to get that to work I have added a global MutexKV object so that the DVS doesn't get reconfigured concurrently.Feedback is welcome. At this stage, I just wanted to let people know that I've got some code I plan on sharing if possible.
Thanks
Community Note
The text was updated successfully, but these errors were encountered: