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

Maikl P mishka8520 at yahoo.com
Sun Oct 5 11:43:07 UTC 2014


probably using xml tags not such a good idea for ML archives/PT clients,

[1] http://www.ovirt.org/CLI#Scripting

[2] http://www.ovirt.org/Python-sdk

[3] http://www.ovirt.org/Java-sdk

 


On Sunday, October 5, 2014 2:37 PM, Maikl P <mishka8520 at yahoo.com> wrote:
 


Hey Vladimir,

Though there is no explicit documentation for the $subject, the concept
is the same in api/cli/sdk, i.e:

1. fetch the host
2. access host's nics collection
3. get the nic
4. use attach() method to attach your network,

in CLI you can use auto-completion for constructing commands
and 'help action attach ...' to see action parameters, cli scripting
wiki available here. 


 
also i'd suggest considering one of SDKs (python-sdk / java-sdk)
for this matter.

Michael Pasternak

 



On Sunday, October 5, 2014 1:26 PM, Vladimir Pakhomov <pakhomov.vladimir at gmail.com> wrote:
 


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?

Kind regards,
Vladimir Pakhomov
_______________________________________________
Users mailing list
Users at ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20141005/bbd8588d/attachment-0001.html>


More information about the Users mailing list