Order of command in a command set

Hi,
I have a naive questions

If have a set of commands to execute on VyOS. Do I need to care about the order of those commands in the command set? or I can put them in any order

For example, the command set is generated by command “show configuration commands”. If I copy and pates to VyOS CLI, and commit, it should be OK. But could I change the command order in that set?

Thanks

I am still somewhat new with VyOS and by no means an expert.

IMO , depending on what your commands are , there may be a certain sequence of commands in order to for your commands commands so work.
Example , a command referencing a firewall rule that does not exist yet – or a route to a next-hop where that next-hop network has not been created yet.
I suppose you should have a “show config command” you saved into a text file on your computer first ( and possibly a full stand-by backup clone ready to switch to if things don’t work ) , then run your commands and look for VyOS complaints when the commands are entered - also look for VyOS complaints when you commit your config.

North Idaho Tom Jones

There is a dependency which can be seen by the xml files regarding order of processing.

For example I think you cannot configure DHCP unless you have at least one interface to hook that DHCP config onto and stuff like that.

But then within the DHCP-config (as example) Im not sure the order would matter.

Of course it might be tricky to create a DHCP-pool without first created the DHCP-pool itself.

So the TLDR edition would be: Yes the order matters but for some lines such as within an existing DHCP-pool the order doesnt matter.

Thank you for all the information. I am looking into it.