<div dir="ltr"><div>Hi Moti,<br><br></div>Thanks for your reply. Let me check it with this solution.<br></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><span>-- <br></span>Regards
<br>Shanil
</div></div>
<br><br><div class="gmail_quote">On Sun, Aug 31, 2014 at 2:15 PM, Moti Asayag <span dir="ltr"><<a href="mailto:masayag@redhat.com" target="_blank">masayag@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class=""><br>
<br>
----- Original Message -----<br>
> From: "Shanil S" <<a href="mailto:xielesshanil@gmail.com">xielesshanil@gmail.com</a>><br>
> To: <a href="mailto:users@ovirt.org">users@ovirt.org</a><br>
> Sent: Thursday, August 28, 2014 11:31:30 AM<br>
> Subject: [ovirt-users] Unable to assign profile to the nic<br>
><br>
> Hi All,<br>
><br>
> I am unable to assign the profile using the ovirt api code, the following xml<br>
> code is used for creating the nic<br>
><br>
> <nic><br>
> <interface>virtio</interface><br>
> <name>eth0</name><br>
> <boot_protocol>static</boot_protocol><br>
> <mac address='".$ip->mac_address."'/><br>
> <network><br>
> <ip address='".$ip->mac_ip."' netmask='255.255.255.0'<br>
> gateway='".$ip->mac_gateway."'/><br>
> </network><br>
<br>
</div>Try not to provide the 'network' element at all. The vnic profile replaced the<br>
'network' element when attaching a nic to a network.<br>
<br>
In this context you should use either <network><name>...</name></network> or<br>
the <vnic_profile id="..."/>.<br>
<br>
As Juan explained in other thread, any other parameter for network are being<br>
ignored and network element without name is referred as "empty network".<br>
<div class="im HOEnZb"><br>
> <on_boot>true</on_boot><br>
> <vnic_profile id='bbabc471-667d-4221-bc8e-4ab30b3dcc34' /><br>
> </nic><br>
><br>
> Could you please check if anything wrong with it ?<br>
><br>
><br>
><br>
> --<br>
> Regards<br>
> Shanil<br>
><br>
</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>
</div></div></blockquote></div><br></div>