interfaces: interface_configure() checks for enabled

This commit is contained in:
Franco Fichtner 2021-05-26 13:19:35 +02:00 committed by Ad Schellevis
parent 842e661ce4
commit 468eaa8a68

View File

@ -550,9 +550,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$toapplylist = unserialize(file_get_contents('/tmp/.interfaces.apply'));
foreach ($toapplylist as $ifapply => $ifcfgo) {
interface_bring_down($ifapply, $ifcfgo);
if (isset($config['interfaces'][$ifapply]['enable'])) {
interface_configure(false, $ifapply, true);
}
interface_configure(false, $ifapply, true);
}
system_routing_configure();