From c6bacfe5600002781a62801a11fe276907b230d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=C3=A7i?= Date: Fri, 7 Nov 2008 19:35:11 +0000 Subject: Check if the interface is used by gre/gif tunnels before allowing deletion. --- usr/local/www/interfaces_assign.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usr') diff --git a/usr/local/www/interfaces_assign.php b/usr/local/www/interfaces_assign.php index 97fe493..2a2b81c 100755 --- a/usr/local/www/interfaces_assign.php +++ b/usr/local/www/interfaces_assign.php @@ -198,6 +198,10 @@ if ($_GET['act'] == "del") { if (link_interface_to_bridge($id)) $input_errors[] = "The interface is part of a bridge. Please remove it from the bridge to continue"; + else if (link_interface_to_gre($id)) + $input_errors[] = "The interface is part of a gre tunnel. Please delete the tunnel to continue"; + else if (link_interface_to_gif($id)) + $input_errors[] = "The interface is part of a gif tunnel. Please delete the tunnel to continue"; else { unset($config['interfaces'][$id]['enable']); interface_bring_down($id); /* down the interface */ -- cgit v1.1