diff options
author | Christian Hesse <mail@eworm.de> | 2019-02-08 14:14:15 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-02-08 14:14:15 +0100 |
commit | 6a48c8b5e7d2ddc9c7feb75860c6fba0a61f8187 (patch) | |
tree | 2c710fa73fff6a9e0641eb9b6d62d711416a9992 /ipv6-update | |
parent | 7fc12f9e246a5fb732888f0ae189a34de54291ac (diff) |
ipv6-update: simplify array access
Diffstat (limited to 'ipv6-update')
-rw-r--r-- | ipv6-update | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipv6-update b/ipv6-update index 73336c1..f8ad3c1 100644 --- a/ipv6-update +++ b/ipv6-update @@ -19,8 +19,8 @@ if ($OldPrefix != $PdPrefix) do={ :foreach Record in=[ / ip dns static find where comment~("ipv6-pool-" . $Pool) ] do={ :local Comment [ :toarray [ / ip dns static get $Record comment ] ]; - :local IntName [ :pick [ :pick $Comment 1 ] 10 99 ]; - :local Suffix [ :pick [ :pick $Comment 2 ] 7 99 ]; + :local IntName [ :pick ($Comment->1) 10 99 ]; + :local Suffix [ :pick ($Comment->2) 7 99 ]; :local Prefix [ / ipv6 address get [ find where interface=$IntName from-pool=$Pool global ] address ]; :local Prefix64 [ :pick $Prefix 0 [ :find $Prefix "::/64" ] ]; |