On Thu, Sep 26, 2019 at 4:37 PM Jamie Holohan <james.holohan(a)oracle.com>
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)
_______________________________________________