Revision bbc4783a lib/backend.py
b/lib/backend.py | ||
---|---|---|
1550 | 1550 |
except Exception, err: # pylint: disable=W0703 |
1551 | 1551 |
_Fail("Failed to get migration status: %s", err, exc=True) |
1552 | 1552 |
|
1553 |
def HotAddDisk(instance, disk, dev_path, seq): |
|
1554 |
"""Hot add a nic |
|
1555 |
|
|
1556 |
""" |
|
1557 |
hyper = hypervisor.GetHypervisor(instance.hypervisor) |
|
1558 |
return hyper.HotAddDisk(instance, disk, dev_path, seq) |
|
1559 |
|
|
1560 |
def HotDelDisk(instance, disk, seq): |
|
1561 |
"""Hot add a nic |
|
1562 |
|
|
1563 |
""" |
|
1564 |
hyper = hypervisor.GetHypervisor(instance.hypervisor) |
|
1565 |
return hyper.HotDelDisk(instance, disk, seq) |
|
1566 |
|
|
1567 |
def HotAddNic(instance, nic, seq): |
|
1568 |
"""Hot add a nic |
|
1569 |
|
|
1570 |
""" |
|
1571 |
hyper = hypervisor.GetHypervisor(instance.hypervisor) |
|
1572 |
return hyper.HotAddNic(instance, nic, seq) |
|
1573 |
|
|
1574 |
def HotDelNic(instance, nic, seq): |
|
1575 |
"""Hot add a nic |
|
1576 |
|
|
1577 |
""" |
|
1578 |
hyper = hypervisor.GetHypervisor(instance.hypervisor) |
|
1579 |
return hyper.HotDelNic(instance, nic, seq) |
|
1580 |
|
|
1553 | 1581 |
|
1554 | 1582 |
def BlockdevCreate(disk, size, owner, on_primary, info, excl_stor): |
1555 | 1583 |
"""Creates a block device for an instance. |
Also available in: Unified diff