mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-31 05:13:49 +02: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:
|
except OSError as e:
|
||||||
log.warn("Could not delete file {}: {}".format(file, e))
|
log.warn("Could not delete file {}: {}".format(file, e))
|
||||||
continue
|
continue
|
||||||
|
self.manager.release_dynamips_id(self.project.id, self.dynamips_id)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def platform(self):
|
def platform(self):
|
||||||
|
@ -584,10 +584,10 @@ class Project:
|
|||||||
"""
|
"""
|
||||||
Delete the project on computes but not on controller
|
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":
|
if compute.id != "local":
|
||||||
yield from compute.delete("/projects/{}".format(self._id))
|
yield from compute.delete("/projects/{}".format(self._id))
|
||||||
self._project_created_on_compute = set()
|
self._project_created_on_compute.remove(compute)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _get_default_project_directory(cls):
|
def _get_default_project_directory(cls):
|
||||||
|
Loading…
Reference in New Issue
Block a user