'Return a dict, keyed by resource class, of inventory information for
the supplied node.'

def get_inventory(self, nodename):

    disk_gb = int(self._get_local_gb_info()['total'])
    memory_mb = int(self._host.get_memory_mb_total())
    vcpus = self._get_vcpu_total()
    result = {fields.ResourceClass.VCPU: {'total': vcpus, 'min_unit': 1, 'max_unit': vcpus, 'step_size': 1}, fields.ResourceClass.MEMORY_MB: {'total': memory_mb, 'min_unit': 1, 'max_unit': memory_mb, 'step_size': 1}, fields.ResourceClass.DISK_GB: {'total': disk_gb, 'min_unit': 1, 'max_unit': disk_gb, 'step_size': 1}}
    return result
