[ovirt-users] using ovirt-shell to attach defind network to hosts

Moti Asayag masayag at redhat.com
Sun Oct 5 13:19:42 UTC 2014

----- Original Message -----
> From: "Vladimir Pakhomov" <pakhomov.vladimir at gmail.com>
> To: users at ovirt.org
> Sent: Sunday, October 5, 2014 1:26:12 PM
> Subject: [ovirt-users] using ovirt-shell to attach defind network to hosts
> Hi,
> I would like to implement a script that would attach a newly created network
> to all hosts in cluster. Unfortunately I cannot find anything about that in
> documentation. Is it possible to attach network to host using CLI/REST API?

If the case is for attaching a network to all of the hosts on the cluster,
you can use the 'network labels' feature in which you label the host nics
with a label, and once you mark a network with the same label, it will be
auto-configured on the hosts. This will allow you just to label networks
in order to configure them on the hosts without a need to access the hosts.


For configuring networks manually on the host you can use the setupnetworks
api, which allows you to configure the destination network topology for the host.
See "Configure bond with several networks" example from:

I've also added several more examples here:

> Kind regards,
> Vladimir Pakhomov
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users

More information about the Users mailing list