aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-02-09 22:13:16 +0100
committerGravatar Christian Hesse <mail@eworm.de>2023-02-09 22:42:36 +0100
commit769edbcf61a31e0664c43dcf7c8301ed89bed01a (patch)
tree2432038878f034dded47f721bd2a160057c64200
parentc6245b31250b59068da6675530167e042e012ac4 (diff)
ipv6-update: rename variable
-rw-r--r--ipv6-update10
1 files changed, 5 insertions, 5 deletions
diff --git a/ipv6-update b/ipv6-update
index 34df5b3..13660c4 100644
--- a/ipv6-update
+++ b/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;
}
}