Don't check whether the QinQ interface exists when deleting. Unnecessarily

makes QinQ un-deletable where the parent interface no longer exists
(removed, config restored from diff hardware, etc.).
This commit is contained in:
Chris Buechler 2015-07-06 15:40:20 -05:00
parent 38b35612ea
commit 10c65c480c

View File

@ -67,8 +67,6 @@ if ($_GET['act'] == "del") {
/* check if still in use */
if (qinq_inuse($id)) {
$input_errors[] = gettext("This QinQ cannot be deleted because it is still being used as an interface.");
} elseif (empty($a_qinqs[$id]['vlanif']) || !does_interface_exist($a_qinqs[$id]['vlanif'])) {
$input_errors[] = gettext("QinQ interface does not exist");
} else {
$qinq =& $a_qinqs[$id];