summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
diff options
context:
space:
mode:
authorSteve Beaver <sbeaver@netgate.com>2017-02-20 10:14:03 -0500
committerSteve Beaver <sbeaver@netgate.com>2017-02-20 10:16:12 -0500
commit85ea9d468ed5ac21a207554a53d4638f4b7547c9 (patch)
tree6bef76b8ec0592416f7a7d80bde9bd7aeeda9a7c /src/usr/local/www
parent6378ef45479ec9f7f1962e4986ae540ad088a4ba (diff)
downloadpfsense-85ea9d468ed5ac21a207554a53d4638f4b7547c9.zip
pfsense-85ea9d468ed5ac21a207554a53d4638f4b7547c9.tar.gz
Fixed #7231
This avoids the problem rather than fixing it by requiring the user to remove any queues from the if before deleting
Diffstat (limited to 'src/usr/local/www')
-rw-r--r--src/usr/local/www/interfaces_assign.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/usr/local/www/interfaces_assign.php b/src/usr/local/www/interfaces_assign.php
index 24f60c8..3fc7548 100644
--- a/src/usr/local/www/interfaces_assign.php
+++ b/src/usr/local/www/interfaces_assign.php
@@ -388,6 +388,8 @@ if (isset($_REQUEST['add']) && isset($_REQUEST['if_add'])) {
$input_errors[] = gettext("The interface is part of a gre tunnel. Please delete the tunnel to continue");
} else if (link_interface_to_gif($id)) {
$input_errors[] = gettext("The interface is part of a gif tunnel. Please delete the tunnel to continue");
+ } else if (interface_has_queue($id)) {
+ $input_errors[] = gettext("The interface has a traffic shaper queue configured.\nPlease emove all queues on the interface to continue.\n");
} else {
unset($config['interfaces'][$id]['enable']);
$realid = get_real_interface($id);
OpenPOWER on IntegriCloud