Revision 31135ddd lib/backend.py

b/lib/backend.py
1581 1581
  except Exception, err:  # pylint: disable=W0703
1582 1582
    _Fail("Failed to get migration status: %s", err, exc=True)
1583 1583

  
1584
def HotAddDisk(instance, disk, dev_path, seq):
1585
  """Hot add a nic
1586

  
1587
  """
1588
  hyper = hypervisor.GetHypervisor(instance.hypervisor)
1589
  return hyper.HotAddDisk(instance, disk, dev_path, seq)
1590

  
1591
def HotDelDisk(instance, disk, seq):
1592
  """Hot add a nic
1593

  
1594
  """
1595
  hyper = hypervisor.GetHypervisor(instance.hypervisor)
1596
  return hyper.HotDelDisk(instance, disk, seq)
1597

  
1598
def HotAddNic(instance, nic, seq):
1599
  """Hot add a nic
1600

  
1601
  """
1602
  hyper = hypervisor.GetHypervisor(instance.hypervisor)
1603
  return hyper.HotAddNic(instance, nic, seq)
1604

  
1605
def HotDelNic(instance, nic, seq):
1606
  """Hot add a nic
1607

  
1608
  """
1609
  hyper = hypervisor.GetHypervisor(instance.hypervisor)
1610
  return hyper.HotDelNic(instance, nic, seq)
1611

  
1584 1612

  
1585 1613
def BlockdevCreate(disk, size, owner, on_primary, info, excl_stor):
1586 1614
  """Creates a block device for an instance.

Also available in: Unified diff