aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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") ];