mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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 5bc623536d.
This commit is contained in:
parent
b4d772dc03
commit
d9797fd60a
@ -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 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user