Revision 016d04b3 lib/hypervisor/hv_xen.py

b/lib/hypervisor/hv_xen.py
493 493

  
494 494
  PARAMETERS = {
495 495
    constants.HV_ACPI: hv_base.NO_CHECK,
496
    constants.HV_BOOT_ORDER: (True, ) + \
497
    (lambda x: x and len(x.strip("acdn")) == 0,
498
     "Invalid boot order specified, must be one or more of [acdn]",
499
     None, None),
496
    constants.HV_BOOT_ORDER: (True, ) +
497
      (lambda x: x and len(x.strip("acdn")) == 0,
498
       "Invalid boot order specified, must be one or more of [acdn]",
499
       None, None),
500 500
    constants.HV_CDROM_IMAGE_PATH: hv_base.OPT_FILE_CHECK,
501
    constants.HV_DISK_TYPE: \
502
    hv_base.ParamInSet(True, constants.HT_HVM_VALID_DISK_TYPES),
503
    constants.HV_NIC_TYPE: \
504
    hv_base.ParamInSet(True, constants.HT_HVM_VALID_NIC_TYPES),
501
    constants.HV_DISK_TYPE:
502
      hv_base.ParamInSet(True, constants.HT_HVM_VALID_DISK_TYPES),
503
    constants.HV_NIC_TYPE:
504
      hv_base.ParamInSet(True, constants.HT_HVM_VALID_NIC_TYPES),
505 505
    constants.HV_PAE: hv_base.NO_CHECK,
506
    constants.HV_VNC_BIND_ADDRESS: \
507
    (False, utils.IsValidIP,
508
     "VNC bind address is not a valid IP address", None, None),
506
    constants.HV_VNC_BIND_ADDRESS:
507
      (False, utils.IsValidIP,
508
       "VNC bind address is not a valid IP address", None, None),
509 509
    constants.HV_KERNEL_PATH: hv_base.REQ_FILE_CHECK,
510 510
    constants.HV_DEVICE_MODEL: hv_base.REQ_FILE_CHECK,
511 511
    }

Also available in: Unified diff