2020-02-20 11:04:12 +00:00
|
|
|
'use strict';
|
2020-04-03 08:00:06 +00:00
|
|
|
'require baseclass';
|
2020-02-20 11:04:12 +00:00
|
|
|
'require form';
|
|
|
|
'require tools.widgets as widgets';
|
|
|
|
|
2020-04-03 08:00:06 +00:00
|
|
|
return baseclass.extend({
|
2020-04-28 13:59:49 +00:00
|
|
|
trigger: _("Network device activity (kernel: netdev)"),
|
2021-09-02 12:52:23 +00:00
|
|
|
description: _('The LED flashes with link status and activity on the configured interface.'),
|
2020-02-20 11:04:12 +00:00
|
|
|
kernel: true,
|
2021-10-31 21:26:42 +00:00
|
|
|
addFormOptions: function(s) {
|
2020-02-20 11:04:12 +00:00
|
|
|
var o;
|
|
|
|
|
|
|
|
o = s.option(widgets.DeviceSelect, '_net_dev', _('Device'));
|
|
|
|
o.rmempty = true;
|
|
|
|
o.ucioption = 'dev';
|
|
|
|
o.modalonly = true;
|
|
|
|
o.noaliases = true;
|
|
|
|
o.depends('trigger', 'netdev');
|
|
|
|
|
|
|
|
o = s.option(form.MultiValue, 'mode', _('Trigger Mode'));
|
|
|
|
o.rmempty = true;
|
|
|
|
o.modalonly = true;
|
|
|
|
o.depends('trigger', 'netdev');
|
|
|
|
o.value('link', _('Link On'));
|
|
|
|
o.value('tx', _('Transmit'));
|
|
|
|
o.value('rx', _('Receive'));
|
|
|
|
}
|
|
|
|
});
|