Revision 16ddd1fe

b/snf-cyclades-app/synnefo/app_settings/default/backend.py
34 34
    'hvparams': {'serial_console': False},
35 35
    'wait_for_sync': False}
36 36

  
37
# If True, qemu-kvm will hotplug a NIC when connecting a vm to
38
# a network. This requires qemu-kvm=1.0.
39
GANETI_USE_HOTPLUG = False
40

  
37 41
# This module implements the strategy for allocating a vm to a backend
38 42
BACKEND_ALLOCATOR_MODULE = "synnefo.logic.allocators.default_allocator"
39 43
# Refresh backend statistics timeout, in minutes, used in backend allocation
b/snf-cyclades-app/synnefo/logic/backend.py
537 537

  
538 538
    op = [('remove', nic.index, {})]
539 539
    return vm.client.ModifyInstance(vm.backend_vm_id, nics=op,
540
                                   hotplug=True, dry_run=settings.TEST)
540
                                    hotplug=settings.GANETI_USE_HOTPLUG,
541
                                    dry_run=settings.TEST)
541 542

  
542 543

  
543 544
def _delete_network(network, backend_jobs=None):
......
560 561

  
561 562
    nic = {'ip': address, 'network': network.backend_id}
562 563
    vm.client.ModifyInstance(vm.backend_vm_id, nics=[('add',  nic)],
563
                             hotplug=True, dry_run=settings.TEST)
564
                             hotplug=settings.GANETI_USE_HOTPLUG,
565
                             dry_run=settings.TEST)
564 566

  
565 567

  
566 568
def set_firewall_profile(vm, profile):

Also available in: Unified diff