luci-app-strongswan-swanctl: rename dpdaction to dpd_action, drop "none"

Update form field to match the renamed 'dpd_action' uci option.
Remove the 'none' choice from the dropdown, since it has no swanctl
equivalent and is no longer accepted by the backend. If nothing is
specified, 'clear' is used by default in strongswan. Therefore, this is
not included in the configuration.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert authored and Florian Eckert committed 2026-09-30 11:58:57 +02:00
1 parent 0260cfbeb5
commit 12f6888abc
1 file changed
+4 -3
@@ -359,12 +359,13 @@ return view.extend({
o.datatype = 'file';
o.modalonly = true;
o = s.taboption('advanced', form.ListValue, 'dpdaction', _('DPD Action'),
o = s.taboption('advanced', form.ListValue, 'dpd_action', _('DPD Action'),
_('Action when DPD timeout occurs'));
o.value('none');
o.value('clear');
o.value('', '%s (%s)'.format('clear', _('default')));
o.value('trap');
o.value('start');
o.default = 'clear';
o.rmempty = true;
o.optional = true;
o.modalonly = true;