Commit e64b8beb authored by Iustin Pop's avatar Iustin Pop
Browse files

Add constants for the HV/BE parameter names

Since we don't want the string values of the parameters (e.g.
“kernel_path”) spread over the code, we introduce constants for these.

Reviewed-by: ultrotter,schreiberal
parent 16ad1a83
......@@ -252,6 +252,25 @@ INSTANCE_REBOOT_SOFT = "soft"
INSTANCE_REBOOT_HARD = "hard"
INSTANCE_REBOOT_FULL = "full"
# HV parameter names (global namespace)
HV_BOOT_ORDER = "boot_order"
HV_CDROM_IMAGE_PATH = "cdrom_image_path"
HV_NIC_TYPE = "nic_type"
HV_DISK_TYPE = "disk_type"
HV_VNC_BIND_ADDRESS = "vnc_bind_address"
HV_ACPI = "acpi"
HV_PAE = "pae"
HV_KERNEL_PATH = "kernel_path"
HV_INITRD_PATH = "initrd_path"
# BE parameter names
BE_MEMSIZE = "memory"
BE_VCPUS = "vcpus"
BE_AUTOBALANCE = "auto_balance"
# BE GROUP
BEGR_DEFAULT = "default"
# Hypervisor constants
HT_XEN_PVM = "xen-pvm"
HT_FAKE = "fake"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment