Revision 43045948
Added by Renato Botelho over 11 years ago
usr/local/www/interfaces.php | ||
---|---|---|
359 | 359 |
if (file_exists("{$g['tmp_path']}/.interfaces.apply")) { |
360 | 360 |
$toapplylist = unserialize(file_get_contents("{$g['tmp_path']}/.interfaces.apply")); |
361 | 361 |
foreach ($toapplylist as $ifapply => $ifcfgo) { |
362 |
interface_bring_down($ifapply, false, $ifcfgo);
|
|
363 |
if (isset($config['interfaces'][$ifapply]['enable']))
|
|
362 |
if (isset($config['interfaces'][$ifapply]['enable'])) {
|
|
363 |
interface_bring_down($ifapply, false, $ifcfgo);
|
|
364 | 364 |
interface_configure($ifapply, true); |
365 |
} else |
|
366 |
interface_bring_down($ifapply, true, $ifcfgo); |
|
365 | 367 |
} |
366 | 368 |
} |
367 | 369 |
/* restart snmp so that it binds to correct address */ |
Also available in: Unified diff
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 f70a140fe18cb80012e53f82c268788fbcae5436.