| 49 | |
| 50 | That being said I have a working protoype: |
| 51 | {{{ |
| 52 | ssugrim@external2:~/scripts$ ruby gatherer.rb |
| 53 | ssugrim@external2:~/scripts$ more /tmp/external2.xml |
| 54 | <external2> |
| 55 | <ip_adds> |
| 56 | <10.50.0.12 iface='eth1' host='external2.orbit-lab.org'/> |
| 57 | <127.0.0.1 iface='' host=''/> |
| 58 | </ip_adds> |
| 59 | <motherboard mem_size='1048512' disk_size='156301488' cpu_num='4'/> |
| 60 | <Devices> |
| 61 | <pci> |
| 62 | <eth0 device='1229' bus_add='01:03.0' mac='00:e0:81:26:70:16' str='Ethernet controller: Intel Corporation 82546EB Gigabit Ethernet Controller (Copper) (rev 01)' vendor='8086'/> |
| 63 | <eth1 device='1010' bus_add='04:01.0' mac='00:e0:81:26:76:9c' str='Ethernet controller: Intel Corporation 82546EB Gigabit Ethernet Controller (Copper) (rev 01)' vendor='8086'/> |
| 64 | <eth2 device='1010' bus_add='04:01.1' mac='00:e0:81:26:76:9d' str='Ethernet controller: Intel Corporation 82546EB Gigabit Ethernet Controller (Copper) (rev 01)' vendor='8086'/> |
| 65 | </pci> |
| 66 | <usb> |
| 67 | <0 device='0001' bus_add='001:001' str='Linux Foundation 1.1 root hub' vendor='1d6b'/> |
| 68 | </usb> |
| 69 | </Devices> |
| 70 | </external2> |
| 71 | ssugrim@external2:~/scripts$ |
| 72 | }}} |