diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-11-07 19:35:11 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-11-07 19:35:11 +0000 |
commit | c6bacfe5600002781a62801a11fe276907b230d9 (patch) | |
tree | a12a3d71086d1e95c193560a3416ff00df6ab051 /usr | |
parent | 7ec05d27c73b9fd3ffa579e18b72040ba5fdec74 (diff) | |
download | pfsense-c6bacfe5600002781a62801a11fe276907b230d9.zip pfsense-c6bacfe5600002781a62801a11fe276907b230d9.tar.gz |
Check if the interface is used by gre/gif tunnels before allowing deletion.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/interfaces_assign.php | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |