Revision 34fbc862 lib/hypervisor/hv_kvm.py

b/lib/hypervisor/hv_kvm.py
1541 1541
  def GetNodeInfo(self):
1542 1542
    """Return information about the node.
1543 1543

  
1544
    This is just a wrapper over the base GetLinuxNodeInfo method.
1545

  
1546 1544
    @return: a dict with the following keys (values in MiB):
1547 1545
          - memory_total: the total memory size on the node
1548 1546
          - memory_free: the available memory on the node for instances
1549 1547
          - memory_dom0: the memory used by the node itself, if available
1548
          - hv_version: the hypervisor version in the form (major, minor,
1549
                        revision)
1550 1550

  
1551 1551
    """
1552
    return self.GetLinuxNodeInfo()
1552
    result = self.GetLinuxNodeInfo()
1553
    _, v_major, v_min, v_rev = self._GetKVMVersion()
1554
    result[constants.HV_NODEINFO_KEY_VERSION] = (v_major, v_min, v_rev)
1555
    return result
1553 1556

  
1554 1557
  @classmethod
1555 1558
  def GetInstanceConsole(cls, instance, hvparams, beparams):

Also available in: Unified diff