mirror of https://github.com/ansible/ansible.git
VMware: Handle slash in network name in vmware_guest module (#64494)
Encode slash in network name to work with vSphere API. Fixes: #64399 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>pull/64800/head
parent
575116a584
commit
47f9873eab
@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- Handle slashes in VMware network name (https://github.com/ansible/ansible/issues/64399).
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
- name: create basic DVS portgroup
|
||||||
|
vmware_dvs_portgroup:
|
||||||
|
switch_name: "{{ dvswitch1 }}"
|
||||||
|
portgroup_name: '{{ dvpg1 }}'
|
||||||
|
vlan_id: 0
|
||||||
|
num_ports: 32
|
||||||
|
portgroup_type: earlyBinding
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Create the DVS PG with slash in name
|
||||||
|
vmware_dvs_portgroup:
|
||||||
|
portgroup_name: '{{ dvpg_with_slash }}'
|
||||||
|
switch_name: '{{ dvswitch1 }}'
|
||||||
|
vlan_id: 0
|
||||||
|
num_ports: 120
|
||||||
|
portgroup_type: earlyBinding
|
||||||
|
state: present
|
||||||
Loading…
Reference in New Issue