Merge pull request #1757 from gutoandreollo/devel

Added the 'hw_interfaces' array
reviewable/pr18780/r1
Brian Coca 9 years ago
commit a0997e8940

@ -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

Loading…
Cancel
Save