diff --git a/lib/objects.py b/lib/objects.py index e5023ecea5a02fccbb3981cb408fb7698a2f8596..9be79acba12be599564984e7b9f2a59442cd53a2 100644 --- a/lib/objects.py +++ b/lib/objects.py @@ -513,7 +513,7 @@ class ConfigData(ConfigObject): class NIC(ConfigObject): """Config object representing a network card.""" - __slots__ = ["mac", "ip", "network", "nicparams", "netinfo"] + __slots__ = ["name", "mac", "ip", "network", "nicparams", "netinfo"] + _UUID @classmethod def CheckParameterSyntax(cls, nicparams): @@ -536,8 +536,8 @@ class NIC(ConfigObject): class Disk(ConfigObject): """Config object representing a block device.""" - __slots__ = ["dev_type", "logical_id", "physical_id", - "children", "iv_name", "size", "mode", "params"] + __slots__ = ["name", "dev_type", "logical_id", "physical_id", + "children", "iv_name", "size", "mode", "params"] + _UUID def CreateOnSecondary(self): """Test if this device needs to be created on a secondary node."""