<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yiv4472805457"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div class="yiv4472805457" id="yiv4472805457yui_3_16_0_6_1412494424696_4" style=""><span class="yiv4472805457" id="yiv4472805457yui_3_16_0_6_1412494424696_13" style="">Hey Vladimir,</span></div><div class="yiv4472805457yui_3_16_0_6_1412494424696_19" id="yiv4472805457yui_3_16_0_6_1412494424696_15" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><br style="" clear="none"><span class="yiv4472805457" id="yiv4472805457yui_3_16_0_6_1412494424696_13" style=""></span></div><div
 class="yiv4472805457yui_3_16_0_6_1412494424696_47" id="yiv4472805457yui_3_16_0_6_1412494424696_43" style="color:rgb(0, 0, 0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><span class="yiv4472805457" id="yiv4472805457yui_3_16_0_6_1412494424696_13" style="">Though there is no explicit documentation for the $subject, the concept<br>is the same in api/cli/sdk, i.e:<br><br>1. fetch the host<br>2. access host's nics collection<br>3. get the nic<br>4. use attach() method to attach your network,<br><br>in CLI you can use auto-completion for constructing commands<br>and 'help action attach ...' to see action parameters,</span> cli scripting<br>wiki available <a href="http://www.ovirt.org/CLI#Scripting">here</a>. <br><br></div><div id="yiv4472805457yui_3_16_0_6_1412494424696_43"> &nbsp;</div><div class="yiv4472805457yui_3_16_0_6_1412494424696_74"
 id="yiv4472805457yui_3_16_0_6_1412494424696_46" style="color:rgb(0, 0,  0);font-size:16px;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;background-color:transparent;font-style:normal;"><span class="yiv4472805457" id="yiv4472805457yui_3_16_0_6_1412494424696_13" style="">also i'd suggest considering one of SDKs (<a rel="nofollow" shape="rect" class="yiv4472805457" id="yiv4472805457yui_3_16_0_1_1412494424696_50642" style="" target="_blank" href="http://www.ovirt.org/Python-sdk">python-sdk</a> / <a rel="nofollow" shape="rect" class="yiv4472805457" id="yiv4472805457yui_3_16_0_1_1412494424696_51266" style="" target="_blank" href="http://www.ovirt.org/Java-sdk">java-sdk</a>)<br></span><span class="yiv4472805457" id="yiv4472805457yui_3_16_0_6_1412494424696_13" style=""><span class="yiv4472805457" id="yiv4472805457yui_3_16_0_6_1412494424696_13" style="">for this matter.<br><br>Michael Pasternak<br></span></span></div><div
 class="yiv4472805457" id="yiv4472805457yui_3_16_0_6_1412494424696_22" style=""> &nbsp;</div> <div class="yiv4472805457yahoo_quoted" id="yiv4472805457yui_3_16_0_6_1412494424696_7" style="display: block;"> <div class="yiv4472805457yui_3_16_0_1_1412494424696_48869" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div class="yiv4472805457yui_3_16_0_1_1412494424696_48870" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div class="qtdSeparateBR"><br><br></div><div class="yiv4472805457yqt5602361119" id="yiv4472805457yqt35088"><div class="yiv4472805457" dir="ltr" style=""> <font class="yiv4472805457" style="" face="Arial" size="2"> On Sunday, October 5, 2014 1:26 PM, Vladimir Pakhomov &lt;pakhomov.vladimir@gmail.com&gt; wrote:<br class="yiv4472805457" style="" clear="none"> </font> </div>  <br class="yiv4472805457" style=""
 clear="none"><br class="yiv4472805457" style="" clear="none"> <div class="yiv4472805457" style=""><div class="yiv4472805457" id="yiv4472805457" style=""><div class="yiv4472805457" dir="ltr" style="">Hi,&nbsp;<div class="yiv4472805457" style=""><br class="yiv4472805457" style="" clear="none"></div><div class="yiv4472805457" style="">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?</div><div class="yiv4472805457" style=""><br class="yiv4472805457" style="" clear="none"></div><div class="yiv4472805457" style="">Kind regards,</div><div class="yiv4472805457" style="">Vladimir
 Pakhomov</div></div></div><br class="yiv4472805457" style="" clear="none">_______________________________________________<br class="yiv4472805457" style="" clear="none">Users mailing list<br class="yiv4472805457" style="" clear="none"><a rel="nofollow" shape="rect" class="yiv4472805457" style="" ymailto="mailto:Users@ovirt.org" target="_blank" href="mailto:Users@ovirt.org">Users@ovirt.org</a><br class="yiv4472805457" style="" clear="none"><a rel="nofollow" shape="rect" class="yiv4472805457" style="" target="_blank" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a><br class="yiv4472805457" style="" clear="none"><br class="yiv4472805457" style="" clear="none"><br class="yiv4472805457" style="" clear="none"></div></div>  </div> </div>  </div> </div></div></div></div></body></html>