mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add speed and duplex setting in network page
This commit is contained in:
parent
b869935ff7
commit
ea4289223c
1 changed files with 17 additions and 0 deletions
|
@ -622,6 +622,23 @@ return baseclass.extend({
|
|||
o = this.replaceOption(s, 'devadvanced', form.Flag, 'promisc', _('Enable promiscuous mode'));
|
||||
o.default = o.disabled;
|
||||
|
||||
o = this.replaceOption(s, 'devadvanced', form.Flag, 'autoneg', _('Autonegociation'));
|
||||
o.default = o.enabled;
|
||||
|
||||
o = this.replaceOption(s, 'devadvanced', form.Value, 'speed', _('Speed'));
|
||||
o.placeholder = dev ? dev.getSpeed() : '';
|
||||
o.default = '';
|
||||
o.rmempty = true;
|
||||
o.datatype = 'uinteger';
|
||||
o.depends('autoneg', '0');
|
||||
|
||||
o = this.replaceOption(s, 'devadvanced', form.ListValue, 'duplex', _('Duplex'));
|
||||
o.default = '';
|
||||
o.value('', _('unknown'));
|
||||
o.value('half', _('half'));
|
||||
o.value('full', _('full'));
|
||||
o.depends('autoneg', '0');
|
||||
|
||||
o = this.replaceOption(s, 'devadvanced', form.ListValue, 'rpfilter', _('Reverse path filter'));
|
||||
o.default = '';
|
||||
o.value('', _('disabled'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue