mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55: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:
@@ -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") ];
|
||||||
|
Reference in New Issue
Block a user