Revision fbab083b

b/lib/constants.py
697 697
  ]))
698 698
# TODO: DDM_SWAP, DDM_MOVE?
699 699

  
700
# hotplug
701
HOTPLUG_DISK = "hotdisk"
702
HOTPLUG_NIC = "hotnic"
703
HOTPLUG_ADD = "hotadd"
704
HOTPLUG_REMOVE = "hotremove"
705

  
700 706
# common exit codes
701 707
EXIT_SUCCESS = 0
702 708
EXIT_FAILURE = 1
b/lib/objects.py
487 487

  
488 488
class NIC(ConfigObject):
489 489
  """Config object representing a network card."""
490
  __slots__ = ["name", "mac", "ip", "network", "nicparams", "netinfo"] + _UUID
490
  __slots__ = ["name", "mac", "ip", "network",
491
               "nicparams", "netinfo", "pci"] + _UUID
491 492

  
492 493
  @classmethod
493 494
  def CheckParameterSyntax(cls, nicparams):
......
511 512
class Disk(ConfigObject):
512 513
  """Config object representing a block device."""
513 514
  __slots__ = (["name", "dev_type", "logical_id", "physical_id",
514
                "children", "iv_name", "size", "mode", "params", "spindles"] +
515
               _UUID)
515
                "children", "iv_name", "size", "mode", "params",
516
                "spindles", "pci"] + _UUID)
516 517

  
517 518
  def CreateOnSecondary(self):
518 519
    """Test if this device needs to be created on a secondary node."""

Also available in: Unified diff