Revision 24711492 lib/hypervisor/hv_base.py
b/lib/hypervisor/hv_base.py | ||
---|---|---|
589 | 589 |
def VerifyHotplugSupport(self, instance, action, dev_type): |
590 | 590 |
"""Verifies that hotplug is supported. |
591 | 591 |
|
592 |
Hotplug is not supported by default. If a hypervisor wants to support
|
|
593 |
it it should override this method.
|
|
592 |
Given the target device and hotplug action checks if hotplug is
|
|
593 |
actually supported.
|
|
594 | 594 |
|
595 | 595 |
@type instance: L{objects.Instance} |
596 | 596 |
@param instance: the instance object |
... | ... | |
601 | 601 |
@raise errors.HotplugError: if hotplugging is not supported |
602 | 602 |
|
603 | 603 |
""" |
604 |
raise errors.HotplugError("Hotplug is not supported.") |
|
605 |
|
|
606 |
def HotplugSupported(self, instance): |
|
607 |
"""Checks if hotplug is supported. |
|
608 |
|
|
609 |
By default is not. Currently only KVM hypervisor supports it. |
|
610 |
|
|
611 |
""" |
|
604 | 612 |
raise errors.HotplugError("Hotplug is not supported by this hypervisor") |
Also available in: Unified diff