Export connected networks to IAllocator
authorThomas Thrainer <thomasth@google.com>
Thu, 16 May 2013 11:44:10 +0000 (13:44 +0200)
committerThomas Thrainer <thomasth@google.com>
Wed, 29 May 2013 07:52:38 +0000 (09:52 +0200)
commit98ae702bd3ac4a56a61d6123e25b8a93e03980d6
treee90e12c20c518763ed9f753b66415f40b8aee46c
parentd962dbf933f3032e562305a973b92e6873f77d59
Export connected networks to IAllocator

IAllocators should not put instances on nodes in nodegroups which are
not connected to the network the instance should be connected to.
Therefore, export the networks a node group is connected to to the
IAllocator, so it can account for this restriction.

Signed-off-by: Thomas Thrainer <thomasth@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/masterd/iallocator.py