mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
(interface groups) trigger missing to notify changed interface administration, closes https://github.com/opnsense/core/issues/1064
This commit is contained in:
parent
6281e33969
commit
446da190f0
@ -30,6 +30,7 @@
|
||||
|
||||
require_once("guiconfig.inc");
|
||||
require_once("interfaces.inc");
|
||||
require_once("plugins.inc");
|
||||
|
||||
if (!isset($config['ifgroups']['ifgroupentry'])) {
|
||||
$a_ifgroups = array();
|
||||
@ -51,6 +52,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " -group " . escapeshellarg($a_ifgroups[$id]['ifname']));
|
||||
}
|
||||
}
|
||||
plugins_interfaces();
|
||||
unset($a_ifgroups[$id]);
|
||||
write_config();
|
||||
header("Location: interfaces_groups.php");
|
||||
|
||||
@ -30,6 +30,7 @@
|
||||
|
||||
require_once("guiconfig.inc");
|
||||
require_once("interfaces.inc");
|
||||
require_once("plugins.inc");
|
||||
|
||||
if (!isset($config['ifgroups']) || !is_array($config['ifgroups'])) {
|
||||
$config['ifgroups'] = array();
|
||||
@ -121,6 +122,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
}
|
||||
write_config();
|
||||
interface_group_setup($ifgroupentry);
|
||||
plugins_interfaces();
|
||||
header("Location: interfaces_groups.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user