mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
feature #1691: Can attach NIC not associated to a pre-defined network
This commit is contained in:
parent
0bf9a50510
commit
ec0f94c10c
@ -1924,7 +1924,7 @@ VectorAttribute * VirtualMachine::set_up_attach_nic(
|
||||
|
||||
int rc = vnpool->nic_attribute(new_nic, max_nic_id+1, uid, vm_id, error_str);
|
||||
|
||||
if ( rc != 0 )
|
||||
if ( rc != -1 ) //-2 is not using a pre-defined network
|
||||
{
|
||||
delete new_nic;
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user