
----- Original Message -----
From: "Shanil S" <xielesshanil@gmail.com> To: users@ovirt.org Sent: Thursday, August 28, 2014 11:31:30 AM Subject: [ovirt-users] Unable to assign profile to the nic
Hi All,
I am unable to assign the profile using the ovirt api code, the following xml code is used for creating the nic
<nic> <interface>virtio</interface> <name>eth0</name> <boot_protocol>static</boot_protocol> <mac address='".$ip->mac_address."'/> <network> <ip address='".$ip->mac_ip."' netmask='255.255.255.0' gateway='".$ip->mac_gateway."'/> </network>
Try not to provide the 'network' element at all. The vnic profile replaced the 'network' element when attaching a nic to a network. In this context you should use either <network><name>...</name></network> or the <vnic_profile id="..."/>. As Juan explained in other thread, any other parameter for network are being ignored and network element without name is referred as "empty network".
<on_boot>true</on_boot> <vnic_profile id='bbabc471-667d-4221-bc8e-4ab30b3dcc34' /> </nic>
Could you please check if anything wrong with it ?
-- Regards Shanil
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users