[neutron][ipam] how is the first subnet determined by neutron?
skaplons at redhat.com
Thu Feb 25 08:02:54 UTC 2021
Dnia środa, 24 lutego 2021 23:14:33 CET Tony Liu pisze:
> When there are multiple subnets in a provider network, FIP is always
> allocated from the "first" subnet. What I see is that, the "first" subnet
> is the subnet added as the first. Or the first subnet from "openstack
> network show".
> Is that how subnets ordered, by creation order?
> Is there any way to change this order by manipulating, like subnets table in
> I have two subnets, I want to allocate FIP from the second subnet, instead
> of the first, without clean them up and recreate them. Is that possible?
> Note, not allocate specific address, but auto allocation.
Subnets are taken from db here . As You can see in  the only priority
which is given to some of them is when subnet has got service_type configured.
All other subnets don't have any determined order. They are in the order how
they come from the DB.
If You need to create one FIP with IP from specific subnet You can do it e.g.
with command like:
openstack floating ip create --subnet <subnet-id> <network>
Principal Software Engineer
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 488 bytes
Desc: This is a digitally signed message part.
More information about the openstack-discuss