aboutsummaryrefslogtreecommitdiffstats
path: root/dhcp-lease-comment.capsman
diff options
context:
space:
mode:
Diffstat (limited to 'dhcp-lease-comment.capsman')
-rw-r--r--dhcp-lease-comment.capsman4
1 files changed, 3 insertions, 1 deletions
diff --git a/dhcp-lease-comment.capsman b/dhcp-lease-comment.capsman
index e5da51f..5a5d98b 100644
--- a/dhcp-lease-comment.capsman
+++ b/dhcp-lease-comment.capsman
@@ -6,6 +6,8 @@
#
# !! Do not edit this file, it is generated from template!
+:global LogPrintExit;
+
:foreach Lease in=[ / ip dhcp-server lease find where dynamic=yes status=bound ] do={
:local LeaseVal [ / ip dhcp-server lease get $Lease ];
:local NewComment;
@@ -14,7 +16,7 @@
:set NewComment [ / caps-man access-list get $AccessList comment ];
}
:if ([ :len $NewComment ] != 0 && $LeaseVal->"comment" != $NewComment) do={
- :log info ("Updating comment for DHCP lease " . $LeaseVal->"mac-address" . ": " . $NewComment);
+ $LogPrintExit info ("Updating comment for DHCP lease " . $LeaseVal->"mac-address" . ": " . $NewComment) false;
/ ip dhcp-server lease set comment=$NewComment $Lease;
}
}