Revision 6b614440
b/lib/hypervisor/hv_kvm.py | ||
---|---|---|
2041 | 2041 |
kvm_device = _RUNTIME_DEVICE[dev_type](entry) |
2042 | 2042 |
kvm_devid = _GenerateDeviceKVMId(dev_type, kvm_device) |
2043 | 2043 |
if dev_type == constants.HOTPLUG_TARGET_DISK: |
2044 |
command = "device_del %s" % kvm_devid |
|
2044 |
command = "device_del %s\n" % kvm_devid |
|
2045 |
command += "drive_del %s" % kvm_devid |
|
2045 | 2046 |
elif dev_type == constants.HOTPLUG_TARGET_NIC: |
2046 | 2047 |
command = "device_del %s\n" % kvm_devid |
2047 | 2048 |
command += "netdev_del %s" % kvm_devid |
Also available in: Unified diff