ipv6-update: move the delay down

We have to wait for the interfaces, no need to delay address list entry.
This commit is contained in:
Christian Hesse 2020-12-18 10:01:50 +01:00
parent 744a03896c
commit 503dc3c32c

View file

@ -24,13 +24,13 @@
} }
:local OldPrefix [ / ipv6 firewall address-list get $AddrList address ]; :local OldPrefix [ / ipv6 firewall address-list get $AddrList address ];
# give the interfaces a moment to receive their addresses
:delay 2s;
:if ($OldPrefix != $PdPrefix) do={ :if ($OldPrefix != $PdPrefix) do={
:log info ("Updating IPv6 address list with new IPv6 prefix " . $PdPrefix); :log info ("Updating IPv6 address list with new IPv6 prefix " . $PdPrefix);
/ ipv6 firewall address-list set address=$PdPrefix $AddrList; / ipv6 firewall address-list set address=$PdPrefix $AddrList;
# give the interfaces a moment to receive their addresses
:delay 2s;
:foreach Record in=[ / ip dns static find where comment~("^ipv6-pool-" . $Pool . ",") ] do={ :foreach Record in=[ / ip dns static find where comment~("^ipv6-pool-" . $Pool . ",") ] do={
:local RecordVal [ / ip dns static get $Record ]; :local RecordVal [ / ip dns static get $Record ];
:local Comment [ $ParseKeyValueStore ($RecordVal->"comment") ]; :local Comment [ $ParseKeyValueStore ($RecordVal->"comment") ];