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

Bug #772: Update the VNet object when a lease is set/unset

This commit is contained in:
Carlos Martín 2011-08-30 16:41:26 +02:00
parent 3289328a47
commit bf513d6d2e
2 changed files with 7 additions and 0 deletions

View File

@ -905,6 +905,8 @@ void VirtualMachine::release_network_leases()
}
vn->release_lease(ip);
vnpool->update(vn);
vn->unlock();
}
}

View File

@ -165,6 +165,11 @@ int VirtualNetworkPool::nic_attribute(VectorAttribute * nic, int uid, int vid)
int rc = vnet->nic_attribute(nic,vid);
if ( rc == 0 )
{
update(vnet);
}
vnet->unlock();
return rc;