1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

B #5119: Removed vnet if user can not reserve (#493)

This commit is contained in:
juanmont 2017-09-28 17:03:52 +02:00 committed by Ruben S. Montero
parent b502c32a64
commit 0b36571b23

View File

@ -413,6 +413,17 @@ void VirtualNetworkReserve::request_execute(
if (quota_authorization(&qtmpl, Quotas::NETWORK, reservation_att) == false)
{
if (!on_exisiting)
{
rvn = vnpool->get(rid, true);
if (rvn != 0)
{
vnpool->drop(rvn, att.resp_msg);
rvn->unlock();
}
}
return;
}