<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">&lt;<a href="mailto:masayag@redhat.com" target="_blank">masayag@redhat.com</a>&gt;</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>
&gt; From: &quot;Shanil S&quot; &lt;<a href="mailto:xielesshanil@gmail.com">xielesshanil@gmail.com</a>&gt;<br>
&gt; To: <a href="mailto:users@ovirt.org">users@ovirt.org</a><br>
&gt; Sent: Thursday, August 28, 2014 11:31:30 AM<br>
&gt; Subject: [ovirt-users] Unable to assign profile to the nic<br>
&gt;<br>
&gt; Hi All,<br>
&gt;<br>
&gt; I am unable to assign the profile using the ovirt api code, the following xml<br>
&gt; code is used for creating the nic<br>
&gt;<br>
&gt; &lt;nic&gt;<br>
&gt; &lt;interface&gt;virtio&lt;/interface&gt;<br>
&gt; &lt;name&gt;eth0&lt;/name&gt;<br>
&gt; &lt;boot_protocol&gt;static&lt;/boot_protocol&gt;<br>
&gt; &lt;mac address=&#39;&quot;.$ip-&gt;mac_address.&quot;&#39;/&gt;<br>
&gt; &lt;network&gt;<br>
&gt; &lt;ip address=&#39;&quot;.$ip-&gt;mac_ip.&quot;&#39; netmask=&#39;255.255.255.0&#39;<br>
&gt; gateway=&#39;&quot;.$ip-&gt;mac_gateway.&quot;&#39;/&gt;<br>
&gt; &lt;/network&gt;<br>
<br>
</div>Try not to provide the &#39;network&#39; element at all. The vnic profile replaced the<br>
&#39;network&#39; element when attaching a nic to a network.<br>
<br>
In this context you should use either &lt;network&gt;&lt;name&gt;...&lt;/name&gt;&lt;/network&gt; or<br>
the &lt;vnic_profile id=&quot;...&quot;/&gt;.<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 &quot;empty network&quot;.<br>
<div class="im HOEnZb"><br>
&gt; &lt;on_boot&gt;true&lt;/on_boot&gt;<br>
&gt; &lt;vnic_profile id=&#39;bbabc471-667d-4221-bc8e-4ab30b3dcc34&#39; /&gt;<br>
&gt; &lt;/nic&gt;<br>
&gt;<br>
&gt; Could you please check if anything wrong with it ?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Regards<br>
&gt; Shanil<br>
&gt;<br>
</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>
</div></div></blockquote></div><br></div>