Closed dav-pascual closed 1 year ago
Another note: I went with the most flexible solution, that is, The amount of IPs available for provisioning will be the sum of the available IPs in the provided subnets.
I added changes that I reviewed with @Tiboris I remade can_provision function algorith so now it's possible to specifiy subnets either in metadata or provisioning config, and ip availabilities info from the AWS is saved to a data structure, so it's not necessary to call the API more than once.. I left code comments that should be explanatory of the code.
Thanks for the patience all the changes and the feature. lets merge this @dav-pascual !
Thanks for your feedback and review!! @Tiboris :)
Signed-off-by: David Pascual davherna@redhat.com