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

Reset current network when the map is updated

This commit is contained in:
Ruben S. Montero 2014-04-22 12:24:21 +02:00
parent 61d2431dea
commit 9d76ac0961

View File

@ -140,6 +140,8 @@ int FixedLeases::add(const string& ip, const string& mac, int vid,
n_used++;
}
current = leases.begin();
return rc;
error_no_ip_mac:
@ -217,6 +219,8 @@ int FixedLeases::remove(const string& ip, string& error_msg)
leases.erase(it);
current = leases.begin();
return rc;