You need to do it the other way around, for example to know which VMs are using specific network, you have to use the following:

list_of_vms_using_mynetwork = vms_service.list(search='Vnic.network_name=mynetwork')

All possible values used for searching can be found here:


https://www.ovirt.org/documentation/admin-guide/appe-Using_Search_Bookmarks_and_Tags.html

On 08/10/2019 12:04, Jamie Holohan wrote:
Using the SDK, for a custom Network created with default values: Is it possible 
to check if there is anything present in the Hosts/VMs/Templates tab for this 
custom network.

The tabs can be found in the UI by navigating through (Left Side Bar) Network -> 
Networks -> (Select Custom Network) -> Host/Virtual Machines/Templates tabs
_______________________________________________
Devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/[email protected]/message/B6QNODYSQJKR3ZR5Q3EFSLDTR5JBISJJ/

_______________________________________________
Devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/[email protected]/message/HVMTLG2CWZMHHBEXSZRIXRKULCZ5VP6N/

Reply via email to