Commit 8236ddcc authored by Ad Schellevis's avatar Ad Schellevis

interfaces.php, rework last

parent 576799a1
...@@ -815,7 +815,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -815,7 +815,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
if (stristr($a_interfaces[$if]['if'], "_vlan")) { if (stristr($a_interfaces[$if]['if'], "_vlan")) {
$parentif = get_parent_interface($a_interfaces[$if]['if'])[0]; $parentif = get_parent_interface($a_interfaces[$if]['if'])[0];
$intf_details = legacy_interfaces_details($parentif)[$parentif]; $intf_details = legacy_interface_details($parentif);
if ($intf_details['mtu'] < $pconfig['mtu']) { if ($intf_details['mtu'] < $pconfig['mtu']) {
$input_errors[] = gettext("MTU of a vlan should not be bigger than parent interface."); $input_errors[] = gettext("MTU of a vlan should not be bigger than parent interface.");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment