Re: [ovirt-users] ovirt 3.6 python sdk how to find logical network from a host nic?

2016-08-16 Thread Juan Hernández
On 08/16/2016 08:20 PM, Huan He (huhe) wrote: > Hi Juan, > > Thanks! It works. > > One more question, do you know how to do ³save network configuration² in > the api? I did the following > > Params.Action(force=1, check_connectivity=1, host_nics=host_nics) > > but the gui says the network

Re: [ovirt-users] ovirt 3.6 python sdk how to find logical network from a host nic?

2016-08-16 Thread Huan He (huhe)
Hi Juan, Thanks! It works. One more question, do you know how to do ³save network configuration² in the api? I did the following Params.Action(force=1, check_connectivity=1, host_nics=host_nics) but the gui says the network configuration is not saved. I can¹t find any relevant params in the

Re: [ovirt-users] ovirt 3.6 python sdk how to find logical network from a host nic?

2016-08-13 Thread Juan Hernández
On 08/13/2016 12:17 AM, Huan He (huhe) wrote: > Assuming the logical network ovirtmgmt has been configured in host NIC > enp6s0. > > host = api.hosts.get(‘host-123’) > host_nic = host.nics.get(‘enp6s0’) > > How to get the logical network name ovirtmgmt? > > I basically need to find ovirtmgmt is

[ovirt-users] ovirt 3.6 python sdk how to find logical network from a host nic?

2016-08-12 Thread Huan He (huhe)
Assuming the logical network ovirtmgmt has been configured in host NIC enp6s0. host = api.hosts.get('host-123') host_nic = host.nics.get('enp6s0') How to get the logical network name ovirtmgmt? I basically need to find ovirtmgmt is configured in which NIC. Thanks, Huan