luci-mod-network: Restructure DHCP options
authorPaul Donald <newtwen@gmail.com>
Mon, 18 Dec 2023 20:52:40 +0000 (21:52 +0100)
committerPaul Donald <newtwen@gmail.com>
Sun, 28 Jan 2024 15:02:17 +0000 (16:02 +0100)
DHCP logging: add logfacility

Signed-off-by: Paul Donald <newtwen@gmail.com>
(cherry picked from commit 6666d32e1d871cf28d693d71f0e13922f7ab8ae5)

modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js

index a89935879a3db6c9840209a60f4de2e5a83c5e88..9e40d142f7789cbb8a60669cfa28803ec99b1b10 100644 (file)
@@ -301,6 +301,29 @@ return view.extend({
                        _('Log all options sent to DHCP clients and the tags used to determine them.'));
                o.optional = true;
 
+               o = s.taboption('logging', form.Value, 'logfacility',
+                       _('Log facility'),
+                       _('Set log class/facility for syslog entries.'));
+               o.optional = true;
+               o.value('KERN');
+               o.value('USER');
+               o.value('MAIL');
+               o.value('DAEMON');
+               o.value('AUTH');
+               o.value('LPR');
+               o.value('NEWS');
+               o.value('UUCP');
+               o.value('CRON');
+               o.value('LOCAL0');
+               o.value('LOCAL1');
+               o.value('LOCAL2');
+               o.value('LOCAL3');
+               o.value('LOCAL4');
+               o.value('LOCAL5');
+               o.value('LOCAL6');
+               o.value('LOCAL7');
+               o.value('-', _('stderr'));
+
                o = s.taboption('forward', form.DynamicList, 'server',
                        _('DNS forwardings'),
                        _('List of upstream resolvers to forward queries to.'));