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:
parent
8055547936
commit
19be2d85b7
@ -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):
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user