Hi guys, i have a problem. It's because of my mangling that i wanted to add dynamic pppoe-clients to the interface-list.
As of now i have done it by making my own script with this:
:foreach i in [/interface pppoe-server find name~"<pppoe-*"] do {/interface list member add interface=$i list=LAN}
the problem with this script is that if the client get disconnected randomly and reconnects, the interface became unknown
i have a solution for that using this command:
/interface list member remove numbers=[ find where list=LAN && interface~("^\\*[A-Z]+") ]
It does the job removing the unknown interface. The thing is when the client reconnects and the script above foreach that i have used won't work anymore and it won't get an update because some have added already and breaks the script. If i remove all interface list of pppoe clients then it updates and add the client that have disconnected.
Does anyone knows how to fix it?
Edit: I have tried using this command at up in pppoe-profile
/interface list member add interface=[find interface=<pppoe*] list=LAN
i get error: ambiguous value of interface, more than one possible value matches input
That's all thank you.