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

This commit is contained in:
Carlos Martín committed 2011-08-30 16:44:56 +02:00
1 parent 3289328a47
commit bf513d6d2e
2 files changed
+7

No files matched your search

+2
View File
@@ -905,6 +905,8 @@ void VirtualMachine::release_network_leases()
}
vn->release_lease(ip);
vnpool->update(vn);
vn->unlock();
}
}
+5
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;