Neutron Subnet Pools with Provider Networks
Issue
- We are doing some testing with subnet pools on a shared provider network and have some questions about the functionality.
- We created a single provider network (external, shared with an external gateway of 10.0.0.1)
- We created a subnet pool with a single prefix (e.g. 10.0.0.0/24), and then created a few subnets in that subnet pool with a prefix of 28 (e.g. 10.0.0.0/28, 10.0.0.16/28 and 10.0.0.32/28)
- When creating subnets in the pool, if you pass
--gateway
to the subnet create command the gateway is ignored and instead it picks the first IP in the space. For example: 10.0.0.32/28 is the subnet CIDR, 10.0.0.33 is the allocated gateway, and 10.0.0.34-46 is the allocation pool. Is this expected or can we somehow enforce the external gateway for all subnets without having to have a second step where we replace the gateway and update the allocation pool?
Environment
- Red Hat OpenStack Platform 13.0 (RHOSP)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.