Fix Kuryr to create the default subnets and return allocated CIDRs
Previously Kuryr queried the subnets with the names of the subnetpools
and therefore it always concluded there was no default subnet and
created a new one.
This patch fixes that behaviour and makes Kurry create new default
subnets associating them with the pre-defined subnetpools which names
would be given in the config file if they don't exit yet. If they exist,
Kuryr reuse them.
This patch also fixes Kuryr to return CIDRs combining the subnet CIDRs
with the IP addresses allocated by Neutorn's IPAM. This covers the case
none of Address and AddressIPv6 is given in the request.
Reviewed: https:/ /review. openstack. org/224567 /git.openstack. org/cgit/ openstack/ kuryr/commit/ ?id=28f356990be b8c28eed4b9d4da 88c0915f47c1b3
Committed: https:/
Submitter: Jenkins
Branch: master
commit 28f356990beb8c2 8eed4b9d4da88c0 915f47c1b3
Author: Taku Fukushima <email address hidden>
Date: Thu Sep 17 19:14:41 2015 +0900
Fix Kuryr to create the default subnets and return allocated CIDRs
Previously Kuryr queried the subnets with the names of the subnetpools
and therefore it always concluded there was no default subnet and
created a new one.
This patch fixes that behaviour and makes Kurry create new default
subnets associating them with the pre-defined subnetpools which names
would be given in the config file if they don't exit yet. If they exist,
Kuryr reuse them.
This patch also fixes Kuryr to return CIDRs combining the subnet CIDRs
with the IP addresses allocated by Neutorn's IPAM. This covers the case
none of Address and AddressIPv6 is given in the request.
Change-Id: If15e2509fdb285 99cd5e9a0d21464 bc97ea2dcb1
Signed-off-by: Taku Fukushima <email address hidden>
Closes-Bug: #1496284