mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
parent
653b67095d
commit
71d0d28b4d
@ -339,6 +339,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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user