From 10c65c480ca159fbf390ff7cba216c6cba5c46fc Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Mon, 6 Jul 2015 15:40:20 -0500 Subject: [PATCH] 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.). --- usr/local/www/interfaces_qinq.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/usr/local/www/interfaces_qinq.php b/usr/local/www/interfaces_qinq.php index f08886248f..dac5801bf8 100644 --- a/usr/local/www/interfaces_qinq.php +++ b/usr/local/www/interfaces_qinq.php @@ -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];