mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
interfaces: for specific device edit pages avoid reloading device again #5637
The device reconfigure is done unconditionally before configuring the attached interface. If we use reload we will configure the interface again, but if the interface is disabled we wouldn't trigger the device creation. So go back to the former code which didn't exhibit any real issue before we used $reload.
This commit is contained in:
parent
7aecb367c8
commit
2862eaf0cc
@ -225,7 +225,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
ifgroup_setup();
|
||||
$confif = convert_real_interface_to_friendly_interface_name($bridge['bridgeif']);
|
||||
if ($confif != '') {
|
||||
interface_configure(false, $confif, true);
|
||||
interface_configure(false, $config);
|
||||
}
|
||||
header(url_safe('Location: /interfaces_bridge.php'));
|
||||
exit;
|
||||
|
||||
@ -128,7 +128,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
ifgroup_setup();
|
||||
$confif = convert_real_interface_to_friendly_interface_name($gif['gifif']);
|
||||
if ($confif != '') {
|
||||
interface_configure(false, $confif, true);
|
||||
interface_configure(false, $confif);
|
||||
}
|
||||
header(url_safe('Location: /interfaces_gif.php'));
|
||||
exit;
|
||||
|
||||
@ -98,7 +98,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
ifgroup_setup();
|
||||
$confif = convert_real_interface_to_friendly_interface_name($gre['greif']);
|
||||
if ($confif != '') {
|
||||
interface_configure(false, $confif, true);
|
||||
interface_configure(false, $confif);
|
||||
}
|
||||
header(url_safe('Location: /interfaces_gre.php'));
|
||||
exit;
|
||||
|
||||
@ -169,7 +169,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
_interfaces_lagg_configure($lagg);
|
||||
$confif = convert_real_interface_to_friendly_interface_name($lagg['laggif']);
|
||||
if ($confif != '') {
|
||||
interface_configure(false, $confif, true);
|
||||
interface_configure(false, $confif);
|
||||
}
|
||||
header(url_safe('Location: /interfaces_lagg.php'));
|
||||
exit;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user