aboutsummaryrefslogtreecommitdiffstats
path: root/dhcp-lease-comment.template
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-01-06 09:42:00 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-01-06 09:42:00 +0100
commitbb7c4ef0d9ab5e99d29b3f68a2d0ca44cf25fffa (patch)
tree7570df71d07a745db20f25d2e617bea44088da55 /dhcp-lease-comment.template
parent0560f828d1f02a9c145806af351faa91fda6b8bf (diff)
dhcp-lease-comment: act on bound leases only
Diffstat (limited to 'dhcp-lease-comment.template')
-rw-r--r--dhcp-lease-comment.template2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcp-lease-comment.template b/dhcp-lease-comment.template
index 75a09ec..3734ba4 100644
--- a/dhcp-lease-comment.template
+++ b/dhcp-lease-comment.template
@@ -7,7 +7,7 @@
# !! This is just a template! Replace '%PATH%' with 'caps-man'
# !! or 'interface wireless'!
-:foreach Lease in=[ / ip dhcp-server lease find where dynamic=yes ] do={
+:foreach Lease in=[ / ip dhcp-server lease find where dynamic=yes status=bound ] do={
:local LeaseVal [ / ip dhcp-server lease get $Lease ];
:local NewComment;
:local AccessList ([ / %PATH% access-list find where mac-address=($LeaseVal->"mac-address") ]->0);