mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
Reset current network when the map is updated
This commit is contained in:
1 parent
61d2431dea
commit
9d76ac0961
1 file changed
+4
@@ -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;
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user