Revision 40edb0cc tools/move-instance
b/tools/move-instance | ||
---|---|---|
460 | 460 |
disk_template = instance["disk_template"] |
461 | 461 |
|
462 | 462 |
disks = [{ |
463 |
"size": i["size"],
|
|
464 |
"mode": i["mode"],
|
|
463 |
constants.IDISK_SIZE: i["size"],
|
|
464 |
constants.IDISK_MODE: i["mode"],
|
|
465 | 465 |
} for i in instance["disks"]] |
466 | 466 |
|
467 | 467 |
nics = [{ |
468 |
"ip": ip,
|
|
469 |
"mac": mac,
|
|
470 |
"mode": mode,
|
|
471 |
"link": link,
|
|
468 |
constants.INIC_IP: ip,
|
|
469 |
constants.INIC_MAC: mac,
|
|
470 |
constants.INIC_MODE: mode,
|
|
471 |
constants.INIC_LINK: link,
|
|
472 | 472 |
} for ip, mac, mode, link in instance["nics"]] |
473 | 473 |
|
474 | 474 |
# TODO: Should this be the actual up/down status? (run_state) |
Also available in: Unified diff