This patch implements VM.set_VCPUs_at_startup and VM.set_VCPUs_max
XenAPI methods in xend. Implementation already exists in XenAPI c-bindings.
Regards,
Jim
# HG changeset patch
# User Jim Fehlig <jfehlig@xxxxxxxxxx>
# Date 1181687775 21600
# Node ID 809a2ff82eabef23f352e230b141fe3a301c77a2
# Parent 93f77a5a8437df0b34919a6987f48e84342b4a43
Implement VM.set_VCPUs_at_startup and VM.set_VCPUs_max XenAPI methods in xend.
Signed-off-by: Jim Fehlig <jfehlig@xxxxxxxxxx>
diff -r 93f77a5a8437 -r 809a2ff82eab tools/python/xen/xend/XendAPI.py
--- a/tools/python/xen/xend/XendAPI.py Sun Jun 10 19:58:22 2007 +0100
+++ b/tools/python/xen/xend/XendAPI.py Tue Jun 12 16:36:15 2007 -0600
@@ -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])
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|