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

bug #3443: Reset address index when size is updated

(cherry picked from commit bda68ea01183725204b931a3da44c5ea5428cbc7)
This commit is contained in:
Ruben S. Montero 2014-12-20 21:54:30 +01:00
parent f154facff4
commit 1ea4c1a8d6

View File

@ -274,8 +274,6 @@ int AddressRange::update_attributes(
if (vup->vector_value("SIZE", new_size) == 0)
{
map<unsigned int, long long> itup;
if (is_reservation && new_size != size)
{
error_msg = "The SIZE of a reservation cannot be changed.";
@ -289,6 +287,8 @@ int AddressRange::update_attributes(
return -1;
}
next = 0;
}
else
{