luci-mod-network: DHCP tab IPsets ( add NFTsets properties )

See also:

d7f378796f

Signed-off-by: Paul Donald <newtwen@gmail.com>
This commit is contained in:
Paul Donald 2023-11-18 16:56:27 +01:00
parent c668d992e1
commit f98ce31fdb

View file

@ -822,22 +822,41 @@ return view.extend({
});
o = s.taboption('ipsets', form.SectionValue, '__ipsets__', form.GridSection, 'ipset', null,
_('List of IP sets to populate with the IPs of DNS lookup results of the FQDNs also specified here.'));
_('List of IP sets to populate with the IPs of DNS lookup results of the FQDNs also specified here.') + '<br />' +
_('The netfilter components below are only regarded when running fw4.'));
ss = o.subsection;
ss.addremove = true;
ss.anonymous = true;
ss.sortable = true;
ss.rowcolors = true;
ss.nodescriptions = true;
ss.modaltitle = _('Edit IP set');
so = ss.option(form.DynamicList, 'name', _('IP set'));
so = ss.option(form.DynamicList, 'name', _('Name of the set'));
so.rmempty = false;
so.editable = true;
so.datatype = 'string';
so = ss.option(form.DynamicList, 'domain', _('Domain'));
so = ss.option(form.DynamicList, 'domain', _('FQDN'));
so.rmempty = false;
so.editable = true;
so.datatype = 'hostname';
so = ss.option(form.Value, 'table', _('Netfilter table name'), _('Defaults to fw4.'));
so.editable = true;
so.placeholder = 'fw4';
so.rmempty = true;
so = ss.option(form.ListValue, 'table_family', _('Table IP family'), _('Defaults to IPv4+6.') + ' ' + _('Can be hinted by adding 4 or 6 to the name.') + '<br />' +
_('Adding an IPv6 to an IPv4 set and vice-versa silently fails.'));
so.editable = true;
so.rmempty = true;
so.value('inet', _('IPv4+6'));
so.value('ip', _('IPv4'));
so.value('ip6', _('IPv6'));
o = s.taboption('leases', form.SectionValue, '__leases__', form.GridSection, 'host', null,
_('Static leases are used to assign fixed IP addresses and symbolic hostnames to DHCP clients. They are also required for non-dynamic interface configurations where only hosts with a corresponding lease are served.') + '<br /><br />' +
_('Use the <em>Add</em> Button to add a new lease entry. The <em>MAC address</em> identifies the host, the <em>IPv4 address</em> specifies the fixed address to use, and the <em>Hostname</em> is assigned as a symbolic name to the requesting host. The optional <em>Lease time</em> can be used to set non-standard host-specific lease time, e.g. 12h, 3d or infinite.') + '<br /><br />' +