mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
[XEND] Fix VCPU_params to return string map.
Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
1 parent
f492dd97fb
commit
c8cce1eddd
2 files changed
+7
-3
No files matched your search
@@ -1121,11 +1121,11 @@ class XendAPI(object):
|
||||
|
||||
def VM_get_VCPUs_policy(self, session, vm_ref):
|
||||
dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
|
||||
return dom.get_vcpus_policy()
|
||||
return xen_api_success(dom.get_vcpus_policy())
|
||||
|
||||
def VM_get_VCPUs_params(self, session, vm_ref):
|
||||
dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
|
||||
return xen_api_todo() # need access to scheduler
|
||||
return xen_api_success(dom.get_vcpus_params())
|
||||
|
||||
def VM_get_actions_after_shutdown(self, session, vm_ref):
|
||||
dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
|
||||
|
||||
@@ -1976,7 +1976,11 @@ class XendDomainInfo:
|
||||
else:
|
||||
return 'unknown'
|
||||
def get_vcpus_params(self):
|
||||
return '' # TODO
|
||||
if self.getDomid() is None:
|
||||
return {}
|
||||
|
||||
retval = xc.sched_credit_domain_get(self.getDomid())
|
||||
return retval
|
||||
def get_power_state(self):
|
||||
return XEN_API_VM_POWER_STATE[self.state]
|
||||
def get_platform_std_vga(self):
|
||||
|
||||