On Wed, Oct 30, 2019 at 4:11 PM Jamie Holohan <james.holohan@oracle.com> wrote:
How can I bond one network interface to another using the SDK. I am try to perform the task in java but I'm unsure in what context I can find the utilities that will do this task.

The task can be performed in the OVM UI after a host has been initialised. By navigating from the side bar Compute -> Hosts -> (Select Host) -> (Host tabs) Network Interfaces ->
From here, click Setup Host Networks. 

In the pop up you can select a network interface and drag it to another to create a bond between them.

How can I perform this step using the SDK. I am attempting to perform this in the context of a nicservice, found like this:

systemService.hostsService().hostService(hostObject).nicservice(NICObject)).get().send().nic();

but I can't find any methods associated with the retrieved NIC or nicservice that seem relevant to my task.

Any operation that is related to setup networks is done via single REST API method called "setupnetworks" which is part of the host. See [1] for more details.

Regards,
Ales

[1] http://ovirt.github.io/ovirt-engine-api-model/4.3/#services/host/methods/setup_networks
 
_______________________________________________
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-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/devel@ovirt.org/message/3XNXIZ7OY57IPSOIMD7RD2CFYJZRWEMP/


--

Ales Musil

Associate Software Engineer - RHV Network

Red Hat EMEA

amusil@redhat.com    IM: amusil