-
Notifications
You must be signed in to change notification settings - Fork 339
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
vmware_host_passthrough: Fix to be able to specify PCI id in the devices parameter #1365
vmware_host_passthrough: Fix to be able to specify PCI id in the devices parameter #1365
Conversation
recheck |
recheck |
recheck |
Hi @sky-joker, I think the last failure of the vcenter+2esxi integration test was cause by a recent change. This PR reverts it ansible/ansible-zuul-jobs#1579 |
recheck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't test this because we don't have any passthrough devices, but the code LGTM.
Build succeeded (gate pipeline). ✔️ ansible-tox-linters SUCCESS in 4m 37s |
Thanks @mariolenz |
So, after enabling passthrought for a device, how can it be mapped to a guest with ansible? On my particular case, a NIC. |
Depends-On: ansible/ansible-zuul-jobs#1579
SUMMARY
If ESXi has multiple PCI devices and they are the same name, and you want to enable the passthrough, you need to specify the PCI id.
But the module hasn't been able to specify the PCI id of the PCI device.
This PR is to be able to specify the id in the devices parameter the module has.
fixes: #1364
ISSUE TYPE
COMPONENT NAME
plugins/modules/vmware_host_passthrough.py
ADDITIONAL INFORMATION
tested in vCenter/ESXi 7.0.0