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:
Renato Botelho 2014-01-21 10:36:57 -02:00
parent b4d772dc03
commit d9797fd60a

View File

@ -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 */