1
0
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:
Ruben S. Montero 2013-03-06 16:09:40 +01:00
parent 0bf9a50510
commit ec0f94c10c

View File

@ -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;