switch0.js 424 B

12345678910111213141516171819
  1. 'use strict';
  2. 'require baseclass';
  3. 'require form';
  4. return baseclass.extend({
  5. trigger: _('Switch support (kernel: switch0)'),
  6. kernel: true,
  7. addFormOptions(s){
  8. var o;
  9. o = s.option(form.Value, 'port_mask', _('Switch Port Mask'));
  10. o.modalonly = true;
  11. o.depends('trigger', 'switch0');
  12. o = s.option(form.Value, 'speed_mask', _('Switch Speed Mask'));
  13. o.modalonly = true;
  14. o.depends('trigger', 'switch0');
  15. }
  16. });