switch1.js 424 B

12345678910111213141516171819
  1. 'use strict';
  2. 'require baseclass';
  3. 'require form';
  4. return baseclass.extend({
  5. trigger: _('Switch support (kernel: switch1)'),
  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', 'switch1');
  12. o = s.option(form.Value, 'speed_mask', _('Switch Speed Mask'));
  13. o.modalonly = true;
  14. o.depends('trigger', 'switch1');
  15. }
  16. });