If posible, rename an addresslist? ![]()
pseudo code:
/ip firewall address-list set [find [name=original]] name=newname
How about simply swap address-list (as ipset swap in Linux iptables)?
changeip
your code do not work.
Also have this question - how to rename address list via Winbox?
@changeipās code works if you replace both occurrences of name by list.
No way to do that in a single step from Winbox except running the code suggested by @changeip in the [Terminal] window. The address list items are separate rows in a common table, where the address list name is just a single column of these rows. So the change has to be done on each individual row, and Winbox doesnāt have an option to do this.
Donāt forget that changing the list name for all the respective rows in the /ip firewall address-list table will not change references to the old name of the list in firewall rules and scripts.
For me that works: /ip firewall address-list set list=ānew-nameā [find list=āold-nameā]