From 480bd1ad753a08ec0518cdcd810fdfdc8f02167a Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Mon, 18 Dec 2023 21:52:40 +0100 Subject: [PATCH] luci-mod-network: Restructure DHCP options DHCP logging: add logfacility Signed-off-by: Paul Donald (cherry picked from commit 6666d32e1d871cf28d693d71f0e13922f7ab8ae5) --- .../resources/view/network/dhcp.js | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js index a89935879a..9e40d142f7 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js @@ -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.')); -- 2.30.2