Merge pull request #1757 from gutoandreollo/devel

Added the 'hw_interfaces' array
This commit is contained in:
Brian Coca 2015-09-14 15:08:47 -04:00
commit a0997e8940

View file

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