diff options
author | Christian Hesse <mail@eworm.de> | 2020-12-18 10:01:50 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-12-18 10:01:50 +0100 |
commit | 503dc3c32ccd7c75086bec878fd9149a8632c82c (patch) | |
tree | a90df9a508b2161da2c85661c4d3280a99db1208 /ipv6-update | |
parent | 744a03896c3276ca0bee9af5735851bb64a7f542 (diff) |
ipv6-update: move the delay down
We have to wait for the interfaces, no need to delay address list entry.
Diffstat (limited to 'ipv6-update')
-rw-r--r-- | ipv6-update | 6 |
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") ]; |