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:
parent
3289328a47
commit
bf513d6d2e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user