Revision history [back]

There is an undocumented process to reserve IP addresses for use by DHCP servers. It works by creating port with the desired IP and a device owner of reserved_dhcp_port."

openstack port create dhcp-port1 --network <network UUID> --fixed-ip subnet=<subnet UUID>,ip-address= --device reserved_dhcp_port

You can either create the port prior to enabling DHCP on the subnet or delete an existing DHCP port after creating the reserved port. In either case, Neutron should utilize the reserved port on subsequent DHCP agent creation.

For understanding from the code have a look at

This will give you a more concrete answer.

I hope that helps !!