Hoplug: objects modifications/additions
authorDimitris Aragiorgis <dimara@grnet.gr>
Thu, 9 Aug 2012 10:54:18 +0000 (13:54 +0300)
committerDimitris Aragiorgis <dimara@grnet.gr>
Wed, 22 Aug 2012 14:12:10 +0000 (17:12 +0300)
commit41a1df349f8cd1c2efb97be3a4609e3498e78051
treea09fe92d6b2264f7532b656f63433b66e9fdf3c5
parent6a3166cb3a5699ec6299f4997f4fbd27669da500
Hoplug: objects modifications/additions

Introduce new HotplugInfo object as part of Instance object.

hotplug_info { 'nics': 0, 'disks': 0, 'pci_pool': [16, 17, 18] }

nics/disks is an index used for device identification and naming.
Everytime a new device (disk/nic) is hotadded these values get incremented.

pci_pool is a list of pci slots where a device can be placed. Every
time a device gets hot-plugged/unplugged a pci slot gets popped/appended.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
lib/objects.py