thank you!! Is there any other method to use the network name instead of id? if not its fine, i ll use the list networks first and then match the ids with the names and delete accordingly
On Tue, Jan 29, 2019 at 12:46 PM Dominik Holler <[email protected]> wrote: > On Tue, 29 Jan 2019 12:23:32 +0200 > ada per <[email protected]> wrote: > > > Hello again, > > > > And how about to delete a logical network? > > as remove option is not available in: > > system_service().networks_service() > > > > network_service = networks_service.network_service(network.id) > network_service.remove() > > > On Mon, Jan 28, 2019 at 7:01 PM Dominik Holler <[email protected]> > > wrote: > > > > > On Mon, 28 Jan 2019 16:34:30 -0000 > > > "ada per" <[email protected]> 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 -- [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/LGGF7HZTMWDMCLNUATLHIXRYP7666TE4/ > > > > > > > >
_______________________________________________ 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/HFJATOOB6JEHFVARTTK6LTWUKNVDFKCW/

