ia64/xen-unstable

view tools/python/xen/xend/XendAPIConstants.py @ 12725:36fe7ca48e54

Tidy up the creation of directories that Xend needs. This avoids potential
races in this creation.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Fri Dec 01 11:32:32 2006 +0000 (2006-12-01)
parents 58521d4b7c7b
children b2ea5ae25a26
line source
1 #============================================================================
2 # This library is free software; you can redistribute it and/or
3 # modify it under the terms of version 2.1 of the GNU Lesser General Public
4 # License as published by the Free Software Foundation.
5 #
6 # This library is distributed in the hope that it will be useful,
7 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9 # Lesser General Public License for more details.
10 #
11 # You should have received a copy of the GNU Lesser General Public
12 # License along with this library; if not, write to the Free Software
13 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14 #============================================================================
15 # Copyright (C) 2006 XenSource Ltd.
16 #============================================================================
18 #
19 # Xen API Enums
20 #
22 XEN_API_VM_POWER_STATE = [
23 'Halted',
24 'Paused',
25 'Running',
26 'Suspended',
27 'ShuttingDown',
28 'Unknown'
29 ]
31 XEN_API_VM_POWER_STATE_HALTED = 0
32 XEN_API_VM_POWER_STATE_PAUSED = 1
33 XEN_API_VM_POWER_STATE_RUNNING = 2
34 XEN_API_VM_POWER_STATE_SUSPENDED = 3
35 XEN_API_VM_POWER_STATE_SHUTTINGDOWN = 4
36 XEN_API_VM_POWER_STATE_UNKNOWN = 5
38 XEN_API_CPU_FEATURE = [
39 'FPU', 'VME', 'DE', 'PSE', 'TSC', 'MSR', 'PAE'
40 'MCE', 'CX8', 'APIC', 'SEP', 'MTRR', 'PGE', 'MCA',
41 'CMOV', 'PAT', 'PSE36', 'PN', 'CLFLSH', 'DTES',
42 'ACPI', 'MMX', 'FXCR', 'XMM', 'XMM2', 'SELFSNOOP',
43 'HT', 'ACC', 'IA64', 'SYSCALL', 'MP', 'NX', 'MMXEXT',
44 'LM', '3DNOWEXT', '3DNOW', 'RECOVERY', 'LONGRUN',
45 'LRTI', 'CXMMX', 'K6_MTRR', 'CYRIX_ARR', 'CENTAUR_MCR',
46 'K8', 'K7', 'P3', 'P4', 'CONSTANT_TSC', 'FXSAVE_LEAK',
47 'XMM3', 'MWAIT', 'DSCPL', 'EST', 'TM2', 'CID', 'CX16',
48 'XTPR', 'XSTORE', 'XSTORE_EN', 'XCRYPT', 'XCRYPT_EN',
49 'LAHF_LM', 'CMP_LEGACY'
50 ]
52 XEN_API_ON_NORMAL_EXIT = [
53 'destroy',
54 'restart',
55 ]
57 XEN_API_ON_CRASH_BEHAVIOUR = [
58 'destroy',
59 'coredump_and_destroy',
60 'restart',
61 'coredump_and_restart',
62 'preserve',
63 'rename_restart'
64 ]
66 XEN_API_BOOT_TYPE = [
67 'bios',
68 'grub',
69 'kernel_external',
70 'kernel_internal'
71 ]
73 XEN_API_VBD_MODE = ['RO', 'RW']
74 XEN_API_VDI_TYPE = ['system', 'user', 'ephemeral']
75 XEN_API_DRIVER_TYPE = ['ioemu', 'paravirtualised']