summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Souza <luiz@netgate.com>2018-08-20 18:29:07 -0300
committerLuiz Souza <luiz@netgate.com>2018-08-20 18:29:07 -0300
commit966835f801bd90c5d85bb5f2572972437080bf54 (patch)
treef5c028658b976af16a558513f82adefcf7167b8d
parent73a4e6cda34bc9fb2dd1927bc9c809da6770293c (diff)
downloadpfsense-966835f801bd90c5d85bb5f2572972437080bf54.zip
pfsense-966835f801bd90c5d85bb5f2572972437080bf54.tar.gz
Only show the DHCP6 VLAN Priority settings for VLAN interfaces.
-rwxr-xr-xsrc/usr/local/www/interfaces.php52
1 files changed, 27 insertions, 25 deletions
diff --git a/src/usr/local/www/interfaces.php b/src/usr/local/www/interfaces.php
index 51d7e83..90d0ea2 100755
--- a/src/usr/local/www/interfaces.php
+++ b/src/usr/local/www/interfaces.php
@@ -2303,33 +2303,35 @@ $section->addInput(new Form_Checkbox(
$pconfig['dhcp6norelease']
));
-$group = new Form_Group('DHCP6 VLAN Priority');
-
-$vlanprio = array(
- "bk" => "Background (BK, 0)",
- "be" => "Best Effort (BE, 1)",
- "ee" => "Excellent Effort (EE, 2)",
- "ca" => "Critical Applications (CA, 3)",
- "vi" => "Video (VI, 4)",
- "vo" => "Voice (VO, 5)",
- "ic" => "Internetwork Control (IC, 6)",
- "nc" => "Network Control (NC, 7)");
-
-$group->add(new Form_Checkbox(
- 'dhcp6vlanenable',
- null,
- 'Enable dhcp6c VLAN Priority tagging',
- $pconfig['dhcp6vlanenable']
-))->setHelp('Normally off unless specifically required by the ISP.');
+if (interface_is_vlan($wancfg['if']) != NULL) {
+ $group = new Form_Group('DHCP6 VLAN Priority');
+
+ $vlanprio = array(
+ "bk" => "Background (BK, 0)",
+ "be" => "Best Effort (BE, 1)",
+ "ee" => "Excellent Effort (EE, 2)",
+ "ca" => "Critical Applications (CA, 3)",
+ "vi" => "Video (VI, 4)",
+ "vo" => "Voice (VO, 5)",
+ "ic" => "Internetwork Control (IC, 6)",
+ "nc" => "Network Control (NC, 7)");
+
+ $group->add(new Form_Checkbox(
+ 'dhcp6vlanenable',
+ null,
+ 'Enable dhcp6c VLAN Priority tagging',
+ $pconfig['dhcp6vlanenable']
+ ))->setHelp('Normally off unless specifically required by the ISP.');
-$group->add(new Form_Select(
- 'dhcp6cvpt',
- 'VLAN Prio',
- $pconfig['dhcp6cvpt'],
- $vlanprio
-))->setHelp('Choose 802.1p priority to set.');
+ $group->add(new Form_Select(
+ 'dhcp6cvpt',
+ 'VLAN Prio',
+ $pconfig['dhcp6cvpt'],
+ $vlanprio
+ ))->setHelp('Choose 802.1p priority to set.');
-$section->add($group);
+ $section->add($group);
+}
$section->addInput(new Form_Input(
'adv_dhcp6_config_file_override_path',
OpenPOWER on IntegriCloud