Through the API, how do I export the hotspot cookies for later import in /interface/wireless/access-list?
example
:foreach i in= [/ip/hotspot/active find] do= {
:set user [/ip/hotspot/cookie get $i user]
:set mac [/ip/hotspot/cookie get $i mac-address]
}
after that, I want to generate a file to import in the access-list :
/interface/wireless/access-list add interface =wlan1 comment="$user" mac-address=$mac
Is this possible?