mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
Bug #772: Update the VNet object when a lease is set/unset
This commit is contained in:
1 parent
3289328a47
commit
bf513d6d2e
2 files changed
+7
No files matched your search
@@ -905,6 +905,8 @@ void VirtualMachine::release_network_leases()
|
||||
}
|
||||
|
||||
vn->release_lease(ip);
|
||||
vnpool->update(vn);
|
||||
|
||||
vn->unlock();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user