Revision 238da95a lib/objects.py

b/lib/objects.py
513 513

  
514 514
class NIC(ConfigObject):
515 515
  """Config object representing a network card."""
516
  __slots__ = ["mac", "ip", "network", "nicparams", "netinfo"]
516
  __slots__ = ["name", "mac", "ip", "network", "nicparams", "netinfo"] + _UUID
517 517

  
518 518
  @classmethod
519 519
  def CheckParameterSyntax(cls, nicparams):
......
536 536

  
537 537
class Disk(ConfigObject):
538 538
  """Config object representing a block device."""
539
  __slots__ = ["dev_type", "logical_id", "physical_id",
540
               "children", "iv_name", "size", "mode", "params"]
539
  __slots__ = ["name", "dev_type", "logical_id", "physical_id",
540
               "children", "iv_name", "size", "mode", "params"] + _UUID
541 541

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

Also available in: Unified diff