# Using dvPortGroups when using vmware\_guest

**URL:** <https://forum.ansible.com/t/using-dvportgroups-when-using-vmware-guest/23717>\
**Category:** Ansible Project\
**Created:** [February 13, 2017, 1:26pm UTC](https://forum.ansible.com/t/using-dvportgroups-when-using-vmware-guest/23717 "2017-02-13T13:26:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juan\_Lage](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@Juan\_Lage](https://forum.ansible.com/u/Juan_Lage)\
**Post date:** [February 13, 2017, 1:26pm UTC](https://forum.ansible.com/t/using-dvportgroups-when-using-vmware-guest/23717/1 "2017-02-13T13:26:27Z")

</div>

Hello,

I had been using the vsphere\_guest module where I could specify a VDS network type to attach a NIC:

```auto
vm_nic:
      nic1:
        type: vmxnet3
        network: VM Network
        network_type: standard
      nic2:
        type: vmxnet3
        network: dvSwitch Network
<b> network_type: dvs
</b>

```

I am now trying to use vmware\_guest but I can’t see how to specify that a network is of type DVS and I can only see it working with standard VSS portgroups.

Can anyone share a pointer? Thanks!

juan
