Open grazioli-nc opened 3 years ago
Files identified in the description:
plugins/modules/vmware_guest_network.py
](https://github.com/['ansible-collections/amazon.aws', 'ansible-collections/community.aws', 'ansible-collections/community.vmware']/blob/main/plugins/modules/vmware_guest_network.py)If these files are inaccurate, please update the component name
section of the description or use the !component
bot command.
cc @Akasurde @Tomorrow9 @goneri @lparkes @pgbidkar @warthog9 click here for bot help
Thank you @grazioli-nc for reporting this issue.
I confirmed that manual operation also occurs the same issue on VCSA 6.7/7.0.
ethernet0.networkName = "A|7CB|7CC"
So, I think that the issue is for VCSA, not the module.
Unfortunately, I didn't understand why the pyvmomi 7.0.0 run correctly.
(The pyvmomi 7.0.0 also occurred the same issue in my environment)
By the way, a port group in vSwitch is given preference if the same port group name exists in vSwitch and vDS.
SUMMARY
Network names with
|
inside will be parsed incorrectly withvmware_guest_network
andpyvmomi 7.0.1
. \ The network nameA|B|C
for example will be parsed toA|7CB|7CC
(seen in the*.vmx
file of the vm underethernet0.networkName
). \ The described behavior does not occur withpyvmomi 7.0
.ISSUE TYPE
COMPONENT NAME
vmware_guest_network
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
Try to add a network with a
|
inside the name like bellow.EXPECTED RESULTS
The
*.vmx
shows the correct configuration.ACTUAL RESULTS
The
|
in the name will be parsed incorrectly and the*.vmx
shows the following output.