GNS3 / gns3-gui

GNS3 Graphical Network Simulator
http://www.gns3.com
GNU General Public License v3.0
2.17k stars 436 forks source link

Reset lab #796

Open grossmj opened 9 years ago

grossmj commented 9 years ago

I have an idea: to have menu/button to reset configs of the devices to the initial state (generated from the template).

Use-case #1: you were doing the lab for quite some time and understood that you need to return to the initial configs.

Yes, you can go to each router/IOL and erase startup config & reload (or stop/start), but then you won't get some useful config from your template. Also, if you have 10+ devices this will take some time.

Use-case #2: you changed number of adapters for IOU in .gns3 file and now when you start the device, you will get prompt about "initial configuration dialog" which is annoying. If you had such a button, you would just click it and the issue is solved, because initial config is re-generated from the template according to the number of adapters and all associated files like nvram_xxxx are deleted as well.

julien-duponchelle commented 9 years ago

Problem with VirtualBox or VMware you can't reset the lab.

hallowen commented 9 years ago

@noplay this can be achieved with config replace command

eg. I am loading initial configs to 10 IOU's . I am running R1#copy running-config unix:initial.config This will save the initial config. Once you want to come back to initial configs you can just use R1#config replace unix:initial.config In the case of IOS it's unix:, IOU it will be flash: and IOS it will be Disk0: (you have to manually add PCMCIA Disk0) If you can implement something in GNS3 which can trigger the above commands that will be great

Raizo62 commented 7 years ago

Problem with VirtualBox or VMware you can't reset the lab.

With VirtualBox, you can : GNS3 do already a snapshot called "reset". I use it in LIveRaizo with the command "fast-reset-vbox"

Raizo62 commented 7 years ago

I think #330 does reference also