Hi Toni,
do:
1. nics = api.hosts.get(name=xxx).nics
2. nics_arr = nics.list()
(change nics_arr as you need, according to __doc__, also see [1])
3. my_nics = params.HostNics(host_nic=[nics_arr[0],nics_arr[1],...])
or
my_nics = params.HostNics(host_nic=nics_arr)
4. nics.setupnetworks(action=params.Action(host_nics=my_nics))
[1]
http://wiki.ovirt.org/wiki/SDK#Development_tips
On 11/02/2012 11:29 AM, Antoni Segura Puimedon wrote:
Hi Michael,
One question though, I would like to use the setupNetworks command
and the docstring says that I should use params (ovirtsdk.xml.params)
and inside those ivars. I don't know how or were these ivars are to
be used. Could you point me where I should look at or, alternatively,
give me an example?
Thanks a lot for this nice api.
Best,
Toni
----- Original Message -----
> From: "Michael Pasternak" <mpastern(a)redhat.com>
> To: "engine-devel" <engine-devel(a)ovirt.org>
> Cc: users(a)ovirt.org
> Sent: Friday, November 2, 2012 8:44:40 AM
> Subject: [Engine-devel] ovirt-sdk at pypi
>
> From now on latest ovirt-sdk will be available at pypi,
> for more details see [1].
>
> [1]
http://wiki.ovirt.org/wiki/SDK#pypi
>
> --
>
> Michael Pasternak
> RedHat, ENG-Virtualization R&D
> _______________________________________________
> Engine-devel mailing list
> Engine-devel(a)ovirt.org
>
http://lists.ovirt.org/mailman/listinfo/engine-devel
>
--
Michael Pasternak
RedHat, ENG-Virtualization R&D