1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Bug #3649: Set the nic_id when the NIC does not use a vnet

This commit is contained in:
Carlos Martín 2015-03-06 11:36:50 +01:00
parent 7d4226caaa
commit 0bd28a5830

View File

@ -248,6 +248,8 @@ int VirtualNetworkPool::nic_attribute(VectorAttribute * nic,
string network;
VirtualNetwork * vnet = 0;
nic->replace("NIC_ID", nic_id);
if (!(network = nic->vector_value("NETWORK")).empty())
{
vnet = get_nic_by_name (nic, network, uid, error);
@ -271,8 +273,6 @@ int VirtualNetworkPool::nic_attribute(VectorAttribute * nic,
if ( rc == 0 )
{
update(vnet);
nic->replace("NIC_ID", nic_id);
}
else
{