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:
Franco Fichtner
2026-09-24 10:06:11 +02:00
parent c97158614b
commit 8efb2fa645
@@ -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);
}
}