From 366c567864e87255cf6c3cf490b4c1b26e7b80f0 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 23 Feb 2017 18:21:00 +0100 Subject: [PATCH] Fix restoration of private config when using dynamips Fix #906 --- gns3server/compute/dynamips/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gns3server/compute/dynamips/__init__.py b/gns3server/compute/dynamips/__init__.py index 4ad0472f..d46f321d 100644 --- a/gns3server/compute/dynamips/__init__.py +++ b/gns3server/compute/dynamips/__init__.py @@ -534,6 +534,8 @@ class Dynamips(BaseManager): elif private_config_content: private_config_path = self._create_config(vm, default_private_config_path, private_config_content) yield from vm.set_configs(vm.startup_config, private_config_path) + elif os.path.isfile(default_private_config_path) and os.path.getsize(default_private_config_path) > 0: + yield from vm.set_configs(vm.startup_config, default_private_config_path) def _create_config(self, vm, path, content=None): """