On Thu, Sep 26, 2019 at 4:37 PM Jamie Holohan <[email protected]>
wrote:

> I am trying to verify whether a Networks VM Network checkbox is checked
> using the SDK, but I cannot see any methods or variable with a similar name.
>
> Is it possible to find out if a network has a VM Network Role using the
> SDK?
>

Please note that the network roles exists only in the context of a cluster:

system_service = connection.system_service()
clusters_service = system_service.clusters_service()
cluster = clusters_service.list()[0]
cluster_service = clusters_service.cluster_service(cluster.id)
networks_service = cluster_service.networks_service()
for network in networks_service.list():
  print '{}: {}'.format(network.name, network.usages)


_______________________________________________
> 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/HUOLCB5CM5SYFO7KDQF25GDXTMSMUHKM/
>
_______________________________________________
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/P44KKHGSJCLRBXMTLNVGFEGBN2BLDYLE/

Reply via email to