mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-08-03 17:54:36 +02:00
ipv6-update: simplify array access
This commit is contained in:
parent
7fc12f9e24
commit
6a48c8b5e7
1 changed files with 2 additions and 2 deletions
|
@ -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" ] ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue