1 # Copyright (C) 2010 Oregon State University et al.
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
19 OWNER_TAG
= 'gwm:owner:'
22 EMPTY_CHOICE_FIELD
= (u
'', u
'---------')
26 ('non-live','Non-Live'),
31 'C':'Master Candidate',
39 (u
'master-candidate',u
'Master Candidate'),
40 (u
'regular',u
'Regular'),
41 (u
'drained',u
'Drained'),
42 (u
'offline',u
'Offline'),
46 'C':u
'master-candidate',
54 (u
'disk', u
'Hard Disk'),
55 (u
'cdrom', u
'CD-ROM'),
56 (u
'network', u
'Network'),
61 (u
'enabled', u
'Enabled'),
62 (u
'disabled', u
'Disabled'),
69 (u
'pflash', u
'pflash'),
73 (u
'i82551',u
'i82551'),
74 (u
'i82557b',u
'i82557b'),
75 (u
'i82559er',u
'i82559er'),
82 (u
'cd', u
'Hard Disk, CD-ROM'),
83 (u
'a', u
'Floppy Drive'),
99 (u
'diskless', u
'diskless')
104 (u
'paravirtual',u
'paravirtual'),
110 (u
'routed', u
'routed'),
111 (u
'bridged', u
'bridged')
116 (u
'rtl8139',u
'rtl8139'),
117 (u
'ne2k_isa',u
'ne2k_isa'),
118 (u
'ne2k_pci',u
'ne2k_pci'),
119 (u
'paravirtual',u
'paravirtual'),
122 HV_BOOT_ORDER
= KVM_BOOT_ORDER
126 (u
'default',u
'Default'),
127 (u
'writethrough',u
'Writethrough'),
128 (u
'writeback',u
'Writeback'),
131 HV_SECURITY_MODELS
= [
140 (u
'tablet',u
'Tablet'),
143 ALL_DISK_TYPES
= HV_DISK_TYPES
+ KVM_DISK_TYPES
+ HVM_DISK_TYPES
144 ALL_NIC_TYPES
= HV_NIC_TYPES
+ KVM_NIC_TYPES
145 ALL_BOOT_ORDER
= KVM_BOOT_ORDER
+ HVM_BOOT_ORDER
148 'disk_type': HV_DISK_TYPES
+ KVM_DISK_TYPES
,
149 'nic_type': HV_NIC_TYPES
+ KVM_NIC_TYPES
,
150 'boot_order': KVM_BOOT_ORDER
,
154 'disk_type': HV_DISK_TYPES
+ HVM_DISK_TYPES
,
155 'nic_type': HV_NIC_TYPES
,
156 'boot_order': HVM_BOOT_ORDER
,
160 'disk_type': ALL_DISK_TYPES
,
161 'nic_type': ALL_NIC_TYPES
,
162 'boot_order': ALL_BOOT_ORDER
,