cloudfoundry/bosh — pull request #394 by TieWei (2013-08-18 14:06:24+00:00)
Title: fix when jobs all using static ips, resource pool has to own a dynamic ip pool with the same size

when jobs all using static ips, resource pool has to own a dynamic ip pool with the same size

For issue #373
I think this might be not a good enough patch, only catch NetworkReservationNotEnoughCapacity exception (only manual network will raise this exception) and make it not throw out and set network reservation ip to nil. This will be worked because :
1, When first boot up vms for instance, the vm will using instance network reservation (reversed when bind instance network)
2, When bind instance network, the exception will still be thrown out (this is what we want)
3, When resource pool updater refill the pool, when there is not enough ip in dynamic ip pool, the ip will be set as nil and will not boot vms (the info will be logged).