aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-12-18 10:01:50 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-12-18 10:01:50 +0100
commit503dc3c32ccd7c75086bec878fd9149a8632c82c (patch)
treea90df9a508b2161da2c85661c4d3280a99db1208
parent744a03896c3276ca0bee9af5735851bb64a7f542 (diff)
ipv6-update: move the delay down
We have to wait for the interfaces, no need to delay address list entry.
-rw-r--r--ipv6-update6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipv6-update b/ipv6-update
index 56dbd16..1baa0a4 100644
--- a/ipv6-update
+++ b/ipv6-update
@@ -24,13 +24,13 @@
}
:local OldPrefix [ / ipv6 firewall address-list get $AddrList address ];
-# give the interfaces a moment to receive their addresses
-:delay 2s;
-
:if ($OldPrefix != $PdPrefix) do={
:log info ("Updating IPv6 address list with new IPv6 prefix " . $PdPrefix);
/ 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={
:local RecordVal [ / ip dns static get $Record ];
:local Comment [ $ParseKeyValueStore ($RecordVal->"comment") ];