Drop JSON decoding for supported_instances
JSON encoding for supported_instances in the virt drivers was a temporary measure that is not needed. The encoding has been removed for all in tree virt drivers. This patch remove it for PowerVM. blueprint mitaka-objects Change-Id: I86391c80bf733b84c2d4ae6377437b130b7b9087
This commit is contained in:
@@ -40,12 +40,10 @@ LOG = logging.getLogger(__name__)
|
|||||||
IBM_POWERVM_HYPERVISOR_VERSION = 8
|
IBM_POWERVM_HYPERVISOR_VERSION = 8
|
||||||
|
|
||||||
# The types of LPARS that are supported.
|
# The types of LPARS that are supported.
|
||||||
POWERVM_SUPPORTED_INSTANCES = jsonutils.dumps([(arch.PPC64,
|
POWERVM_SUPPORTED_INSTANCES = [
|
||||||
hv_type.PHYP,
|
(arch.PPC64, hv_type.PHYP, vm_mode.HVM),
|
||||||
vm_mode.HVM),
|
(arch.PPC64LE, hv_type.PHYP, vm_mode.HVM),
|
||||||
(arch.PPC64LE,
|
]
|
||||||
hv_type.PHYP,
|
|
||||||
vm_mode.HVM)])
|
|
||||||
|
|
||||||
# cpu_info that will be returned by build_host_stats_from_entry()
|
# cpu_info that will be returned by build_host_stats_from_entry()
|
||||||
HOST_STATS_CPU_INFO = jsonutils.dumps({'vendor': 'ibm', 'arch': 'ppc64'})
|
HOST_STATS_CPU_INFO = jsonutils.dumps({'vendor': 'ibm', 'arch': 'ppc64'})
|
||||||
|
|||||||
Reference in New Issue
Block a user