mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-29 12:50:07 +02: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);
|
/ 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) ];
|
: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={
|
:if ($OldPrefix != $PdPrefix) do={
|
||||||
:log info ("Updating IPv6 address list with new IPv6 prefix " . $PdPrefix);
|
:log info ("Updating IPv6 address list with new IPv6 prefix " . $PdPrefix);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue