mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
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:
parent
744a03896c
commit
503dc3c32c
1 changed files with 3 additions and 3 deletions
|
@ -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") ];
|
||||||
|
|
Loading…
Reference in a new issue