Revision 2c022086 snf-cyclades-app/synnefo/logic/backend.py
b/snf-cyclades-app/synnefo/logic/backend.py | ||
---|---|---|
482 | 482 |
details=details) |
483 | 483 |
|
484 | 484 |
|
485 |
def create_instance(vm, public_nic, flavor, image):
|
|
485 |
def create_instance(vm, nics, flavor, image):
|
|
486 | 486 |
"""`image` is a dictionary which should contain the keys: |
487 | 487 |
'backend_id', 'format' and 'metadata' |
488 | 488 |
|
... | ... | |
507 | 507 |
kw['disks'][0]['provider'] = provider |
508 | 508 |
kw['disks'][0]['origin'] = flavor.disk_origin |
509 | 509 |
|
510 |
kw['nics'] = [public_nic]
|
|
510 |
kw['nics'] = nics
|
|
511 | 511 |
if vm.backend.use_hotplug(): |
512 | 512 |
kw['hotplug'] = True |
513 | 513 |
# Defined in settings.GANETI_CREATEINSTANCE_KWARGS |
Also available in: Unified diff