[Existing Problem]
Neutron currently does not allow for DHCP options to be set which will affect any/all mac addresses in a subnet/network, DHCP options can only be set per port aka per mac address. In order to achieve this functionality right now it requires manually setting up in a non-neutron controlled DHCP server.
This is currently a factor complicating the setup for the Ironic Inspector which requires non-mac address specific DHCP options to be set in order to inspect hardware which we don't currently know the mac addresses for, and we are running our own dnsmasq instance to provide the required functionality.
[Solution]
Provide the ability to set extra-dhcp-opt on a subnet or network in addition to ports. Options set on a network will apply to any/every machine that uses DHCP inside that network however if port has extra-dhcp-opt set then conflicting options will take priority/override the network/subnet level options for that specific mac address.
[Related]
https://blueprints.launchpad.net/neutron/+spec/dhcp-options-per-subnet
Where can I learn more about the Ironic use case? I see this: "non-mac address specific DHCP options to be set in order to inspect hardware which we don't currently know the mac addresses for ..." and I wonder about something else. Won't Neutron dhcp refuse to serve DHCP for such a request in the first place? I have a feeling that I don't understand enough about the use case. Could you provide links here where I can learn?