<div dir="ltr"><div>Hi Seven,<br><br></div>okay.. Thanks..<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 1, 2014 at 4:31 PM, Sven Kieske <span dir="ltr">&lt;<a href="mailto:S.Kieske@mittwald.de" target="_blank">S.Kieske@mittwald.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">CC&#39;ed michal, maybe he finds an error in your xml.<br>
<br>
Am 30.06.2014 12:31, schrieb Shanil S:<br>
<div class="HOEnZb"><div class="h5">&gt; Hi,<br>
&gt;<br>
&gt; I am assigning IP using the REST API as like<br>
&gt; <a href="http://www.ovirt.org/Features/Cloud-Init_Integration" target="_blank">http://www.ovirt.org/Features/Cloud-Init_Integration</a> but it seems the IP is<br>
&gt; not assigning to the vm. But the other details like host address etc are<br>
&gt; correctly saving. I am using cloud init to assign IP address<br>
&gt;<br>
&gt; The following is the xml which i used for assigning IP<br>
&gt;<br>
&gt;<br>
&gt; $xml_data = &quot;<br>
&gt;     &lt;action&gt;<br>
&gt;         &lt;vm&gt;<br>
&gt;             &lt;os&gt;<br>
&gt;                 &lt;boot dev=&#39;cdrom&#39;/&gt;<br>
&gt;             &lt;/os&gt;<br>
&gt;             &lt;initialization&gt;<br>
&gt;      &lt;cloud_init&gt;<br>
&gt;      &lt;host&gt;<br>
&gt;          &lt;address&gt;TestMachine&lt;/address&gt;<br>
&gt;        &lt;/host&gt;<br>
&gt;<br>
&gt;       &lt;users&gt;<br>
&gt;          &lt;user&gt;<br>
&gt;            &lt;user_name&gt;username&lt;/user_name&gt;<br>
&gt;            &lt;password&gt;adminpassw&lt;/password&gt;<br>
&gt;          &lt;/user&gt;<br>
&gt;        &lt;/users&gt;<br>
&gt;       &lt;network_configuration&gt;<br>
&gt;       &lt;nics&gt;<br>
&gt;            &lt;nic&gt;<br>
&gt;              &lt;name&gt;eth0&lt;/name&gt;<br>
&gt;              &lt;boot_protocol&gt;none&lt;/boot_protocol&gt;<br>
&gt;              &lt;network&gt;<br>
&gt;                &lt;ip address=&#39;x.x.x.x&#39; netmask=&#39;255.255.0.0&#39;<br>
&gt; gateway=&#39;x.x.x.x&#39;/&gt;<br>
&gt;              &lt;/network&gt;<br>
&gt;              &lt;on_boot&gt;true&lt;/on_boot&gt;<br>
&gt;            &lt;/nic&gt;<br>
&gt;          &lt;/nics&gt;<br>
&gt;          &lt;dns&gt;<br>
&gt;            &lt;servers&gt;<br>
&gt;              &lt;host&gt;<br>
&gt;                &lt;address&gt;8.8.8.8&lt;/address&gt;<br>
&gt;              &lt;/host&gt;<br>
&gt;            &lt;/servers&gt;<br>
&gt;          &lt;/dns&gt;<br>
&gt;        &lt;/network_configuration&gt;<br>
&gt;      &lt;/cloud_init&gt;<br>
&gt;    &lt;/initialization&gt;<br>
&gt;         &lt;/vm&gt;<br>
&gt;     &lt;/action&gt;&quot;;<br>
&gt;<br>
&gt;<br>
&gt; The above xml is called with the start function of API. IP is assigned from<br>
&gt; the ovirt portal and the issue is only when assigning it from the REST API.<br>
&gt; If anyone knows could you please check if any issues with the it ?<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div><div class="HOEnZb"><div class="h5">&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
&gt; <a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
&gt;<br>
<br>
--<br>
Mit freundlichen Grüßen / Regards<br>
<br>
Sven Kieske<br>
<br>
Systemadministrator<br>
Mittwald CM Service GmbH &amp; Co. KG<br>
Königsberger Straße 6<br>
32339 Espelkamp<br>
T: +49-5772-293-100<br>
F: +49-5772-293-333<br>
<a href="https://www.mittwald.de" target="_blank">https://www.mittwald.de</a><br>
Geschäftsführer: Robert Meyer<br>
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen<br>
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>