diff options
-rw-r--r-- | dhcp-lease-comment.capsman | 2 | ||||
-rw-r--r-- | dhcp-lease-comment.local | 2 | ||||
-rw-r--r-- | dhcp-lease-comment.template | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/dhcp-lease-comment.capsman b/dhcp-lease-comment.capsman index 5e6e325..eda04e4 100644 --- a/dhcp-lease-comment.capsman +++ b/dhcp-lease-comment.capsman @@ -10,7 +10,7 @@ :local MacAddress [ / ip dhcp-server lease get $Lease mac-address ]; :local OldComment [ / ip dhcp-server lease get $Lease comment ]; :local NewComment; - :local AccessList [ :pick [ / caps-man access-list find where mac-address=$MacAddress ] 0 ]; + :local AccessList ([ / caps-man access-list find where mac-address=$MacAddress ]->0); :if ([ :len $AccessList ] > 0) do={ :set NewComment [ / caps-man access-list get $AccessList comment ]; } diff --git a/dhcp-lease-comment.local b/dhcp-lease-comment.local index 98c11cc..9e2f9d8 100644 --- a/dhcp-lease-comment.local +++ b/dhcp-lease-comment.local @@ -10,7 +10,7 @@ :local MacAddress [ / ip dhcp-server lease get $Lease mac-address ]; :local OldComment [ / ip dhcp-server lease get $Lease comment ]; :local NewComment; - :local AccessList [ :pick [ / interface wireless access-list find where mac-address=$MacAddress ] 0 ]; + :local AccessList ([ / interface wireless access-list find where mac-address=$MacAddress ]->0); :if ([ :len $AccessList ] > 0) do={ :set NewComment [ / interface wireless access-list get $AccessList comment ]; } diff --git a/dhcp-lease-comment.template b/dhcp-lease-comment.template index b119596..a1541e1 100644 --- a/dhcp-lease-comment.template +++ b/dhcp-lease-comment.template @@ -11,7 +11,7 @@ :local MacAddress [ / ip dhcp-server lease get $Lease mac-address ]; :local OldComment [ / ip dhcp-server lease get $Lease comment ]; :local NewComment; - :local AccessList [ :pick [ / %PATH% access-list find where mac-address=$MacAddress ] 0 ]; + :local AccessList ([ / %PATH% access-list find where mac-address=$MacAddress ]->0); :if ([ :len $AccessList ] > 0) do={ :set NewComment [ / %PATH% access-list get $AccessList comment ]; } |