direct-io.hg
changeset 13125:8348f40ba2b7
[XEND] Xen API commands cleanup.
Signed-off-by: Alastair Tse <atse@xensource.com>
Signed-off-by: Alastair Tse <atse@xensource.com>
author | Alastair Tse <atse@xensource.com> |
---|---|
date | Thu Dec 21 14:49:19 2006 +0000 (2006-12-21) |
parents | 43f367b6c16c |
children | 71c40c3f92f7 |
files | tools/python/xen/xend/XendAPI.py tools/python/xen/xend/XendDomainInfo.py |
line diff
1.1 --- a/tools/python/xen/xend/XendAPI.py Thu Dec 21 14:33:37 2006 +0000 1.2 +++ b/tools/python/xen/xend/XendAPI.py Thu Dec 21 14:49:19 2006 +0000 1.3 @@ -893,55 +893,55 @@ class XendAPI: 1.4 dom.setName(label) 1.5 return xen_api_success_void() 1.6 1.7 - def VM_set_name_description(self, session, vm_ref): 1.8 + def VM_set_name_description(self, session, vm_ref, desc): 1.9 dom = XendDomain.instance().get_vm_by_uuid(vm_ref) 1.10 - return xen_api_success_void() 1.11 + return xen_api_todo() 1.12 1.13 - def VM_set_user_version(self, session, vm_ref): 1.14 + def VM_set_user_version(self, session, vm_ref, ver): 1.15 dom = XendDomain.instance().get_vm_by_uuid(vm_ref) 1.16 - return xen_api_success_void() 1.17 + return xen_api_todo() 1.18 1.19 - def VM_set_is_a_template(self, session, vm_ref): 1.20 + def VM_set_is_a_template(self, session, vm_ref, is_template): 1.21 dom = XendDomain.instance().get_vm_by_uuid(vm_ref) 1.22 - return xen_api_success_void() 1.23 + return xen_api_todo() 1.24 1.25 - def VM_set_memory_dynamic_max(self, session, vm_ref): 1.26 + def VM_set_memory_dynamic_max(self, session, vm_ref, mem): 1.27 dom = XendDomain.instance().get_vm_by_uuid(vm_ref) 1.28 - return xen_api_success_void() 1.29 + return xen_api_todo() 1.30 1.31 - def VM_set_memory_dynamic_min(self, session, vm_ref): 1.32 + def VM_set_memory_dynamic_min(self, session, vm_ref, mem): 1.33 dom = XendDomain.instance().get_vm_by_uuid(vm_ref) 1.34 - return xen_api_success_void() 1.35 + return xen_api_todo() 1.36 1.37 - def VM_set_VCPUs_policy(self, session, vm_ref): 1.38 + def VM_set_VCPUs_policy(self, session, vm_ref, policy): 1.39 dom = XendDomain.instance().get_vm_by_uuid(vm_ref) 1.40 - return xen_api_success_void() 1.41 + return xen_api_todo() 1.42 1.43 - def VM_set_VCPUs_params(self, session, vm_ref): 1.44 + def VM_set_VCPUs_params(self, session, vm_ref, params): 1.45 dom = XendDomain.instance().get_vm_by_uuid(vm_ref) 1.46 - return xen_api_success_void() 1.47 + return xen_api_todo() 1.48 1.49 - def VM_set_VCPUs_features_force_on(self, session, vm_ref): 1.50 + def VM_set_VCPUs_features_force_on(self, session, vm_ref, features): 1.51 dom = XendDomain.instance().get_vm_by_uuid(vm_ref) 1.52 - return xen_api_success_void() 1.53 + return xen_api_todo() 1.54 1.55 - def VM_set_VCPUs_features_force_off(self, session, vm_ref): 1.56 + def VM_set_VCPUs_features_force_off(self, session, vm_ref, features): 1.57 dom = XendDomain.instance().get_vm_by_uuid(vm_ref) 1.58 - return xen_api_success_void() 1.59 + return xen_api_todo() 1.60 1.61 - def VM_set_actions_after_shutdown(self, session, vm_ref): 1.62 + def VM_set_actions_after_shutdown(self, session, vm_ref, action): 1.63 dom = XendDomain.instance().get_vm_by_uuid(vm_ref) 1.64 - return xen_api_success_void() 1.65 + return xen_api_todo() 1.66 1.67 - def VM_set_actions_after_reboot(self, session, vm_ref): 1.68 + def VM_set_actions_after_reboot(self, session, vm_ref, action): 1.69 dom = XendDomain.instance().get_vm_by_uuid(vm_ref) 1.70 - return xen_api_success_void() 1.71 + return xen_api_todo() 1.72 1.73 - def VM_set_actions_after_suspend(self, session, vm_ref): 1.74 + def VM_set_actions_after_suspend(self, session, vm_ref, action): 1.75 dom = XendDomain.instance().get_vm_by_uuid(vm_ref) 1.76 - return xen_api_success_void() 1.77 + return xen_api_todo() 1.78 1.79 - def VM_set_actions_after_crash(self, session, vm_ref): 1.80 + def VM_set_actions_after_crash(self, session, vm_ref, action): 1.81 dom = XendDomain.instance().get_vm_by_uuid(vm_ref) 1.82 return xen_api_success_void() 1.83 1.84 @@ -965,27 +965,27 @@ class XendAPI: 1.85 1.86 def VM_set_platform_std_VGA(self, session, vm_ref): 1.87 dom = XendDomain.instance().get_vm_by_uuid(vm_ref) 1.88 - return xen_api_success_void() 1.89 + return xen_api_todo() 1.90 1.91 - def VM_set_platform_serial(self, session, vm_ref): 1.92 + def VM_set_platform_serial(self, session, vm_ref, serial): 1.93 dom = XendDomain.instance().get_vm_by_uuid(vm_ref) 1.94 - return xen_api_success_void() 1.95 + return xen_api_todo() 1.96 1.97 - def VM_set_platform_localtime(self, session, vm_ref): 1.98 + def VM_set_platform_localtime(self, session, vm_ref, localtime): 1.99 dom = XendDomain.instance().get_vm_by_uuid(vm_ref) 1.100 - return xen_api_success_void() 1.101 + return xen_api_todo() 1.102 1.103 - def VM_set_platform_clock_offset(self, session, vm_ref): 1.104 + def VM_set_platform_clock_offset(self, session, vm_ref, clock_offset): 1.105 dom = XendDomain.instance().get_vm_by_uuid(vm_ref) 1.106 - return xen_api_success_void() 1.107 + return xen_api_todo() 1.108 1.109 - def VM_set_platform_enable_audio(self, session, vm_ref): 1.110 + def VM_set_platform_enable_audio(self, session, vm_ref, enable_audio): 1.111 dom = XendDomain.instance().get_vm_by_uuid(vm_ref) 1.112 - return xen_api_success_void() 1.113 + return xen_api_todo() 1.114 1.115 def VM_set_otherConfig(self, session, vm_ref): 1.116 dom = XendDomain.instance().get_vm_by_uuid(vm_ref) 1.117 - return xen_api_success_void() 1.118 + return xen_api_todo() 1.119 1.120 # class methods 1.121 def VM_get_all(self, session):
2.1 --- a/tools/python/xen/xend/XendDomainInfo.py Thu Dec 21 14:33:37 2006 +0000 2.2 +++ b/tools/python/xen/xend/XendDomainInfo.py Thu Dec 21 14:49:19 2006 +0000 2.3 @@ -1831,8 +1831,7 @@ class XendDomainInfo: 2.4 return self.info.get('memory_dynamic_max', 0) 2.5 def get_memory_dynamic_min(self): 2.6 return self.info.get('memory_dynamic_min', 0) 2.7 - 2.8 - 2.9 + 2.10 def get_vcpus_policy(self): 2.11 sched_id = xc.sched_id_get() 2.12 if sched_id == xen.lowlevel.xc.XEN_SCHEDULER_SEDF: 2.13 @@ -1847,8 +1846,6 @@ class XendDomainInfo: 2.14 return XEN_API_VM_POWER_STATE[self.state] 2.15 def get_platform_std_vga(self): 2.16 return self.info.get('platform_std_vga', False) 2.17 - def get_platform_keymap(self): 2.18 - return '' 2.19 def get_platform_serial(self): 2.20 return self.info.get('platform_serial', '') 2.21 def get_platform_localtime(self):