From aa885e17e2b929500d5992b396e9460e325036be Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 6 Jan 2020 09:47:32 +0100 Subject: collect-wireless-mac: use dynamic & bound mac address only --- collect-wireless-mac.capsman | 2 +- collect-wireless-mac.local | 2 +- collect-wireless-mac.template | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/collect-wireless-mac.capsman b/collect-wireless-mac.capsman index 27df0ee..2b93e09 100644 --- a/collect-wireless-mac.capsman +++ b/collect-wireless-mac.capsman @@ -27,7 +27,7 @@ $ScriptLock "collect-wireless-mac.capsman"; :local Address "no dhcp lease"; :local DnsName "no dhcp lease"; :local HostName "no dhcp lease"; - :local Lease [ / ip dhcp-server lease find where mac-address=$Mac ]; + :local Lease [ / ip dhcp-server lease find where mac-address=$Mac dynamic=yes status=bound ]; :if ([ :len $Lease ] > 0) do={ :set Address [ / ip dhcp-server lease get $Lease address ]; :set HostName [ / ip dhcp-server lease get $Lease host-name ]; diff --git a/collect-wireless-mac.local b/collect-wireless-mac.local index f8315f1..c38c2c1 100644 --- a/collect-wireless-mac.local +++ b/collect-wireless-mac.local @@ -27,7 +27,7 @@ $ScriptLock "collect-wireless-mac.local"; :local Address "no dhcp lease"; :local DnsName "no dhcp lease"; :local HostName "no dhcp lease"; - :local Lease [ / ip dhcp-server lease find where mac-address=$Mac ]; + :local Lease [ / ip dhcp-server lease find where mac-address=$Mac dynamic=yes status=bound ]; :if ([ :len $Lease ] > 0) do={ :set Address [ / ip dhcp-server lease get $Lease address ]; :set HostName [ / ip dhcp-server lease get $Lease host-name ]; diff --git a/collect-wireless-mac.template b/collect-wireless-mac.template index 0bd1790..03bd532 100644 --- a/collect-wireless-mac.template +++ b/collect-wireless-mac.template @@ -28,7 +28,7 @@ $ScriptLock "collect-wireless-mac%TEMPL%"; :local Address "no dhcp lease"; :local DnsName "no dhcp lease"; :local HostName "no dhcp lease"; - :local Lease [ / ip dhcp-server lease find where mac-address=$Mac ]; + :local Lease [ / ip dhcp-server lease find where mac-address=$Mac dynamic=yes status=bound ]; :if ([ :len $Lease ] > 0) do={ :set Address [ / ip dhcp-server lease get $Lease address ]; :set HostName [ / ip dhcp-server lease get $Lease host-name ]; -- cgit v1.2.3-70-g09d2