mirror of
https://github.com/opnsense/core.git
synced 2026-10-12 02:20:36 +00:00
interfaces: sync all configration before running configure loop
dhcpv6 depends on WAN<->LAN relationships which need a sync of the whole interface config first. While here enable output for diagnostic purposes when running the script from the shell.
This commit is contained in:
@@ -84,7 +84,10 @@ if (is_array($config['interfaces'])) {
|
||||
$config['interfaces'][$ifname][$legacybool][$legacyempty] = '';
|
||||
}
|
||||
}
|
||||
/* Reload all for the interface. */
|
||||
interface_configure(false, $ifname, true);
|
||||
}
|
||||
|
||||
foreach ($to_configure as $ifname) {
|
||||
/* XXX maybe we can micromanage $reload = true here in the future */
|
||||
interface_configure(true, $ifname, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user