cloudfoundry/bosh — pull request #393 by TieWei (2013-08-18 14:03:34+00:00)
Title: Check dynamic ip for idle vms

For issue https://github.com/cloudfoundry/bosh/issues/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 ok:
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).