Unable to disable DHCP Server on interface when DNS Resolver "DHCP Registration" is enabled
Subject covers this pretty clearly I think, but I'll elaborate with my repro steps. I chose "all" for affected arch because this smells like a "universal" bug, but I'm running on amd64.
- Start with a running 2-interface system, typical WAN/LAN configuration. LAN has DHCP Server enabled, and DNS Resolver is configured with both "DHCP Registration" and "Static DHCP" options enabled. (Not sure if the "Static DHCP" matters, but that's what I had so including for completeness.)
- Now, add a new interface, I'll use the default "OPT1" name here.
- Add Static IPv4 address to OPT1.
- DHCP Server was automatically enabled for OPT1 for me. I don't like this behavior, but that might belong in another bug report? It may also be due to stale config remnants, as I have had an OPT1 interface in the past but it has been gone for quite a while.
- Attempt to disable DHCP server, and get an error that "DHCP Registration must be disabled from DNS Resolver page before disabling DHCP server". This is super confusing, since I don't want to disable DHCP Registration at all... I just want to shut off DHCP on one interface.
I was able to work-around by disabling the suggested option in DNS Resolver and Saving but not "Applying" it, then going back over to DHCP Server, disabled on OPT1 and Saved, and then went back and fixed DNS config...
I would expect to be able to disable DHCP on a single interface without DNS being upset about that and requiring other changes. I could understand it complaining if I was disabling the last DHCP pool on the system, but that was not the case here.