From 503dc3c32ccd7c75086bec878fd9149a8632c82c Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 18 Dec 2020 10:01:50 +0100 Subject: ipv6-update: move the delay down We have to wait for the interfaces, no need to delay address list entry. --- ipv6-update | 6 +++--- 1 file 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") ]; -- cgit v1.2.3-54-g00ecf