mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
ipv6-update: get old prefix from first matching address list entry
This commit is contained in:
parent
547fbc630a
commit
4368f500c3
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@
|
|||
/ ipv6 firewall address-list add list=("ipv6-pool-" . $Pool) address=:: comment=("ipv6-pool-" . $Pool);
|
||||
:set AddrList [ / ipv6 firewall address-list find where comment=("ipv6-pool-" . $Pool) ];
|
||||
}
|
||||
:local OldPrefix [ / ipv6 firewall address-list get $AddrList address ];
|
||||
:local OldPrefix [ / ipv6 firewall address-list get ($AddrList->0) address ];
|
||||
|
||||
:if ($OldPrefix != $PdPrefix) do={
|
||||
:log info ("Updating IPv6 address list with new IPv6 prefix " . $PdPrefix);
|
||||
|
|
Loading…
Reference in a new issue