import Address-list

Hello! I am trying to import an address list with ip addresses and comments to a new one, that is, create an address list and the plan is to pass the information contained from an old address list to the new one.
I have been trying with scrip but I haven’t succeeded, is there a way to do it? I am trying to do this import from a txt file, that is, I already exported the IP addresses and comments and have them in the txt file.

thank you

I’d write a short sed/awk/perl/whatever command/script to recast your input data into the proper format:


/ip firewall address-list add address=192.168.88.1 list=MyListName

So, what does the input format look like?

you can print the address lists. see the number that appears for each row. where you have identified which ones to modify, write the various lines with set in a notepad file. all you have to do is stick it on the terminal and you’re done