Commit 634d30f4 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

objects.Node: Add static hv/disk state


Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent 18bf85b1
......@@ -990,7 +990,14 @@ class OS(ConfigObject):
class Node(TaggableObject):
"""Config object representing a node."""
"""Config object representing a node.
@ivar hv_state: Hypervisor state (e.g. number of CPUs)
@ivar hv_state_static: Hypervisor state overriden by user
@ivar disk_state: Disk state (e.g. free space)
@ivar disk_state_static: Disk state overriden by user
"""
__slots__ = [
"name",
"primary_ip",
......@@ -1005,7 +1012,9 @@ class Node(TaggableObject):
"ndparams",
"powered",
"hv_state",
"hv_state_static",
"disk_state",
"disk_state_static",
] + _TIMESTAMPS + _UUID
def UpgradeConfig(self):
......
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