Hi Juan,
We are using the using the Ovirt 3.4.3 version.
--
Regards
Shanil
On Fri, Aug 29, 2014 at 1:56 PM, Juan Hernandez <jhernand(a)redhat.com> wrote:
On 08/29/2014 05:21 AM, Shanil S wrote:
> Hi Juan,
>
> I have attached the screenshot of the ovirt panel after creating the
> nic's with the above code, Please check it.
>
May it be that you are using version 3.3.0? The RESTAPI support for vNIC
profiles was added in 3.3.1.
> On Thu, Aug 28, 2014 at 3:23 PM, Juan Hernandez <jhernand(a)redhat.com
> <mailto:jhernand@redhat.com>> wrote:
>
> On 08/28/2014 10:31 AM, Shanil S wrote:
> > 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>
> > <on_boot>true</on_boot>
> > <vnic_profile id='bbabc471-667d-4221-bc8e-4ab30b3dcc34'
/>
> > </nic>
> >
> > Could you please check if anything wrong with it ?
> >
>
> There is nothing severely wrong with that XML, it should work. What
> specific problems are you having? Does the API return an error?
Anything
> in the logs?
>
> Note also that the boot_protocol, ip, and on_boot elements will just
be
> ignored. These elements are used only for host NICs, not for VM
NICs. If
> you want to change the IP configuration of the OS of the VM then you
> have to use whatever mechanisms that OS provides. The RESTAPI can
help
> you in these regards only if you combine it with Cloud-init or
Sysprep.
>
> --
> Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
> 3ºD, 28016 Madrid, Spain
> Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat
> S.L.
>
>
>
>
> _______________________________________________
> Users mailing list
> Users(a)ovirt.org
>
http://lists.ovirt.org/mailman/listinfo/users
>
--
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
3ºD, 28016 Madrid, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.