Commit 238da95a authored by Christos Stavrakakis's avatar Christos Stavrakakis Committed by Helga Velroyen
Browse files

Add uuid and name slots to Disk/NIC ConfigObjects

This patch adds "uuid" and "name" slots to Disk and NIC ConfigObjects.
Signed-off-by: default avatarChristos Stavrakakis <>
Signed-off-by: default avatarDimitris Aragiorgis <>
Reviewed-by: default avatarHelga Velroyen <>
parent f1a84264
......@@ -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
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."""
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment