diff options
author | Christian Hesse <mail@eworm.de> | 2020-01-06 09:47:32 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-01-06 09:47:32 +0100 |
commit | aa885e17e2b929500d5992b396e9460e325036be (patch) | |
tree | a8fe10e486c457ad1a6e37d8f00ff5175bc158fd /collect-wireless-mac.template | |
parent | bb7c4ef0d9ab5e99d29b3f68a2d0ca44cf25fffa (diff) |
collect-wireless-mac: use dynamic & bound mac address only
Diffstat (limited to 'collect-wireless-mac.template')
-rw-r--r-- | collect-wireless-mac.template | 2 |
1 files changed, 1 insertions, 1 deletions
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 ]; |