Revision 5b49ed09

b/lib/constants.py
822 822
# Node info keys
823 823
HV_NODEINFO_KEY_VERSION = "hv_version"
824 824

  
825
# Hypervisor state
826
HVST_MEMORY_TOTAL = "mem_total"
827
HVST_MEMORY_NODE = "mem_node"
828
HVST_MEMORY_HV = "mem_hv"
829
HVST_CPU_TOTAL = "cpu_total"
830
HVST_CPU_NODE = "cpu_node"
831

  
832
HVSTS_PARAMETER_TYPES = {
833
  HVST_MEMORY_TOTAL: VTYPE_INT,
834
  HVST_MEMORY_NODE: VTYPE_INT,
835
  HVST_MEMORY_HV: VTYPE_INT,
836
  HVST_CPU_TOTAL: VTYPE_INT,
837
  HVST_CPU_NODE: VTYPE_INT,
838
  }
839

  
840
HVSTS_PARAMETERS = frozenset(HVSTS_PARAMETER_TYPES.keys())
841

  
842
# Disk state
843
DS_DISK_TOTAL = "disk_total"
844
DS_DISK_RESERVED = "disk_reserved"
845
DS_DISK_OVERHEAD = "disk_overhead"
846

  
847
DSS_PARAMETER_TYPES = {
848
  DS_DISK_TOTAL: VTYPE_INT,
849
  DS_DISK_RESERVED: VTYPE_INT,
850
  DS_DISK_OVERHEAD: VTYPE_INT,
851
  }
852

  
853
DSS_PARAMETERS = frozenset(DSS_PARAMETER_TYPES.keys())
854

  
825 855
# Backend parameter names
826 856
BE_MEMORY = "memory"
827 857
BE_VCPUS = "vcpus"
b/lib/objects.py
982 982
    "vm_capable",
983 983
    "ndparams",
984 984
    "powered",
985
    "hv_state",
986
    "disk_state",
985 987
    ] + _TIMESTAMPS + _UUID
986 988

  
987 989
  def UpgradeConfig(self):

Also available in: Unified diff