summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_assign.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-04-27 21:31:46 +0000
committerErmal <eri@pfsense.org>2010-04-27 21:31:46 +0000
commitfa4a331fa5660c8d817ca8708696e0478fbb675a (patch)
treeb7f4b92697ccc02440ea98404f001a7b2c8f0767 /usr/local/www/interfaces_assign.php
parent461c0a1a4dde2b3ae1e350db581d1837554eb515 (diff)
downloadpfsense-fa4a331fa5660c8d817ca8708696e0478fbb675a.zip
pfsense-fa4a331fa5660c8d817ca8708696e0478fbb675a.tar.gz
Ticket #471. Bring up the removed/unassigned interface correctly if it is parent to other interfaces, as vlans.
Diffstat (limited to 'usr/local/www/interfaces_assign.php')
-rwxr-xr-xusr/local/www/interfaces_assign.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/interfaces_assign.php b/usr/local/www/interfaces_assign.php
index 663be60..74be363 100755
--- a/usr/local/www/interfaces_assign.php
+++ b/usr/local/www/interfaces_assign.php
@@ -246,6 +246,7 @@ if ($_GET['act'] == "del") {
$input_errors[] = "The interface is part of a gif tunnel. Please delete the tunnel to continue";
else {
unset($config['interfaces'][$id]['enable']);
+ $realid = get_real_interface($id);
interface_bring_down($id); /* down the interface */
unset($config['interfaces'][$id]); /* delete the specified OPTn or LAN*/
@@ -290,7 +291,7 @@ if ($_GET['act'] == "del") {
unset($config['dhcpd']['wan']);
}
- link_interface_to_vlans($id, "update");
+ link_interface_to_vlans($realid, "update");
$savemsg = "Interface has been deleted.";
}
OpenPOWER on IntegriCloud