Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect portgroup assignment #991

Open
karlism opened this issue Oct 18, 2022 · 0 comments
Open

Incorrect portgroup assignment #991

karlism opened this issue Oct 18, 2022 · 0 comments
Labels

Comments

@karlism
Copy link

karlism commented Oct 18, 2022

Describe the bug

In scenario where portgroup with same name is present on both vSwitch and dvSwitch and network is configured by using pyvmomi, it is always assigned to vSwitch, even despite the fact that ESXi host in question only that specific portgroup available only on dvSwitch

Reproduction steps

  1. Create VM with dvSwitch portgroup TEST1 on ESXi host with dvSwitch
  2. Change VM portgroup to TEST2 with pyvmomi (portgroup with this name should be available on vSwitch and dvSwitch on same or any other host)
    ...

Expected behavior

I expect portgroup to be assigned from the portgroups that are available on the ESXi host where VM is running on

Additional context

Network was changed by running this python script by running command:

python3 change_vm_vif.py -s vcenter1.example.com -u '[email protected]' -p 'password' -nossl -v testvm1 --network-name 'TEST2'
@karlism karlism added the bug label Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant