1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Fix Snapshot restore does not work with IOS routers

Fix https://github.com/GNS3/gns3-gui/issues/1583
This commit is contained in:
Julien Duponchelle 2016-10-18 16:17:49 +02:00
parent 8055547936
commit 19be2d85b7
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8
2 changed files with 3 additions and 2 deletions

View File

@ -380,6 +380,7 @@ class Router(BaseNode):
except OSError as e:
log.warn("Could not delete file {}: {}".format(file, e))
continue
self.manager.release_dynamips_id(self.project.id, self.dynamips_id)
@property
def platform(self):

View File

@ -584,10 +584,10 @@ class Project:
"""
Delete the project on computes but not on controller
"""
for compute in self._project_created_on_compute:
for compute in list(self._project_created_on_compute):
if compute.id != "local":
yield from compute.delete("/projects/{}".format(self._id))
self._project_created_on_compute = set()
self._project_created_on_compute.remove(compute)
@classmethod
def _get_default_project_directory(cls):