Revision d08f6067 lib/hypervisor/hv_xen.py
b/lib/hypervisor/hv_xen.py | ||
---|---|---|
617 | 617 |
if nic_type is None: |
618 | 618 |
# ensure old instances don't change |
619 | 619 |
nic_type_str = ", type=ioemu" |
620 |
elif nic_type == constants.HT_HVM_DEV_PARAVIRTUAL:
|
|
620 |
elif nic_type == constants.HT_NIC_PARAVIRTUAL:
|
|
621 | 621 |
nic_type_str = ", type=paravirtualized" |
622 | 622 |
else: |
623 | 623 |
nic_type_str = ", model=%s, type=ioemu" % nic_type |
... | ... | |
632 | 632 |
disk_data = cls._GetConfigFileDiskData(instance.disk_template, |
633 | 633 |
block_devices) |
634 | 634 |
disk_type = instance.hvparams[constants.HV_DISK_TYPE] |
635 |
if disk_type in (None, constants.HT_HVM_DEV_IOEMU):
|
|
635 |
if disk_type in (None, constants.HT_DISK_IOEMU):
|
|
636 | 636 |
replacement = ",ioemu:hd" |
637 | 637 |
else: |
638 | 638 |
replacement = ",hd" |
Also available in: Unified diff