Revision 70141765 lib/objects.py

b/lib/objects.py
506 506

  
507 507
class NIC(ConfigObject):
508 508
  """Config object representing a network card."""
509
  __slots__ = ["mac", "ip", "network", "nicparams", "netinfo"]
509
  __slots__ = ["name", "mac", "ip", "network", "nicparams", "netinfo"] + _UUID
510 510

  
511 511
  @classmethod
512 512
  def CheckParameterSyntax(cls, nicparams):
......
529 529

  
530 530
class Disk(ConfigObject):
531 531
  """Config object representing a block device."""
532
  __slots__ = ["dev_type", "logical_id", "physical_id",
533
               "children", "iv_name", "size", "mode", "params"]
532
  __slots__ = ["name", "dev_type", "logical_id", "physical_id",
533
               "children", "iv_name", "size", "mode", "params"] + _UUID
534 534

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

Also available in: Unified diff