mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-25 01:38:08 +00:00
Fixed startup-config is lost if you change any IOS router settings. Fixes #1233.
This commit is contained in:
parent
acdc1e5ebb
commit
67e346ba92
@ -603,8 +603,8 @@ class Dynamips(BaseManager):
|
|||||||
elif startup_config_content:
|
elif startup_config_content:
|
||||||
startup_config_path = self._create_config(vm, default_startup_config_path, startup_config_content)
|
startup_config_path = self._create_config(vm, default_startup_config_path, startup_config_content)
|
||||||
yield from vm.set_configs(startup_config_path)
|
yield from vm.set_configs(startup_config_path)
|
||||||
# An empty startup config crash dynamips
|
elif os.path.isfile(default_startup_config_path) and os.path.getsize(default_startup_config_path) == 0:
|
||||||
else:
|
# An empty startup-config may crash Dynamips
|
||||||
startup_config_path = self._create_config(vm, default_startup_config_path, "!\n")
|
startup_config_path = self._create_config(vm, default_startup_config_path, "!\n")
|
||||||
yield from vm.set_configs(startup_config_path)
|
yield from vm.set_configs(startup_config_path)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user