From f70a140fe18cb80012e53f82c268788fbcae5436 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 3 Dec 2013 12:37:17 -0200 Subject: Fix #3350. Do not destroy an interface when it's being disabled --- usr/local/www/interfaces.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'usr') diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 0627e32..e0ab071 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -359,11 +359,9 @@ 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) { - if (isset($config['interfaces'][$ifapply]['enable'])) { - interface_bring_down($ifapply, false, $ifcfgo); + interface_bring_down($ifapply, false, $ifcfgo); + if (isset($config['interfaces'][$ifapply]['enable'])) interface_configure($ifapply, true); - } else - interface_bring_down($ifapply, true, $ifcfgo); } } /* restart snmp so that it binds to correct address */ -- cgit v1.1