ia64/xen-unstable

view tools/python/xen/xend/XendAPIConstants.py @ 13825:c3c7119a6178

Remove some obsolete constants (XEN_API_DRIVER_TYPE, XEN_API_BOOT_TYPE).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Fri Feb 02 10:03:21 2007 +0000 (2007-02-02)
parents d794356ad7ff
children dc32de8329eb
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-2007 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_ON_NORMAL_EXIT = [
39 'destroy',
40 'restart',
41 ]
43 XEN_API_ON_CRASH_BEHAVIOUR = [
44 'destroy',
45 'coredump_and_destroy',
46 'restart',
47 'coredump_and_restart',
48 'preserve',
49 'rename_restart'
50 ]
52 XEN_API_VBD_MODE = ['RO', 'RW']
53 XEN_API_VDI_TYPE = ['system', 'user', 'ephemeral']
54 XEN_API_VBD_TYPE = ['CD', 'Disk']
55 XEN_API_TASK_STATUS_TYPE = ['pending', 'success', 'failure']
56 XEN_API_CONSOLE_PROTOCOL = ['vt100', 'rfb', 'rdp']