mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 05:04:56 +09:00
(cherry picked from commit 71d0d28b4d)
This commit is contained in:
1 parent
92a67d4d9c
commit
faf8cf4067
1 file changed
+14
@@ -349,6 +349,20 @@ int VirtualMachine::generate_network_context(VectorAttribute* context,
|
||||
continue;
|
||||
}
|
||||
|
||||
if (hasPreviousHistory() &&
|
||||
previous_history->action == VMActions::NIC_DETACH_ACTION &&
|
||||
vatts[i]->vector_value("ATTACH") == "YES")
|
||||
{
|
||||
int nic_id;
|
||||
|
||||
vatts[i]->vector_value("NIC_ID", nic_id);
|
||||
|
||||
clear_nic_context(nic_id);
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
bool alias_detach = hasPreviousHistory() &&
|
||||
previous_history->action == VMActions::ALIAS_DETACH_ACTION &&
|
||||
vatts[i]->vector_value("ATTACH") == "YES";
|
||||
|
||||
Reference in new issue
Block a user