Fixed review comments
Signed-off-by: Anusha Hegde
This commit is contained in:
parent
907c66c082
commit
4e7c0b3e21
2 changed files with 18 additions and 2 deletions
|
@ -120,7 +120,7 @@ options:
|
||||||
- ' - C(connected) (bool): Indicates that virtual network adapter connects to the associated virtual machine.'
|
- ' - C(connected) (bool): Indicates that virtual network adapter connects to the associated virtual machine.'
|
||||||
- ' - C(start_connected) (bool): Indicates that virtual network adapter starts with associated virtual machine powers on.'
|
- ' - C(start_connected) (bool): Indicates that virtual network adapter starts with associated virtual machine powers on.'
|
||||||
- ' - C(directpath_io) (bool): If set, Universal Pass-Through (UPT or DirectPath I/O) will be enabled on the network adapter.
|
- ' - C(directpath_io) (bool): If set, Universal Pass-Through (UPT or DirectPath I/O) will be enabled on the network adapter.
|
||||||
UPT is only compatible for Vmxnet3 adapter. Clients can set this property enabled or disabled if ethernet virtual device is Vmxnet3.'
|
UPT is only compatible for Vmxnet3 adapter.'
|
||||||
extends_documentation_fragment: vmware.documentation
|
extends_documentation_fragment: vmware.documentation
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
@ -189,6 +189,7 @@ network_data:
|
||||||
"label": "Network Adapter 1",
|
"label": "Network Adapter 1",
|
||||||
"name": "VM Network",
|
"name": "VM Network",
|
||||||
"device_type": "E1000E",
|
"device_type": "E1000E",
|
||||||
|
"directpath_io": "N/A",
|
||||||
"mac_addr": "00:50:56:89:dc:05",
|
"mac_addr": "00:50:56:89:dc:05",
|
||||||
"unit_number": 7,
|
"unit_number": 7,
|
||||||
"wake_onlan": false,
|
"wake_onlan": false,
|
||||||
|
|
|
@ -173,11 +173,26 @@
|
||||||
networks:
|
networks:
|
||||||
- state: present
|
- state: present
|
||||||
mac: "00:50:56:58:59:61"
|
mac: "00:50:56:58:59:61"
|
||||||
directpath_io: false
|
directpath_io: False
|
||||||
register: disable_directpath_io
|
register: disable_directpath_io
|
||||||
|
|
||||||
- debug: var=disable_directpath_io
|
- debug: var=disable_directpath_io
|
||||||
|
|
||||||
|
- name: enable DirectPath I/O on a Vmxnet3 adapter
|
||||||
|
vmware_guest_network:
|
||||||
|
validate_certs: False
|
||||||
|
hostname: "{{ vcenter_hostname }}"
|
||||||
|
username: "{{ vcenter_username }}"
|
||||||
|
password: "{{ vcenter_password }}"
|
||||||
|
name: "{{ virtual_machines[0].name }}"
|
||||||
|
networks:
|
||||||
|
- state: present
|
||||||
|
mac: "00:50:56:58:59:61"
|
||||||
|
directpath_io: True
|
||||||
|
register: enable_directpath_io
|
||||||
|
|
||||||
|
- debug: var=enable_directpath_io
|
||||||
|
|
||||||
- name: disconnect one specified network adapter
|
- name: disconnect one specified network adapter
|
||||||
vmware_guest_network:
|
vmware_guest_network:
|
||||||
validate_certs: False
|
validate_certs: False
|
||||||
|
|
Loading…
Reference in a new issue