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:
parent
61d2431dea
commit
9d76ac0961
@ -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;
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user