mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
ipv6-update: rename variable
This commit is contained in:
parent
c6245b3125
commit
769edbcf61
1 changed files with 5 additions and 5 deletions
10
ipv6-update
10
ipv6-update
|
@ -38,12 +38,12 @@
|
|||
:local ListEntryVal [ /ipv6/firewall/address-list/get $ListEntry ];
|
||||
:local Comment [ $ParseKeyValueStore ($ListEntryVal->"comment") ];
|
||||
|
||||
:local Address [ /ipv6/address/find where from-pool=$Pool interface=($Comment->"interface") global ];
|
||||
:if ([ :len $Address ] = 1) do={
|
||||
:set Address [ /ipv6/address/get $Address address ];
|
||||
$LogPrintExit2 info $0 ("Updating IPv6 address list with new IPv6 prefix " . $Address . \
|
||||
:local Prefix [ /ipv6/address/find where from-pool=$Pool interface=($Comment->"interface") global ];
|
||||
:if ([ :len $Prefix ] = 1) do={
|
||||
:set Prefix [ /ipv6/address/get $Prefix address ];
|
||||
$LogPrintExit2 info $0 ("Updating IPv6 address list with new IPv6 prefix " . $Prefix . \
|
||||
" from interface " . ($Comment->"interface")) false;
|
||||
/ipv6/firewall/address-list/set address=$Address $ListEntry;
|
||||
/ipv6/firewall/address-list/set address=$Prefix $ListEntry;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue