summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_assign.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-06-13 02:19:45 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-06-13 02:19:45 +0000
commit3c43a3440d8293db907e5f69056edaf351c427f0 (patch)
tree9c6e00deb361b5e2dbc7c7de929e25f166eff606 /usr/local/www/interfaces_assign.php
parenta6c0ef04abca8f18e57ee574dc9530c4096250df (diff)
downloadpfsense-3c43a3440d8293db907e5f69056edaf351c427f0.zip
pfsense-3c43a3440d8293db907e5f69056edaf351c427f0.tar.gz
MFC 12647
Set the interface as down and delete the IP address when removing OPT
Diffstat (limited to 'usr/local/www/interfaces_assign.php')
-rwxr-xr-xusr/local/www/interfaces_assign.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/www/interfaces_assign.php b/usr/local/www/interfaces_assign.php
index 1c67201..7999fa3 100755
--- a/usr/local/www/interfaces_assign.php
+++ b/usr/local/www/interfaces_assign.php
@@ -119,7 +119,11 @@ if ($_POST) {
if ($_GET['act'] == "del") {
$id = $_GET['id'];
-
+
+ $i = substr($id, 3); /* the number of the OPTn port being deleted */
+ unset($config['interfaces'][$id]['enable']);
+ interfaces_optional_configure_if($i); /* down the interface */
+
unset($config['interfaces'][$id]); /* delete the specified OPTn */
/* shift down other OPTn interfaces to get rid of holes */
OpenPOWER on IntegriCloud