Rename Address-List

If posible, rename an addresslist? :open_mouth:

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ā€]