Revision 5d25b928

b/tools/cfgupgrade
44 44
options = None
45 45
args = None
46 46

  
47
# Dictionary with instance old keys, and new hypervisor keys
48
INST_HV_CHG = {
49
  'hvm_pae': constants.HV_PAE,
50
  'vnc_bind_address': constants.HV_VNC_BIND_ADDRESS,
51
  'initrd_path': constants.HV_INITRD_PATH,
52
  'hvm_nic_type': constants.HV_NIC_TYPE,
53
  'kernel_path': constants.HV_KERNEL_PATH,
54
  'hvm_acpi': constants.HV_ACPI,
55
  'hvm_cdrom_image_path': constants.HV_CDROM_IMAGE_PATH,
56
  'hvm_boot_order': constants.HV_BOOT_ORDER,
57
  'hvm_disk_type': constants.HV_DISK_TYPE,
58
  }
59

  
60
# Instance beparams changes
61
INST_BE_CHG = {
62
  'vcpus': constants.BE_VCPUS,
63
  'memory': constants.BE_MEMORY,
64
  'auto_balance': constants.BE_AUTO_BALANCE,
65
  }
66

  
67
# Field names
68
F_SERIAL = 'serial_no'
69

  
70 47

  
71 48
class Error(Exception):
72 49
  """Generic exception"""

Also available in: Unified diff