Hello again, 

And how about to delete a logical network? 
as remove option is not available in: system_service().networks_service()

On Mon, Jan 28, 2019 at 7:01 PM Dominik Holler <dholler@redhat.com> wrote:
On Mon, 28 Jan 2019 16:34:30 -0000
"ada per" <adaper3@gmail.com> wrote:

> Hello everyone,
> I  have the following script,
> i ve been looking in ovirt-sdk but i cannot seem to find the proper
> way of adding an external provider network under ovirt-ovn I manage
> to add logical networks and vlans but no luck in external provider.
>
> Any advice is appreciated
>
> network = networks_service.add(
>     network=types.Network(
>         name='ext_net',
>         description='Testing network',
>         data_center=types.DataCenter(
>             name='Default'
>         ),
>              usages=[types.NetworkUsage.VM],
>              external_provider='ovirt-provider-ovn',  -->i know this
> part is wrong what is it supposed to be called? ),

        external_provider=types.OpenStackNetworkProvider(
            id=provider.id
        )

please find a full example script in
https://gist.github.com/dominikholler/be7286931c0ea26b14965a5f91783cd4

> _______________________________________________
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-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/users@ovirt.org/message/LGGF7HZTMWDMCLNUATLHIXRYP7666TE4/