1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-20 10:50:08 +03:00

B #4779: Allow to instantiate a VM without NICs

This commit is contained in:
Ruben S. Montero 2016-09-14 23:28:18 +02:00
parent 115bd6da57
commit 7c36ef0381

View File

@ -5052,6 +5052,11 @@ int VirtualMachine::generate_network_context(VectorAttribute * context,
int num_vatts = obj_template->get("NIC", vatts);
if ( num_vatts == 0 )
{
return 0;
}
for(int i=0; i<num_vatts; i++)
{
parse_nic_context(&tmp_context, vatts[i]);