diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-01-15 15:25:37 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-01-15 15:25:37 -0500 |
commit | 692b5e028b05035ae4e19d7b1c528adc2c8ab908 (patch) | |
tree | 45c6b530258cb7d650a414f28e3f42c671a066be /src/usr/local/www/interfaces.php | |
parent | f495310de0d2fba3de3edb1d80b8188cbba941a6 (diff) | |
download | pfsense-692b5e028b05035ae4e19d7b1c528adc2c8ab908.zip pfsense-692b5e028b05035ae4e19d7b1c528adc2c8ab908.tar.gz |
Reverting #5771 - No longer required
Diffstat (limited to 'src/usr/local/www/interfaces.php')
-rw-r--r-- | src/usr/local/www/interfaces.php | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/src/usr/local/www/interfaces.php b/src/usr/local/www/interfaces.php index 6615b7a..0d82dd5 100644 --- a/src/usr/local/www/interfaces.php +++ b/src/usr/local/www/interfaces.php @@ -1755,26 +1755,13 @@ $group->setHelp('This field can be used to modify ("spoof") the MAC address of t 'Enter a MAC address in the following format: xx:xx:xx:xx:xx:xx or leave blank'); $section->add($group); -// If the interface is a VLAN and has a LAGG as a parent, the MTU cannot be set here. -// We can determine that by parsing the interface name (begins with "lagg", contains "_vlan") -if( (strrpos($wancfg['if'], "lagg", -strlen($wancfg['if'])) !== FALSE) && (strpos($wancfg['if'], "_vlan") !== false)) { - $section->addInput(new Form_Input( - 'mtu', - 'MTU', - 'number', - $pconfig['mtu'] - ))->setHelp('<span class="text-danger">' . 'You may not set the MTU of a VLAN interface that has a LAGG parent here. ' . '<br />' . - '<a href="interfaces_lagg_edit.php?id=' . $wancfg['if'][4] . '">interfaces_lagg.php</a></span>') - ->setReadonly(); -} else { - $section->addInput(new Form_Input( - 'mtu', - 'MTU', - 'number', - $pconfig['mtu'] - ))->setHelp('If you leave this field blank, the adapter\'s default MTU will be used. ' . - 'This is typically 1500 bytes but can vary in some circumstances.'); -} +$section->addInput(new Form_Input( + 'mtu', + 'MTU', + 'number', + $pconfig['mtu'] +))->setHelp('If you leave this field blank, the adapter\'s default MTU will be used. ' . + 'This is typically 1500 bytes but can vary in some circumstances.'); $section->addInput(new Form_Input( 'mss', |