Update config from 6 to 7

Hello,
I am trying to upgrade a router from 6 to 7. I had hopes that I could simply copy and paste the configuration in sections. As an example, when I open a terminal in V7, go to /ip firewall filter and paste the following config:

add action=drop chain=input dst-port=22 protocol=tcp src-address-list=\ssh_blacklist

the terminal responds as follows:

/ip/firewall/filter> add action=drop chain=input dst-port=22 protocol=tcp src-address-list=\ssh_blacklis
[Safe Mode taken]
line 3 of 3> MCPA( B/A

I don’t know why it is hammering the end of my text, but this will make a very long process if I have to type all the code in on every router by hand and troubleshoot all of the syntax errors that will certainly ensue.

Does anyone have an easier way?

Thanks,

Scott

Usually it is as simple as upgrade to ROS7 and that’s it.
Config is being upgraded automagically for most parts.

So start from a working ROS6 config.
Upgrade your device.
Check config for missing parts (which normally should not be the case, except maybe for some fancy routing stuff).

What is src-address-list=****ssh_blacklist in you command? A brake line from your export?

Maybe you could use the import by file command.

import file-name=file.rsc

The text IS from the V6 .rsc file. The router is out of the box V7. I don’t think I want to try moving it back to V6 then upgrade.

Does my thought train seem logical?

That’s not what you said in the first post.
You said you were upgrading a router from 6 to 7.
So I conclude now you are moving config from ROS6 router to another ROS7 router ?
That’s something else.

If the new device came with ROS7, you cannot go back to 6.

Some things have changed from ROS6 to ROS7 on command line but not that much.
But obviously you need to start with a clean export from ROS6.
How did you do that ?
“Export terse” should take care of the line breaks. Otherwise you need to pre-process the script first with a txt editor.

Yup! I am upgrading from a V6 router to v7 router. Sorry for the confusion. I will try the terse recommendation and report back.

Thanks for the help!

BTW, I am not expecting this to all be pasted especially the much reworked BGP.

Something tells me you’re using that new notepad shit in the new windows 11…

I am!

Wordpad?

The “new” shitpad on windows 11 when copy text on memory transform the text in something… different…
When you paste that shit on terminal, all is ruined…

Use another text editor…

There can only be ONE…
Notepad ++
“This is the way”

Amen to that !

Thanks Rextended!

It WAS Windows 11 notepad. Notepad ++ has no issues. I haven’t seen that before but will keep it in my mind from here forward.

Thanks!

The others thought I was joking… :laughing:

It blows my mind how Microsoft can screw up such a simple program.

Ah well, this is what happens sometimes when you have genius level intelligence I guess!

One could guess that MS used ChatGPT to design functionality of their software.

Not at all. I always use Notepad++ on all my computers.