Revision 8a348b15 lib/backend.py
b/lib/backend.py | ||
---|---|---|
2523 | 2523 |
real_disk = _OpenRealBD(disk) |
2524 | 2524 |
result["DISK_%d_PATH" % idx] = real_disk.dev_path |
2525 | 2525 |
result["DISK_%d_ACCESS" % idx] = disk.mode |
2526 |
result["DISK_%d_UUID" % idx] = disk.uuid |
|
2527 |
if disk.name: |
|
2528 |
result["DISK_%d_NAME" % idx] = disk.name |
|
2526 | 2529 |
if constants.HV_DISK_TYPE in instance.hvparams: |
2527 | 2530 |
result["DISK_%d_FRONTEND_TYPE" % idx] = \ |
2528 | 2531 |
instance.hvparams[constants.HV_DISK_TYPE] |
... | ... | |
2535 | 2538 |
# NICs |
2536 | 2539 |
for idx, nic in enumerate(instance.nics): |
2537 | 2540 |
result["NIC_%d_MAC" % idx] = nic.mac |
2541 |
result["NIC_%d_UUID" % idx] = nic.uuid |
|
2542 |
if nic.name: |
|
2543 |
result["NIC_%d_NAME" % idx] = nic.name |
|
2538 | 2544 |
if nic.ip: |
2539 | 2545 |
result["NIC_%d_IP" % idx] = nic.ip |
2540 | 2546 |
result["NIC_%d_MODE" % idx] = nic.nicparams[constants.NIC_MODE] |
Also available in: Unified diff