Revision caf74756 lib/hypervisor/hv_base.py

b/lib/hypervisor/hv_base.py
564 564
  def VerifyHotplugSupport(self, instance, action, dev_type):
565 565
    """Verifies that hotplug is supported.
566 566

  
567
    Hotplug is not supported by default. If a hypervisor wants to support
568
    it it should override this method.
567
    Given the target device and hotplug action checks if hotplug is
568
    actually supported.
569 569

  
570 570
    @type instance: L{objects.Instance}
571 571
    @param instance: the instance object
......
576 576
    @raise errors.HotplugError: if hotplugging is not supported
577 577

  
578 578
    """
579
    raise errors.HotplugError("Hotplug is not supported.")
580

  
581
  def HotplugSupported(self, instance):
582
    """Checks if hotplug is supported.
583

  
584
    By default is not. Currently only KVM hypervisor supports it.
585

  
586
    """
579 587
    raise errors.HotplugError("Hotplug is not supported by this hypervisor")

Also available in: Unified diff