mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
xenapi: Implement VM.set_VCPUs_at_startup and VM.set_VCPUs_max XenAPI
methods in xend. Signed-off-by: Jim Fehlig <jfehlig@novell.com>
This commit is contained in:
1 parent
2258445464
commit
eee0df9243
1 file changed
+6
@@ -1483,6 +1483,12 @@ class XendAPI(object):
|
||||
else:
|
||||
return xen_api_success_void()
|
||||
|
||||
def VM_set_VCPUs_at_startup(self, session, vm_ref, num):
|
||||
return self.VM_set('VCPUs_at_startup', session, vm_ref, num)
|
||||
|
||||
def VM_set_VCPUs_max(self, session, vm_ref, num):
|
||||
return self.VM_set('VCPUs_max', session, vm_ref, num)
|
||||
|
||||
def VM_set_actions_after_shutdown(self, session, vm_ref, action):
|
||||
if action not in XEN_API_ON_NORMAL_EXIT:
|
||||
return xen_api_error(['VM_ON_NORMAL_EXIT_INVALID', vm_ref])
|
||||
|
||||