"disabled" is the default dhcpv4 option in odhcpd.
Which has the same effect as not defining it.
Using '' will prevent unnecessary parameters from being written to the flash.
Link https://github.com/openwrt/odhcpd/blob/master/README.md
Signed-off-by: Andy Chiang <redacted>
so = ss.taboption('ipv4', form.RichListValue, 'dhcpv4', _('DHCPv4 Service'),
_('Enable or disable DHCPv4 services on this interface.'));
so.optional = true;
- so.value('disabled', _('disabled'),
+ so.value('', _('disabled'),
_('Do not provide DHCPv4 services on this interface.'));
so.value('server', _('enabled'),
_('Provide DHCPv4 services on this interface.'));