|
|
@ -1180,6 +1180,7 @@ def gather_facts(vm):
|
|
|
|
'hw_product_uuid': vm.properties.config.uuid,
|
|
|
|
'hw_product_uuid': vm.properties.config.uuid,
|
|
|
|
'hw_processor_count': vm.properties.config.hardware.numCPU,
|
|
|
|
'hw_processor_count': vm.properties.config.hardware.numCPU,
|
|
|
|
'hw_memtotal_mb': vm.properties.config.hardware.memoryMB,
|
|
|
|
'hw_memtotal_mb': vm.properties.config.hardware.memoryMB,
|
|
|
|
|
|
|
|
'hw_interfaces':[],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
netInfo = vm.get_property('net')
|
|
|
|
netInfo = vm.get_property('net')
|
|
|
|
netDict = {}
|
|
|
|
netDict = {}
|
|
|
@ -1202,6 +1203,7 @@ def gather_facts(vm):
|
|
|
|
'macaddress_dash': entry.macAddress.replace(':', '-'),
|
|
|
|
'macaddress_dash': entry.macAddress.replace(':', '-'),
|
|
|
|
'summary': entry.deviceInfo.summary,
|
|
|
|
'summary': entry.deviceInfo.summary,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
facts['hw_interfaces'].append('eth'+str(ifidx))
|
|
|
|
|
|
|
|
|
|
|
|
ifidx += 1
|
|
|
|
ifidx += 1
|
|
|
|
|
|
|
|
|
|
|
|