summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-01-21 10:36:57 -0200
committerRenato Botelho <garga@FreeBSD.org>2014-01-21 10:36:57 -0200
commitd9797fd60a09140555bcbd26bbb08bc5b1308dee (patch)
tree19d91a2677fdc2d7dc630ea768f59db7c72b7803 /usr/local/www/interfaces.php
parentb4d772dc0325d08662996800dc6973d8e9c7cb0e (diff)
downloadpfsense-d9797fd60a09140555bcbd26bbb08bc5b1308dee.zip
pfsense-d9797fd60a09140555bcbd26bbb08bc5b1308dee.tar.gz
Revert "Fix #3350. Do not destroy an interface when it's being disabled"
Ermal reported issues when changes are made on VLAN parent interface with this patch. He did other changes and interface_configure() will now be able to re-create VLAN interface This reverts commit 5bc623536d8bb3b93e68a1b1535c9de582721a09.
Diffstat (limited to 'usr/local/www/interfaces.php')
-rwxr-xr-xusr/local/www/interfaces.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index d19d2ac..bfea79d 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -413,9 +413,11 @@ if ($_POST['apply']) {
if (file_exists("{$g['tmp_path']}/.interfaces.apply")) {
$toapplylist = unserialize(file_get_contents("{$g['tmp_path']}/.interfaces.apply"));
foreach ($toapplylist as $ifapply => $ifcfgo) {
- interface_bring_down($ifapply, false, $ifcfgo);
- if (isset($config['interfaces'][$ifapply]['enable']))
+ if (isset($config['interfaces'][$ifapply]['enable'])) {
+ interface_bring_down($ifapply, false, $ifcfgo);
interface_configure($ifapply, true);
+ } else
+ interface_bring_down($ifapply, true, $ifcfgo);
}
}
/* restart snmp so that it binds to correct address */
OpenPOWER on IntegriCloud