<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"><<a href="mailto:S.Kieske@mittwald.de" target="_blank">S.Kieske@mittwald.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">CC'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">> Hi,<br>
><br>
> I am assigning IP using the REST API as like<br>
> <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>
> not assigning to the vm. But the other details like host address etc are<br>
> correctly saving. I am using cloud init to assign IP address<br>
><br>
> The following is the xml which i used for assigning IP<br>
><br>
><br>
> $xml_data = "<br>
> <action><br>
> <vm><br>
> <os><br>
> <boot dev='cdrom'/><br>
> </os><br>
> <initialization><br>
> <cloud_init><br>
> <host><br>
> <address>TestMachine</address><br>
> </host><br>
><br>
> <users><br>
> <user><br>
> <user_name>username</user_name><br>
> <password>adminpassw</password><br>
> </user><br>
> </users><br>
> <network_configuration><br>
> <nics><br>
> <nic><br>
> <name>eth0</name><br>
> <boot_protocol>none</boot_protocol><br>
> <network><br>
> <ip address='x.x.x.x' netmask='255.255.0.0'<br>
> gateway='x.x.x.x'/><br>
> </network><br>
> <on_boot>true</on_boot><br>
> </nic><br>
> </nics><br>
> <dns><br>
> <servers><br>
> <host><br>
> <address>8.8.8.8</address><br>
> </host><br>
> </servers><br>
> </dns><br>
> </network_configuration><br>
> </cloud_init><br>
> </initialization><br>
> </vm><br>
> </action>";<br>
><br>
><br>
> The above xml is called with the start function of API. IP is assigned from<br>
> the ovirt portal and the issue is only when assigning it from the REST API.<br>
> If anyone knows could you please check if any issues with the it ?<br>
><br>
><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<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>
><br>
<br>
--<br>
Mit freundlichen Grüßen / Regards<br>
<br>
Sven Kieske<br>
<br>
Systemadministrator<br>
Mittwald CM Service GmbH & 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>