On Thu, 10 Oct 2019 14:11:29 -0000
"Jamie Holohan" <[email protected]> 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 -- [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/UPR2B3IOGB33RPIH7PFJHEHSQ6N3RHKM/
_______________________________________________
Users 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/MDTSD6GBL6V6Y33LFPG7CIHOVWWHNPFB/