def VM_get_is_a_template(self, session, ref):
return self.VM_get('is_a_template', session, ref)
+ def VM_get_auto_power_on(self, session, vm_ref):
+ return self.VM_get('auto_power_on', session, vm_ref)
+
def VM_get_memory_dynamic_max(self, session, vm_ref):
dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
return xen_api_success(dom.get_memory_dynamic_max())
dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
return xen_api_todo()
+ def VM_set_auto_power_on(self, session, vm_ref, val):
+ return self.VM_set('auto_power_on', session, vm_ref, val)
+
def VM_set_memory_dynamic_max(self, session, vm_ref, mem):
dom = XendDomain.instance().get_vm_by_uuid(vm_ref)
dom.set_memory_dynamic_max(int(mem))
'name_description': xeninfo.getName(),
'user_version': 1,
'is_a_template': xeninfo.info['is_a_template'],
- 'auto_power_on': False,
+ 'auto_power_on': xeninfo.info['auto_power_on'],
'resident_on': XendNode.instance().uuid,
'memory_static_min': xeninfo.get_memory_static_min(),
'memory_static_max': xeninfo.get_memory_static_max(),
'name_description': str,
'user_version': str,
'is_a_template': bool0,
+ 'auto_power_on': bool0,
'resident_on': str,
'memory_static_min': int, # note these are stored in bytes, not KB!
'memory_static_max': int,
'actions_after_crash': 'restart',
'actions_after_suspend': '',
'is_a_template': False,
+ 'auto_power_on': False,
'is_control_domain': False,
'features': '',
'PV_bootloader': '',