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

Add method to fetch virtual devices attached to VM on VMware #501

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

Gauravtalreja1
Copy link
Contributor

@Gauravtalreja1 Gauravtalreja1 commented Jan 27, 2025

Results:

In [1]: from wrapanapi import VMWareSystem
   ...: from wrapanapi.systems.virtualcenter import VMWareVirtualMachine

In [2]: vmwareclient = VMWareSystem(
   ...:         hostname=vmware.hostname,
   ...:         username=vmware.username,
   ...:         password=vmware.password,
   ...:     )
In [3]: vm = vmwareclient.get_vm('heidi-detten.example.com')
In [4]: vm.get_virtual_device_type_names()
Out[4]:
['VirtualController',
 'VirtualKeyboard',
 'VirtualPointingDevice',
 'VirtualVideoCard',
 'VirtualVMCIDevice',
 'VirtualDisk',
 'VirtualEthernetCard',
 'VirtualTPM']

@mshriver mshriver merged commit c9f7fc2 into RedHatQE:master Jan 28, 2025
3 checks passed
@Gauravtalreja1 Gauravtalreja1 deleted the check-vdevices branch January 28, 2025 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants