Open cmeissner opened 4 years ago
Hi, I would like to try and fix this and some other issues when parsing the dhcp-range lines in dnsmasq.conf (e.g. multiple subnets, static subnets, etc.). I already have a small patch for static subnets, but I would like to also add support for multiple subnets (I see it's marked 'TODO' in the code). @ananace could you point me to the proper foreman-proxy API documentation?
P.S. sorry, I see that you already started to work on these issues in a separate branch.
I don't know if there's any proper API documentation available for the development case, the only documentation I'm aware of is focused more on the use of the smart-proxy. (https://projects.theforeman.org/projects/smart-proxy/wiki)
I unfortunately never really got my own work in the regard finished either, as I could only find very minimal synthetic configuration to base off of, which meant a whole lot of assumptions having to be made.
You're definitely more than welcome to take my code and continue with that if you want to base your development on something, especially if you have some actual configuration which you can use as development/testing data.
We use dnsmasq as DHCP server and want to configure it via foreman smart-proxy. We configured the dhcp feature with the following
dhcpopts.conf
file which we places in/etc/dnsmasq.d
directory.The dhcp_dnsmasq smart proxy configuration looks as followed.
I we now try to get a list of subnets from smart proxy we this output.
And in
proxy.log
we see the following trace.Configuration of
dnsmasq
seems to be ok.