luci-mod-network: Fixes for PXE/TFTP tab.
Signed-off-by: Paul Donald <newtwen@gmail.com>
This commit is contained in:
parent
c72edbe01a
commit
0c27557ab5
1 changed files with 8 additions and 6 deletions
|
@ -755,6 +755,7 @@ return view.extend({
|
||||||
ss = o.subsection;
|
ss = o.subsection;
|
||||||
ss.addremove = true;
|
ss.addremove = true;
|
||||||
ss.anonymous = true;
|
ss.anonymous = true;
|
||||||
|
ss.modaltitle = _('Edit PXE/TFTP/BOOTP Host');
|
||||||
ss.nodescriptions = true;
|
ss.nodescriptions = true;
|
||||||
|
|
||||||
so = ss.option(form.Value, 'filename',
|
so = ss.option(form.Value, 'filename',
|
||||||
|
@ -777,19 +778,20 @@ return view.extend({
|
||||||
|
|
||||||
so = ss.option(form.DynamicList, 'dhcp_option',
|
so = ss.option(form.DynamicList, 'dhcp_option',
|
||||||
_('DHCP Options'),
|
_('DHCP Options'),
|
||||||
_('Options for the Network-ID. (Note: needs also Network-ID.) E.g. "<code>42,192.168.1.4</code>" for NTP server, "<code>3,192.168.4.4</code>" for default route. <code>0.0.0.0</code> means "the address of the system running dnsmasq".'));
|
_('Additional options to send to the below match tags.') + '<br />' +
|
||||||
|
_('%s means "the address of the system running dnsmasq".').format('<code>0.0.0.0</code>'));
|
||||||
so.optional = true;
|
so.optional = true;
|
||||||
so.placeholder = '42,192.168.1.4';
|
so.placeholder = 'option:root-path,192.168.1.2:/data/netboot/root';
|
||||||
|
|
||||||
so = ss.option(widgets.DeviceSelect, 'networkid',
|
so = ss.option(form.Value, 'networkid',
|
||||||
_('Network-ID'),
|
_('Match this Tag'),
|
||||||
_('Apply DHCP Options to this net. (Empty = all clients).'));
|
_('Only DHCP Clients with this tag are sent this boot option.'));
|
||||||
so.optional = true;
|
so.optional = true;
|
||||||
so.noaliases = true;
|
so.noaliases = true;
|
||||||
|
|
||||||
so = ss.option(form.Flag, 'force',
|
so = ss.option(form.Flag, 'force',
|
||||||
_('Force'),
|
_('Force'),
|
||||||
_('Always send DHCP Options. Sometimes needed, with e.g. PXELinux.'));
|
_('Always send the chosen DHCP options. Sometimes needed, with e.g. PXELinux.'));
|
||||||
so.optional = true;
|
so.optional = true;
|
||||||
|
|
||||||
so = ss.option(form.Value, 'instance',
|
so = ss.option(form.Value, 'instance',
|
||||||
|
|
Loading…
Reference in a new issue