Revision 75b21ca0 lib/hypervisor/hv_base.py
b/lib/hypervisor/hv_base.py | ||
---|---|---|
569 | 569 |
def VerifyHotplugSupport(self, instance, action, dev_type): |
570 | 570 |
"""Verifies that hotplug is supported. |
571 | 571 |
|
572 |
Hotplug is not supported by default. If a hypervisor wants to support
|
|
573 |
it it should override this method.
|
|
572 |
Given the target device and hotplug action checks if hotplug is
|
|
573 |
actually supported.
|
|
574 | 574 |
|
575 | 575 |
@type instance: L{objects.Instance} |
576 | 576 |
@param instance: the instance object |
... | ... | |
581 | 581 |
@raise errors.HotplugError: if hotplugging is not supported |
582 | 582 |
|
583 | 583 |
""" |
584 |
raise errors.HotplugError("Hotplug is not supported.") |
|
585 |
|
|
586 |
def HotplugSupported(self, instance): |
|
587 |
"""Checks if hotplug is supported. |
|
588 |
|
|
589 |
By default is not. Currently only KVM hypervisor supports it. |
|
590 |
|
|
591 |
""" |
|
584 | 592 |
raise errors.HotplugError("Hotplug is not supported by this hypervisor") |
Also available in: Unified diff