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:
parent
115bd6da57
commit
7c36ef0381
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user