IBM-tfproviders / terraform-provider-vsphere

Mozilla Public License 2.0
5 stars 5 forks source link

Need support for vDS portgroup resource #5

Closed rachappag closed 7 years ago

rachappag commented 7 years ago

A new resource type - portgroup is required in vsphere provider

chandidas commented 7 years ago

Configuration parameters of the new 'Portgroup' resource

resource "vsphere_vds_portgroup" "<resource name>" {
    datacenter = "<name of existing datacenter>"
    vds_name = "<name of existing Virtual Distributed Switch>"
    portgroup_name = "<name of the portgroup>"
    description = "<description of the portgroup>"
    portgroup_type = "<type of the portgroup>"
    num_ports = <number of ports>
    vlan {
        type = "<type of VLAN>"
        vlan_id = <VLAN-ID>
        vlan_range = "<VLAN ID range>"
    }
}

portgroup_type -> "earlyBinding"/"lateBinding"/"ephemeral" vlan type -> "none"/"vlanid"/"pvid"/"trunking"

chandidas commented 7 years ago

Reopening the issue to add UPDATE support and Testing code.

santoshananda commented 7 years ago

Closed by pull request - https://github.com/IBM-tfproviders/vmware-vsphere/pull/14