Revision e1d2aa39 scripts/gnt-backup
b/scripts/gnt-backup | ||
---|---|---|
28 | 28 |
from ganeti import constants |
29 | 29 |
|
30 | 30 |
|
31 |
_VALUE_TRUE = "true" |
|
32 |
|
|
31 | 33 |
def PrintExportList(opts, args): |
32 | 34 |
"""Prints a list of all the exported system images. |
33 | 35 |
|
... | ... | |
101 | 103 |
wait_for_sync=opts.wait_for_sync, mac="auto", |
102 | 104 |
file_storage_dir=opts.file_storage_dir, |
103 | 105 |
file_driver=opts.file_driver, |
104 |
iallocator=opts.iallocator) |
|
106 |
iallocator=opts.iallocator, |
|
107 |
auto_balance=auto_balance, |
|
108 |
hvm_boot_order=opts.hvm_boot_order, |
|
109 |
hvm_acpi=opts.hvm_acpi, |
|
110 |
hvm_nic_type=opts.hvm_nic_type, |
|
111 |
hvm_disk_type=opts.hvm_disk_type, |
|
112 |
hvm_pae=opts.hvm_pae, |
|
113 |
hvm_cdrom_image_path=opts.hvm_cdrom_image_path, |
|
114 |
vnc_bind_address=opts.vnc_bind_address) |
|
115 |
|
|
105 | 116 |
SubmitOpCode(op) |
106 | 117 |
return 0 |
107 | 118 |
|
... | ... | |
167 | 178 |
metavar="<DIR>"), |
168 | 179 |
make_option("--file-driver", dest="file_driver", help="Driver to use" |
169 | 180 |
" for image files", default="loop", metavar="<DRIVER>"), |
181 |
make_option("--hvm-boot-order", dest="hvm_boot_order", |
|
182 |
help="Boot device order for HVM (one or more of [acdn])", |
|
183 |
default=None, type="string", metavar="<BOOTORDER>"), |
|
184 |
make_option("--hvm-acpi", dest="hvm_acpi", |
|
185 |
help="ACPI support for HVM (true|false)", |
|
186 |
metavar="<BOOL>", choices=["true", "false"]), |
|
187 |
make_option("--hvm-nic-type", dest="hvm_nic_type", |
|
188 |
help="Type of virtual NIC for HVM " |
|
189 |
"(rtl8139,ne2k_pci,ne2k_isa,paravirtual)", |
|
190 |
metavar="NICTYPE", choices=[constants.HT_HVM_NIC_RTL8139, |
|
191 |
constants.HT_HVM_NIC_NE2K_PCI, |
|
192 |
constants.HT_HVM_NIC_NE2K_ISA, |
|
193 |
constants.HT_HVM_DEV_PARAVIRTUAL], |
|
194 |
default=constants.HT_HVM_NIC_RTL8139), |
|
195 |
make_option("--hvm-disk-type", dest="hvm_disk_type", |
|
196 |
help="Type of virtual disks for HVM (ioemu,paravirtual)", |
|
197 |
metavar="DISKTYPE", choices=[constants.HT_HVM_DEV_IOEMU, |
|
198 |
constants.HT_HVM_DEV_PARAVIRTUAL], |
|
199 |
default=constants.HT_HVM_DEV_IOEMU,), |
|
200 |
make_option("--hvm-pae", dest="hvm_pae", |
|
201 |
help="PAE support for HVM (true|false)", |
|
202 |
metavar="<BOOL>", choices=["true", "false"]), |
|
203 |
make_option("--hvm-cdrom-image-path", dest="hvm_cdrom_image_path", |
|
204 |
help="CDROM image path for HVM (absolute path or None)", |
|
205 |
default=None, type="string", metavar="<CDROMIMAGE>"), |
|
206 |
make_option("--vnc-bind-address", dest="vnc_bind_address", |
|
207 |
help="bind address for VNC (IP address)", |
|
208 |
default=None, type="string", metavar="<VNCADDRESS>"), |
|
170 | 209 |
] |
171 | 210 |
|
172 | 211 |
commands = { |
Also available in: Unified diff