aboutsummaryrefslogtreecommitdiffstats
path: root/update-gre-address.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-03-08 12:45:38 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-03-12 20:37:57 +0100
commit9a21f4d3e3bf1ba0abe565058f7f8688024b68a2 (patch)
tree7804ad63348fc8e8494b21ce44c73a0a24723c6e /update-gre-address.rsc
parent19fb5c5801a0769e3b94123b8b28aca14f0e73d9 (diff)
update-gre-address: switch to $LogPrint
Diffstat (limited to 'update-gre-address.rsc')
-rw-r--r--update-gre-address.rsc4
1 files changed, 2 insertions, 2 deletions
diff --git a/update-gre-address.rsc b/update-gre-address.rsc
index 78705c5..74967cd 100644
--- a/update-gre-address.rsc
+++ b/update-gre-address.rsc
@@ -16,7 +16,7 @@
:local ScriptName [ :jobname ];
:global CharacterReplace;
- :global LogPrintExit2;
+ :global LogPrint;
:global ScriptLock;
:if ([ $ScriptLock $ScriptName ] = false) do={
@@ -33,7 +33,7 @@
:if ([ :typeof ($PeerVal->"dynamic-address") ] = "str" && \
($PeerVal->"dynamic-address" != $GreIntVal->"remote-address" || \
$GreIntVal->"disabled" = true)) do={
- $LogPrintExit2 info $ScriptName ("Updating remote address for interface " . $GreIntVal->"name" . " to " . $PeerVal->"dynamic-address") false;
+ $LogPrint info $ScriptName ("Updating remote address for interface " . $GreIntVal->"name" . " to " . $PeerVal->"dynamic-address");
/interface/gre/set remote-address=0.0.0.0 disabled=yes [ find where remote-address=$PeerVal->"dynamic-address" name!=$GreIntVal->"name" ];
/interface/gre/set $GreInt remote-address=($PeerVal->"dynamic-address") disabled=no;
}