<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div style="" class=""><span style="" class="">probably using xml tags not such a good idea for ML archives/PT clients,</span></div><div class="" 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="" class=""><span style="" class=""></span></div><div class="" 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 style="" class="">[1] <a style="" class="" href="http://www.ovirt.org/CLI#Scripting">http://www.ovirt.org/CLI#Scripting</a><br style="" class=""></span></div><div class="" 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 style="" class="">[2] <a style="" class="" href="http://www.ovirt.org/Python-sdk">http://www.ovirt.org/Python-sdk</a><br style="" class=""></span></div><div class="" 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 style="" class="">[3] <a style="" class="" href="http://www.ovirt.org/Java-sdk">http://www.ovirt.org/Java-sdk</a><br style="" class=""></span></div><div> </div> <div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div class="" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div class="" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial,
Lucida Grande, sans-serif; font-size: 16px;"> <div style="" class="" dir="ltr"> <font style="" class="" face="Arial" size="2"> On Sunday, October 5, 2014 2:37 PM, Maikl P <mishka8520@yahoo.com> wrote:<br style="" class=""> </font> </div> <br style="" class=""><br style="" class=""> <div style="" class=""><div style="" class="" id="yiv3905295210"><div style="" class=""><div class="" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div style="" class="" id="yiv3905295210"><div style="" class=""><div class="" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div class="" id="yiv3905295210yui_3_16_0_6_1412494424696_4" style=""><span class="" id="yiv3905295210yui_3_16_0_6_1412494424696_13" style="">Hey Vladimir,</span></div><div class=""
id="yiv3905295210yui_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 class="" style="" clear="none"><span class="" id="yiv3905295210yui_3_16_0_6_1412494424696_13" style=""></span></div><div class="" id="yiv3905295210yui_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="" id="yiv3905295210yui_3_16_0_6_1412494424696_13" style="">Though there is no explicit documentation for the $subject, the concept<br style="" class="" clear="none">is the same in api/cli/sdk, i.e:<br style="" class="" clear="none"><br style="" class="" clear="none">1. fetch the host<br style="" class="" clear="none">2. access host's nics collection<br style=""
class="" clear="none">3. get the nic<br style="" class="" clear="none">4. use attach() method to attach your network,<br style="" class="" clear="none"><br style="" class="" clear="none">in CLI you can use auto-completion for constructing commands<br style="" class="" clear="none">and 'help action attach ...' to see action parameters,</span> cli scripting<br style="" class="" clear="none">wiki available <a style="" class="" rel="nofollow" shape="rect" target="_blank" href="http://www.ovirt.org/CLI#Scripting">here</a>. <br style="" class="" clear="none"><br style="" class="" clear="none"></div><div style="" class="" id="yiv3905295210yui_3_16_0_6_1412494424696_43"> </div><div class="" id="yiv3905295210yui_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=""
id="yiv3905295210yui_3_16_0_6_1412494424696_13" style="">also i'd suggest considering one of SDKs (<a rel="nofollow" shape="rect" class="" id="yiv3905295210yui_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="" id="yiv3905295210yui_3_16_0_1_1412494424696_51266" style="" target="_blank" href="http://www.ovirt.org/Java-sdk">java-sdk</a>)<br style="" class="" clear="none"></span><span class="" id="yiv3905295210yui_3_16_0_6_1412494424696_13" style=""><span class="" id="yiv3905295210yui_3_16_0_6_1412494424696_13" style="">for this matter.<br style="" class="" clear="none"><br style="" class="" clear="none">Michael Pasternak<br style="" class="" clear="none"></span></span></div><div class="" id="yiv3905295210yui_3_16_0_6_1412494424696_22" style=""> </div> <div class="" id="yiv3905295210yui_3_16_0_6_1412494424696_7" style="display:block;"> <div class=""
style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div class="" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div style="" class=""><br style="" class="" clear="none"><br style="" class="" clear="none"></div><div style="" class="" id="yiv3905295210yqt35088"><div style="" class="" id="yiv3905295210yqt96792"><div class="" dir="ltr" style=""> <font class="" style="" face="Arial" size="2"> On Sunday, October 5, 2014 1:26 PM, Vladimir Pakhomov <pakhomov.vladimir@gmail.com> wrote:<br class="" style="" clear="none"> </font> </div> <br class="" style="" clear="none"><br class="" style="" clear="none"> <div class="" style=""><div class="" id="yiv3905295210" style=""><div class="" dir="ltr" style="">Hi, <div class="" style=""><br class="" style="" clear="none"></div><div class="" 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="" style=""><br class="" style="" clear="none"></div><div class="" style="">Kind regards,</div><div class="" style="">Vladimir
Pakhomov</div></div></div><br class="" style="" clear="none">_______________________________________________<br class="" style="" clear="none">Users mailing list<br class="" style="" clear="none"><a rel="nofollow" shape="rect" class="" style="" ymailto="mailto:Users@ovirt.org" target="_blank" href="mailto:Users@ovirt.org">Users@ovirt.org</a><br class="" style="" clear="none"><a rel="nofollow" shape="rect" class="" style="" target="_blank" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a><br class="" style="" clear="none"><br class="" style="" clear="none"><br class="" style="" clear="none"></div></div></div> </div> </div> </div> </div></div></div></div></div></div><br style="" class=""><br style="" class=""></div> </div> </div> </div> </div></body></html>