From 6a48c8b5e7d2ddc9c7feb75860c6fba0a61f8187 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 8 Feb 2019 14:14:15 +0100 Subject: ipv6-update: simplify array access --- ipv6-update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipv6-update') 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" ] ]; -- cgit v1.2.3-70-g09d2