
On Thu, 10 Oct 2019 14:11:29 -0000 "Jamie Holohan" <james.holohan@oracle.com> wrote:
If i'm creating a a custom network on OVM using the UI, one of the options in the pop up is a check box labelled "VM network" for determining if I want a VM network.
"VM network" is modeled as usage in the sdk, so an empty attribute "usages" does the trick: system_service = connection.system_service() networks_service = system_service.networks_service() networks_service.add( types.Network( name='custom_network', data_center=types.DataCenter( name='Default' ), usages=[] ) )
When using the SDK I am building network with a NetworkBuilder, but I cannot see any methods to toggle the VM network option. How do I create a custom Network with not VM role using the SDK?
Can it be done with a NetworkBuilder? _______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org 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/devel@ovirt.org/message/UPR2B3IOGB33RP...