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>
Thu, 25 Jan 2024 23:57:24 +0000 (00:57 +0100)
DHCP logging: add logfacility

Signed-off-by: Paul Donald <newtwen@gmail.com>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js

index f5b2c0d7dd640ae8035ccc65736834a6d4906c64..ac282209e722ec9cb267878e2f1e654141ca1ff8 100644 (file)
@@ -370,6 +370,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'),
                        _('Forward specific domain queries to specific upstream servers.'));