direct-io.hg

changeset 15275:b643179d7452

xenapi: Implement VM.set_VCPUs_at_startup and VM.set_VCPUs_max XenAPI
methods in xend.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
author kfraser@localhost.localdomain
date Wed Jun 13 11:28:13 2007 +0100 (2007-06-13)
parents ffdbe8aebde2
children 4d8381679606
files tools/python/xen/xend/XendAPI.py
line diff
     1.1 --- a/tools/python/xen/xend/XendAPI.py	Wed Jun 13 11:27:47 2007 +0100
     1.2 +++ b/tools/python/xen/xend/XendAPI.py	Wed Jun 13 11:28:13 2007 +0100
     1.3 @@ -1483,6 +1483,12 @@ class XendAPI(object):
     1.4          else:
     1.5              return xen_api_success_void()
     1.6      
     1.7 +    def VM_set_VCPUs_at_startup(self, session, vm_ref, num):
     1.8 +        return self.VM_set('VCPUs_at_startup', session, vm_ref, num)
     1.9 +
    1.10 +    def VM_set_VCPUs_max(self, session, vm_ref, num):
    1.11 +        return self.VM_set('VCPUs_max', session, vm_ref, num)
    1.12 +
    1.13      def VM_set_actions_after_shutdown(self, session, vm_ref, action):
    1.14          if action not in XEN_API_ON_NORMAL_EXIT:
    1.15              return xen_api_error(['VM_ON_NORMAL_EXIT_INVALID', vm_ref])