Revision 36f4cb29

b/snf-cyclades-app/synnefo/logic/backend.py
486 486
    return job
487 487

  
488 488

  
489
def disconnect_nic_from_vm(vm, nic):
490
    """Remove a NetworkInterface from a VirtualMachine.
491

  
492
    """
493

  
494
    op = [('remove', nic.index, {})]
495
    return vm.client.ModifyInstance(vm.backend_vm_id, nics=op,
496
                                   hotplug=True, dry_run=settings.TEST)
497

  
498

  
489 499
def _delete_network(network, backend_jobs=None):
490 500
    if not backend_jobs:
491 501
        backend_jobs = [(backend, []) for backend in

Also available in: Unified diff